Quote:
Originally Posted by Disc_Junkie
[
C++
Code:
#include<iostream.h>
#include<conio.h>
void main()
{
cout<<"Hello World";
getch();
}
|
Er..um..this is not exactly according to standards. This is actually Turbo C++ taught in schools and colleges in India.
Anyway it should be
Code:
#include<iostream>
int main()
{
std::cout<<"Hello World";
return 0;
}
Quote:
|
Originally Posted by Disk_Junkie
Code:
class HelloWorld
{
public static void main()
{
System.out.println("Hello World");
}
}
|
Shouldn't there be String[] arguments in main()? (I know a crap about java but I think Java requires arguments for main as such)