J
John Saunders
pronto said:Hello all.
Follow C++ "console application" printing out "Hello world". How to create
C# console application
with same approach (instance of some class will be created without reference
from main())
regards
pronto
class C1
{
public :
C1::C1()
{
puts("Hello World");
}
}
C1 a1; // that's why you see "Hello world"
int main(int args, char argv[])
{
}
This sounds like a homework assignment.
Take a look at the System.Console class.