Click here to Skip to main content
15,911,786 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionThe depth of the CDumpContext object Pin
SeanQA17-May-06 16:31
SeanQA17-May-06 16:31 
Questionwhat's the .h file should I include to use _tstof(), alternative of atof() ? Pin
flyingxu17-May-06 15:20
flyingxu17-May-06 15:20 
AnswerRe: what's the .h file should I include to use _tstof(), alternative of atof() ? Pin
George L. Jackson17-May-06 16:38
George L. Jackson17-May-06 16:38 
QuestionRe: what's the .h file should I include to use _tstof(), alternative of atof() ? Pin
flyingxu17-May-06 17:14
flyingxu17-May-06 17:14 
QuestionCopy user profiles's files Pin
honae17-May-06 14:21
honae17-May-06 14:21 
AnswerRe: Copy user profiles's files Pin
led mike17-May-06 19:12
led mike17-May-06 19:12 
GeneralRe: Copy user profiles's files Pin
honae18-May-06 2:38
honae18-May-06 2:38 
Questionswitch quantity not an integer! Pin
moloza17-May-06 14:05
moloza17-May-06 14:05 
Hello all..

for the following program I got headache about the switch statment:
if I use switch(*hello) I got a compile error : switch quantity not an integer!
if I remove the stat I got a runtime error: segmentation fault!

I need help to fix this problem..

#include <stdio.h>
main()
{
int *hello;
printf("Hi, Enter any value > ");
scanf("%d",&hello);
switch (hello)
{
case 1: printf("your 1 luck number is > %d\n",hello);
case 2: printf("your 2 luck number is > %d\n",hello);
case 3: printf("your 3 luck number is > %d\n",hello);
default: printf("your 4 luck number is > %d\n",hello);
}
}

thanks

Ajmi
AnswerRe: switch quantity not an integer! Pin
Peter Weyzen17-May-06 16:03
Peter Weyzen17-May-06 16:03 
AnswerRe: switch quantity not an integer! Pin
Bob Ciora17-May-06 17:24
Bob Ciora17-May-06 17:24 
AnswerRe: switch quantity not an integer! Pin
Naveen17-May-06 17:51
Naveen17-May-06 17:51 
GeneralRe: switch quantity not an integer! Pin
moloza17-May-06 19:09
moloza17-May-06 19:09 
GeneralRe: switch quantity not an integer! Pin
Naveen17-May-06 19:14
Naveen17-May-06 19:14 
GeneralRe: switch quantity not an integer! Pin
Andrew Hain19-May-06 1:14
Andrew Hain19-May-06 1:14 
AnswerRe: switch quantity not an integer! Pin
ThatsAlok17-May-06 20:14
ThatsAlok17-May-06 20:14 
GeneralRe: switch quantity not an integer! Pin
moloza20-May-06 22:31
moloza20-May-06 22:31 
GeneralRe: switch quantity not an integer! Pin
ThatsAlok21-May-06 18:25
ThatsAlok21-May-06 18:25 
QuestionInter-process Communication Question Pin
softwaremonkey17-May-06 11:45
softwaremonkey17-May-06 11:45 
AnswerRe: Inter-process Communication Question Pin
led mike17-May-06 12:09
led mike17-May-06 12:09 
AnswerRe: Inter-process Communication Question Pin
Peter Weyzen17-May-06 16:07
Peter Weyzen17-May-06 16:07 
AnswerRe: Inter-process Communication Question Pin
Stephen Hewitt17-May-06 18:06
Stephen Hewitt17-May-06 18:06 
GeneralRe: Inter-process Communication Question Pin
softwaremonkey18-May-06 2:05
softwaremonkey18-May-06 2:05 
QuestionSetting a double to infinity Pin
Jader8917-May-06 10:33
Jader8917-May-06 10:33 
AnswerRe: Setting a double to infinity Pin
George L. Jackson17-May-06 10:46
George L. Jackson17-May-06 10:46 
AnswerRe: Setting a double to infinity Pin
Christian Graus17-May-06 11:20
protectorChristian Graus17-May-06 11:20 

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.