![]() |
|
|
#1 |
|
Eligible for custom title
Join Date: May 2007
Location: c:\programs\kitteh.exe
Posts: 5,387 (5.87/day)
Thanks: 572
Thanked 441 Times in 382 Posts
|
A little C help for my friend
He's getting a "multiple declaration for 'printf'" error for this code block, personally i cant see it
Code:
switch (code)
{
case '1':
printf:("Very good!!");
break;
case '2':
printf:("Keep it up!!");
break;
case '3':
printf:("Nice job!!");
break;
case '4':
printf:("Excellent");
break;
}
the erro comes up for the last 3 printf's
__________________
Rig 1+1 Athlon XP 2200+, MSI KM2M Combo, ATI 9200SE 128 MB DDR, 2 X 512 MB DDR333, 250GB + 80 HDD? “try intel cpu, amd is only good for going to nude sites” -firehawkxd
“go for the 5850 now and play games while the nvidiots wait for the ceo to show an actual working product” -W1zzard
|
|
|
|
|
|
#2 |
|
TPU Hit Squad Member
Join Date: Feb 2007
Location: Cheeseland (Wisconsin, USA)
Posts: 3,242 (3.18/day)
Thanks: 92
Thanked 767 Times in 582 Posts
|
I'm pretty rusty on my C code, but maybe he could try something like this...
Code:
string CaseReturn;
switch (code)
{
case '1' :
CaseReturn = "Very Good!!";
break;
case '2' :
CaseReturn = "Keep it up!!";
break;
}
printf:(CaseReturn);
![]() |
|
|
|
|
|
#3 |
![]() |
Code:
printf:("Keep it up!!");
Code:
printf("Keep it up!!");
|
|
|
|
|
|
#4 |
|
TPU Hit Squad Member
Join Date: Feb 2007
Location: Cheeseland (Wisconsin, USA)
Posts: 3,242 (3.18/day)
Thanks: 92
Thanked 767 Times in 582 Posts
|
I didn't know either, but I wasn't sure if he was using some strange compiler that wanted different syntax or something.
__________________
53452340602F55453253602E35572D$20
|
|
|
|
|
|
#5 |
|
Administrator
Join Date: May 2004
Location: Stuttgart, Germany
Posts: 7,624 (3.78/day)
Thanks: 79
Thanked 2,492 Times in 935 Posts
|
|
|
|
|
|
|
#6 |
|
Eligible for custom title
Join Date: May 2007
Location: c:\programs\kitteh.exe
Posts: 5,387 (5.87/day)
Thanks: 572
Thanked 441 Times in 382 Posts
|
damn ... blame the cocomania i was having when he came by and asked me
__________________
Rig 1+1 Athlon XP 2200+, MSI KM2M Combo, ATI 9200SE 128 MB DDR, 2 X 512 MB DDR333, 250GB + 80 HDD? “try intel cpu, amd is only good for going to nude sites” -firehawkxd
“go for the 5850 now and play games while the nvidiots wait for the ceo to show an actual working product” -W1zzard
|
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Friend needs help w/ build. | Cja123 | System Builder's Advice | 20 | 09-21-2009 12:05 AM |
| Little help please for a 1st timer | tonyhague | GPU-Z | 3 | 02-22-2009 12:29 PM |
| Help a friend, glitch | Azazel | General Hardware | 4 | 01-16-2009 12:16 AM |
| Friend needs some upgrade help | Bow | General Hardware | 3 | 01-06-2009 03:23 AM |