Computer ForumsComputers  

Go Back   Computer Forums > Programmers Lounge > Programming Discussions

Reply
 
LinkBack Thread Tools Display Modes
Old 07-20-2007, 09:48 PM   #1 (permalink)
Junior Techie
 
Join Date: Jun 2006
Posts: 86
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   Reply With Quote
Old 07-21-2007, 01:18 AM   #2 (permalink)
Software Developer
 
Join Date: Mar 2006
Location: Columbus, OH
Posts: 471
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   Reply With Quote
Old 07-21-2007, 07:33 PM   #3 (permalink)
Junior Techie
 
Join Date: Jun 2006
Posts: 86
Default Re: C# Question >.< CAUTION VERY VERY NOOB

Oh snap, sorry I kept looking at the printf... line >.< and thankyou
NurthinAziz is offline   Reply With Quote
Reply

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 04:19 PM
Front panel header noob question dwu182 Hardware Troubleshooting 5 06-23-2007 12:34 AM
question about my processor socket siddanth3 Building, Buying, or Upgrading High Performance PC Systems 10 04-27-2007 12:14 AM
Noob Question waytoosmall Computer Audio & Multimedia 7 04-23-2007 06:19 PM
Case Fan Question Shafra Overclocking, Case Mod, Tweaking PC Performance 10 04-18-2007 05:42 PM


All times are GMT -5. The time now is 05:34 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0