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;
}
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 std::cout;
int main(){
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<bits/stdc++.h>
using namespace std;
int main()
{
cout<<"HELLO WORLD"<<endl;
}
xxxxxxxxxx
#include<iostream>
using namespace std;
int main()
{
cout<<"Hello World";
return 0;
}
xxxxxxxxxx
// C++ program to display "Hello World"
// Header file for input output functions
#include <iostream>
using namespace std;
// Main() function: where the execution of program begins
int main()
{
// prints hello world
cout << "Hello World";
return 0;
}