A C++ program begins at main() : main function « Language Basics « C++ Tutorial






#include <iostream> 
using namespace std; 
 
 
int main() 
{ 
  cout << "www.java2s.com"; 
 
  return 0; 
}
www.java2s.com"








1.2.main function
1.2.1.A C++ program begins at main()
1.2.2.Call a function in main