1st Simple C++ Program - Tutorial

ssendi By ssendi, 12th Apr 2012 | Follow this author | RSS Feed | Short URL http://nut.bz/99_-hzt1/
Posted in Wikinut>Guides>Technology>Computer Software

/* this is first program, and after we run program, on screen will be only "Write this on the screen",as you can se on the picture....
*/

1st Simple C++ Program - Tutorial

/* this is first program, and after we run program, on screen will be only "Write this on the screen",as you can se on the picture....

#include <iostream>
using namespace std;

this part is always at the beggining of the program, I'll explain in later tutorials why we need them..

int main(){ --->> begining with the main function
cout->>> is used to write something on the screen

*/
#include <iostream>
using namespace std;
int main()
{
cout<<"Write this on the screen"<<endl;
system("PAUSE");
return EXIT_SUCCESS;
}


Here you can find more C++ programs.....

Tags

Code, Computer, Java, Java Applet, Java Script, Javascript, Program, Simple, Tutor, Tutorial

Meet the author

author avatar ssendi
I'm from Bosnia, and I like computer languages...
On this site I'will mainly write codes for programs, in C++, Java, and HTML...
I also write at http://www.expertscolumn.com

Share this page

moderator Steve Kinsman moderated this page.
If you have any complaints about this content, please let us know

Comments

author avatar Sivaramakrishnan A
15th Apr 2012 (#)

I am not into programming. In a way, I feel lucky as it looks not my cup of tea! Thanks for your efforts and the share, ssendi - siva

Reply to this comment

author avatar Georgios A.V.
15th Apr 2012 (#)

I used to program with C++, using Borland 5.00 for DOS. I want to start again, this time for windows, so which windows package should I use? Thanks a lot!

Reply to this comment

author avatar ssendi
15th Apr 2012 (#)

thank you for your comment siva....

Reply to this comment

author avatar ssendi
15th Apr 2012 (#)

Giorgio, I also worked with Borland, but this program (Dev C++) is a lot easier to use...Here you can Download it :
http://www.toggle.com/lv/group/view/kl39865/Dev-C%2B%2B.htm

I used it on XP, now I'm using it on my Windows 7 System.....So you can use any System....

Reply to this comment

author avatar D in The Darling
16th Apr 2012 (#)

Looking forward to learn more from this. Thanks for sharing.

Reply to this comment

author avatar Denise O
18th Apr 2012 (#)

I am not much into programming either, lordy I am so lost.LOL
Sorry, I am just not savvy when it comes to these things. Thank you for sharing.:)

Reply to this comment

Add a comment
Username
Can't login?
Password