11-09-2009, 06:31 PM
(11-03-2009, 02:02 AM)Fail Ninja Wrote:Code:#include <iostream>
using namespace std;
void main()
{
cout << "Hello World!" << endl;
}
Sorry, pet peeve of mine; You can still make that code one line smaller:
Code:
#include <iostream>
int main()
{
std::cout << "Hello World!" << std::endl;
}
Not that it matters. Btw, I thought the main() function had to be of return type "int" as I wrote?