Fucking FAILURE! - Shad0w
 
HomePortalMemberlistRegisterLog in
Top posters
shad0w
 
rdwuestewald
 
Crush Combat
 
banksy
 
Kewley
 
Ashley
 
Anthony
 
Inix
 
mitch
 
dukemaster95
 
Who is online?
In total there is 1 user online :: 0 Registered, 0 Hidden and 1 Guest

None

Most users ever online was 13 on Fri Mar 09, 2018 8:56 pm

Share | 
 

 [C++] Hello World [Code/Tut]

Go down 
AuthorMessage
shad0w



Number of posts : 173
Points : 238
Reputation : 0
Registration date : 2009-03-18
Location : 127.0.0.1

PostSubject: [C++] Hello World [Code/Tut]   Thu Mar 19, 2009 7:33 pm

Code:
#include <iostream.h>

 int main()
 {
    cout << "Hello World!\n";
        return 0;
 }

Include <iostream.h>

That is basically tells the compiler what to use sorta

int main()

basically telling the compiler here is where the code begins

cout << "Hello World!\n";

cout << is what you use to write something on the screen.
\n Is what the compiler interprets as new line. Always end with a semicolon out side the Quotation marks

return 0;

All ANSI-compliant programs declare main() to return an int. This value is "returned" to the operating system when your program completes. Some programmers signal an error by returning the value 1
Back to top Go down
 
[C++] Hello World [Code/Tut]
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Fucking FAILURE! - Shad0w :: Shad0w's Computer Section :: Coding :: Unix-
Jump to: