Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » C# Question >.< CAUTION VERY VERY NOOB
Closed Thread
Old 07-20-2007, 10:48 PM   #1 (permalink)
 
True Techie

Join Date: Jun 2006

Location: Sacramento, CA

Posts: 148

NurthinAziz is on a distinguished road

Default C# Question >.< CAUTION VERY VERY NOOB

Hehe hi, thanks for at least reading this =) Well I need to know why I'm not able to compile and run this properly

#include (stdio.h)

int main()
{
printf( "Hello world.\n" );
getchar();
return 0;
}
NurthinAziz is offline  
Old 07-21-2007, 02:18 AM   #2 (permalink)
 
Software Developer

Join Date: Mar 2006

Location: Columbus, OH

Posts: 569

jaeusm is on a distinguished road

Default Re: C# Question >.< CAUTION VERY VERY NOOB

I think your main problem is that the code you posted is not a C# program -- it's a C program with a syntax error on the first line (replace the parentheses as shown below):
Code:
#include <stdio.h>
You'll need a C compiler to compile the program.
jaeusm is offline  
Old 07-21-2007, 08:33 PM   #3 (permalink)
 
True Techie

Join Date: Jun 2006

Location: Sacramento, CA

Posts: 148

NurthinAziz is on a distinguished road

Default Re: C# Question >.< CAUTION VERY VERY NOOB

Oh snap, sorry I kept looking at the printf... line >.< and thankyou
NurthinAziz is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
RAID question? Ice8168 Building, Buying, or Upgrading High Performance PC Systems 15 07-20-2007 05:19 PM
Front panel header noob question dwu182 Hardware Troubleshooting 5 06-23-2007 01:34 AM
question about my processor socket siddanth3 Building, Buying, or Upgrading High Performance PC Systems 10 04-27-2007 01:14 AM
Noob Question waytoosmall Computer Audio & Multimedia 7 04-23-2007 07:19 PM
Case Fan Question Shafra Overclocking, Case Mod, Tweaking PC Performance 10 04-18-2007 06:42 PM