101
{ USER }
posts: 55
last: 09-Apr-2008
TITLE: Traditional and New methods for a Hello World application
DESCRIPTION: Simple comparison between new and old hello world code within C++
Submitted: 09-Apr-2008 07:42:15 ( 21w 5d 3h ago ) Language: C++ (*.cpp *.h)
Views: 167 Lines of Code: 28 LINES
Rating:
rate: star1
star2
star3
star4
star5
dstar1
dstar2
dstar3
dstar4
dstar5  ( rated! )
  { 3.00 / 5 }
Difficulty: Beginner
Bookmark
/* Author: 101
   Date: 09-04-2008
   Filename: -
   Description: Traditional and New methods for a Hello World application
   History: Currahee!!
*/

/* old method, traditional hello world */

#include <iostream.h>

main()
{
    for(;;)
    {
        cout << "Hello World! ";
    }
}


/* Heres some new model Hello World code */

#include <iostream>

int main()
{
    std::cout << "Hello, world!\n";
}