Click here to Skip to main content
15,350,244 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
QuestionCreate InputBox using VS2010 C++? Pin
Member 112303721-Dec-14 3:01
MemberMember 112303721-Dec-14 3:01 
QuestionHow to save "☺" in a file. C/C++ (Windows Functions) Pin
Citrusl2-Nov-14 10:51
MemberCitrusl2-Nov-14 10:51 
AnswerRe: How to save "☺" in a file. C/C++ (Windows Functions) Pin
Frankie-C22-Feb-15 3:24
MemberFrankie-C22-Feb-15 3:24 
QuestionDisplay an image on the button. this image is not from resource but it is a image form a normal file Pin
Member 1118237929-Oct-14 2:34
MemberMember 1118237929-Oct-14 2:34 
AnswerRe: Display an image on the button. this image is not from resource but it is a image form a normal file Pin
Richard MacCutchan29-Oct-14 4:01
mveRichard MacCutchan29-Oct-14 4:01 
QuestionI need some help with c++ Pin
Member 1111856129-Sep-14 8:44
MemberMember 1111856129-Sep-14 8:44 
AnswerRe: I need some help with c++ Pin
Richard MacCutchan29-Sep-14 21:33
mveRichard MacCutchan29-Sep-14 21:33 
QuestionCoding music rhythms Pin
Navid Abyazi24-Sep-14 5:28
professionalNavid Abyazi24-Sep-14 5:28 
Hi every one.
I want to create all rhythmic figures in music. I have an array for durations:
C#
public static double[] duration_fltarray = new double[7];
    duration_fltarray[0] = 1;
    duration_fltarray[1] = 0.5;
    duration_fltarray[2] = 0.25;
    duration_fltarray[3] = 0.125;
    duration_fltarray[4] = 0.625;
    duration_fltarray[5] = 0.3125;
    duration_fltarray[6] = 0.15625;

This array shows music times: 1 - 1/2 - 1/4 - 1/8 and so on.
I think it should be written by recursive function, because I couldn't do it by while and for loop.

Now, I need all sorted figures that sum of them are equal 1. For example:
1
1/2 - 1/2
1/2 - 1/4 - 1/4
1/4 - 1/2 - 1/4
1/4 - 1/4 - 1/2
1/4 - 1/4 - 1/4 - 1/4
1/8 - 1/2 - 1/4 - 1/8
1/8 - 1/2 - 1/8 - 1/4
1/8 - 1/2 - 1/8 - 1/8 - 1/8
...
Of course, number of figures will be too many more if we add 1/16 and 1/32 and ... .
I can print them in a web page(response.write) or in a c console; it's not important. But the algorithm should be as simple as possible.
Thank you all.
AnswerRe: Coding music rhythms Pin
Richard MacCutchan24-Sep-14 5:35
mveRichard MacCutchan24-Sep-14 5:35 
QuestionReverse No program Pin
Member 105011307-Sep-14 20:09
MemberMember 105011307-Sep-14 20:09 
AnswerRe: Reverse No program Pin
Richard MacCutchan7-Sep-14 21:23
mveRichard MacCutchan7-Sep-14 21:23 
QuestionSystem.AccessViolationException - Returning from cpp dll Pin
ToolMaker200716-Aug-14 4:25
MemberToolMaker200716-Aug-14 4:25 
AnswerRe: System.AccessViolationException - Returning from cpp dll Pin
Member 1048772028-Aug-14 21:45
MemberMember 1048772028-Aug-14 21:45 
Questionneed help with creating a clr dll Pin
neodeaths13-Aug-14 21:57
Memberneodeaths13-Aug-14 21:57 
AnswerRe: need help with creating a clr dll Pin
Richard MacCutchan13-Aug-14 22:26
mveRichard MacCutchan13-Aug-14 22:26 
QuestionHow to sound recorder c++ Pin
4manes6-Jul-14 22:58
Member4manes6-Jul-14 22:58 
AnswerRe: How to sound recorder c++ Pin
Richard MacCutchan7-Jul-14 2:46
mveRichard MacCutchan7-Jul-14 2:46 
QuestionDumb question about event arguments Pin
Member 1031630012-Jun-14 20:21
MemberMember 1031630012-Jun-14 20:21 
AnswerRe: Dumb question about event arguments Pin
John Schroedl13-Jun-14 8:05
professionalJohn Schroedl13-Jun-14 8:05 
GeneralRe: Dumb question about event arguments Pin
Member 1031630013-Jun-14 8:50
MemberMember 1031630013-Jun-14 8:50 
Ranthow to work with window in c++ Pin
TomTomtz30-May-14 12:02
MemberTomTomtz30-May-14 12:02 
GeneralRe: how to work with window in c++ Pin
Wes Aday30-May-14 12:29
professionalWes Aday30-May-14 12:29 
GeneralRe: how to work with window in c++ Pin
Richard MacCutchan30-May-14 22:08
mveRichard MacCutchan30-May-14 22:08 
GeneralRe: how to work with window in c++ Pin
WuRunZhe19-Jun-14 5:39
MemberWuRunZhe19-Jun-14 5:39 
QuestionCount from 1 to 1000 without using loops Pin
Amrit Agr26-May-14 0:09
MemberAmrit Agr26-May-14 0:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.