the { } brackets enclose more than just methods (ex. main) they do everything from conditional if statements to loops.
the { } brackets enclose more than just methods (ex. main) they do everything from conditional if statements to loops.
Get Vip: »Here«
Donate: »Here«
>>List of Compilers<<
>>SFDM Name Generator<<
[Owner Of FluidCoding]
Lol
You should have used this: (Less sloppy)/*
SonniE's Hello World C++ Example 1
This Program Shows basic console printing skills
*/
#include <iostream>
using namespace std;
int main()
{
cout<<"Hello World";
system("pause");
}
Other wise it's like this:/*
SonniE's Hello World C++ Example 1
This Program Shows basic console printing skills
*/
#include <iostream>
using namespace std;
int main()
{
cout<<"Hello World\n";
system("pause");
}
![]()
Last edited by TheEliteOne; 03-19-2010 at 12:32 AM.
it doesn't need the linebreak the purpose of the code was to show the function that prints text. But if there was more to the program i would add a linebreak. You could use \n or the endl keyword.
Get Vip: »Here«
Donate: »Here«
>>List of Compilers<<
>>SFDM Name Generator<<
[Owner Of FluidCoding]