The C and C++ code snippets monologue forum

The C, C++, Code, Coder, Coding Snippets Zone for Tenouk.com

 

 
It is currently Thu Sep 09, 2010 8:34 am

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Another simple
PostPosted: Thu Nov 09, 2006 2:19 pm 
Offline

Joined: Thu Nov 09, 2006 2:08 pm
Posts: 131
Compiler: Visual C++ Express Edition 2005
Compiled on Platform: Windows XP Pro SP2
Header file: Standard
Additional library: none/default
Additional project setting: Set project to be compiled as C
Project -> your_project_name Properties -> Configuration Properties -> C/C++ -> Advanced -> Compiled As: Compiled as C Code (/TC)
To do: nothing
To show: void return of main()

------------------------------------------------------------------------------------

/* for printf(), scanf() & other standard i/o */
#include <stdio>

/* main() function with no argument */
/* and no return value */
void main()
{
printf("Testing 1...2...3...\n");
printf("Hello dude!\n");
}

Output:

Testing 1...2...3...
Hello dude!
Press any key to continue . . .


_________________
::totally lame coder::


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Skin by Lucas Kane