xxxxxxxxxx
#include <iostream>
using namespace std;
// Main() function: where the execution of program begins
int main()
{
// prints hello world
cout << "Hello World";
return 0;
}
xxxxxxxxxx
#include <iostream>
int main() {
std::cout << "Hello World!" << std::endl;
return 0;
}
xxxxxxxxxx
#include <iostream>
using namespace std;
int main(){
cout << "Hello World" << endl;
return 0;
}
xxxxxxxxxx
#include<iostream>
using namespace std;
int main()
{
cout<<"Hello World";
return 0;
}
xxxxxxxxxx
#include <iostream>
#include <chrono>
#include <thread>
using namespace std::this_thread; // sleep_for, sleep_until
using namespace std::chrono_literals; // ns, us, ms, s, h, etc.
using std::chrono::system_clock;
int main()
{
std::cout << "Hello World!" << std::endl;
sleep_for(5s);
return 0;
}