Click here to Skip to main content
15,915,873 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: This not work. Pin
Hamid_RT10-Sep-06 2:09
Hamid_RT10-Sep-06 2:09 
AnswerRe: How to create modeless CDialog ? Pin
CWiC9-Sep-06 8:05
CWiC9-Sep-06 8:05 
GeneralRe: How to create modeless CDialog ? Pin
Yanshof9-Sep-06 8:23
Yanshof9-Sep-06 8:23 
AnswerRe: How to create modeless CDialog ? Pin
mostafa_pasha9-Sep-06 12:05
mostafa_pasha9-Sep-06 12:05 
AnswerRe: How to create modeless CDialog ? Pin
mostafa_pasha9-Sep-06 12:06
mostafa_pasha9-Sep-06 12:06 
AnswerRe: How to create modeless CDialog ? Pin
Michael Dunn9-Sep-06 17:21
sitebuilderMichael Dunn9-Sep-06 17:21 
QuestionGet Object id from PhoneGetCallLogEntry Pin
bodaay9-Sep-06 6:11
bodaay9-Sep-06 6:11 
QuestionProblem with calcutation. Pin
EzraYap9-Sep-06 5:59
EzraYap9-Sep-06 5:59 
hi every VC programmer, i have a math problem with my coding.
here is the sample:
#define NDIG 32 /* assume max no. of digits */

int getnum(void);

main(){
int val, i, count;
char chars[NDIG];

i = getnum();

/* print in binary */
val = i;
count = 0;
do{
//val = val / 2;
chars[count] = val % 2;
val = val / 2;
count = count + 1;
}while(val);
count = count - 1; ******(I wonder what this means?)***** Confused | :confused:

while(count >= 0){
printf("%d", chars[count]);
count = count - 1;
}
printf("\n")
}
getnum(){
int c, value;;

value = 0;
c = getchar();
while(c != '\n'){
value = 10*value + c - '0';
c = getchar();
}
return (value);
}


i hope you will reply this. Thanks Smile | :)

~~~@@@###EZRA###@@@~~~

AnswerRe: Problem with calcutation. Pin
bodaay9-Sep-06 6:15
bodaay9-Sep-06 6:15 
GeneralRe: Problem with calcutation. Pin
EzraYap9-Sep-06 6:21
EzraYap9-Sep-06 6:21 
GeneralRe: Problem with calcutation. Pin
Rick York9-Sep-06 10:21
mveRick York9-Sep-06 10:21 
GeneralRe: Problem with calcutation. Pin
EzraYap10-Sep-06 2:31
EzraYap10-Sep-06 2:31 
Questionvirtual methods in base classes Pin
jon-809-Sep-06 5:34
professionaljon-809-Sep-06 5:34 
AnswerRe: virtual methods in base classes Pin
Jun Du9-Sep-06 6:27
Jun Du9-Sep-06 6:27 
AnswerRe: virtual methods in base classes Pin
mostafa_pasha9-Sep-06 12:20
mostafa_pasha9-Sep-06 12:20 
GeneralRe: virtual methods in base classes Pin
Michael Dunn9-Sep-06 17:26
sitebuilderMichael Dunn9-Sep-06 17:26 
AnswerRe: virtual methods in base classes Pin
Michael Dunn9-Sep-06 17:25
sitebuilderMichael Dunn9-Sep-06 17:25 
GeneralRe: virtual methods in base classes Pin
prasad_som10-Sep-06 23:25
prasad_som10-Sep-06 23:25 
QuestionA single dialog box to show all the data from the device using serial port RS-232 Pin
Veeresh Hiremath9-Sep-06 5:21
Veeresh Hiremath9-Sep-06 5:21 
QuestionCan't Open File Pin
Max++9-Sep-06 3:49
Max++9-Sep-06 3:49 
AnswerRe: Can't Open File Pin
Chris Losinger9-Sep-06 4:04
professionalChris Losinger9-Sep-06 4:04 
AnswerRe: Can't Open File Pin
Hamid_RT9-Sep-06 4:50
Hamid_RT9-Sep-06 4:50 
Questionhow to retrieve color of sliders ticks Pin
CWiC9-Sep-06 2:18
CWiC9-Sep-06 2:18 
GeneralRe: how to retrieve color of sliders ticks Pin
prasad_som9-Sep-06 21:07
prasad_som9-Sep-06 21:07 
GeneralRe: how to retrieve color of sliders ticks Pin
CWiC11-Sep-06 6:55
CWiC11-Sep-06 6:55 

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.