Jump to content

Hello World Application(For Beginners)

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
16 replies to this topic

#1
michaelvd12

michaelvd12

    Learning Programmer

  • Members
  • PipPipPip
  • 99 posts
Step 1:

Include

#include <iostream>

This step is important to do,

this include the things we declare

Step 2 :

Main Function

int Main()
{

}

This is the function where we declare everything

Step 3:

namespace std

using namespace std;

This function made it easy to program with the namespace std


Step 4:

Draw the text

cout << "Helloworld !\n";

Step 5 :

Pause the console

System("pause");
return 0;

Compile and run, You have made your first c++ program!

Soon more:)

Edited by WingedPanther, 24 April 2009 - 11:31 AM.
add return 0;


#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
Nicely done. Note that the final program would be:
#include <iostream>
using namespace std;

int main() //case matters!
{
  cout << "Helloworld !\n";
  system("pause"); //again, case matters!
  return 0;
}

Edited by WingedPanther, 24 April 2009 - 11:22 AM.
add return 0;

Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
Guest_Jordan_*

Guest_Jordan_*
  • Guests
Not bad. +rep

#4
amrosama

amrosama

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 8,674 posts
+rep
good tutorial
yo homie i heard you like one-line codes so i put a one line code that evals a decrypted one line code that prints "i love one line codes"
eval(base64_decode("cHJpbnQgJ2kgbG92ZSBvbmUtbGluZSBjb2Rlcyc7"));
www.amrosama.com | the unholy methods of javascript

#5
michaelvd12

michaelvd12

    Learning Programmer

  • Members
  • PipPipPip
  • 99 posts
Thans All

@ wingedpanther
i cant edit the post anymore

#6
michaelvd12

michaelvd12

    Learning Programmer

  • Members
  • PipPipPip
  • 99 posts
I have made this tutorial in just 3 minutes :P

#7
amrosama

amrosama

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 8,674 posts
lol
good, keep posting tutorials :)
yo homie i heard you like one-line codes so i put a one line code that evals a decrypted one line code that prints "i love one line codes"
eval(base64_decode("cHJpbnQgJ2kgbG92ZSBvbmUtbGluZSBjb2Rlcyc7"));
www.amrosama.com | the unholy methods of javascript

#8
michaelvd12

michaelvd12

    Learning Programmer

  • Members
  • PipPipPip
  • 99 posts
Wingedpanther,

Can you add return 0; ?

i have just forgot that :X

my stupid fold :X

#9
Amonijack

Amonijack

    Learning Programmer

  • Members
  • PipPipPip
  • 56 posts
another tutorial for newbies in c ++ ?

#10
michaelvd12

michaelvd12

    Learning Programmer

  • Members
  • PipPipPip
  • 99 posts
@ amonijack, i just made one now , wait , and you will see it ;)

#11
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
added
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#12
michaelvd12

michaelvd12

    Learning Programmer

  • Members
  • PipPipPip
  • 99 posts
you cant change it on my tutorial post ?

i think that is better