#include <iostream>
int main() {
std::cout << "Hello, World!"; // prints 'Hello, World!' to the output.
return 0;
}
#include <iostream>
using namespace std;
int main(){
cout<<"Hello World!"<< endl; // prints "Hello World"
return 0;
}
#include <iostream>
using namespace std;
int main() {
cout << "ENTER TEXT HERE";
return 0;
}
std::cout << "";
#include <iostream>
std::cout << someString << "
";
#include <iostream>
using namespace std;
int main() {
cout << "me";
return 0;
}
cout << "hello world"
#include <iostream>
std::cout << someString << "
";
cout << "put text here"
string name("Alice");
string name2 = ("Hafsa", "Mona"); // last one will be print
string name3{"Sona"};
string nam4 = "Selena";
Code Example |
---|
Cpp :: cpp linked list |
Cpp :: tuple vector c++ |
Cpp :: vector size |
Cpp :: iostream c++ |
Cpp :: data types in c++ |
Cpp :: c++ insert variable into string |
Cpp :: comparator priority queue c++ |
Cpp :: stack class implementation to file unix-style in c++ |
Cpp :: range based for loop c++ |
Cpp :: c++ std string to float |
Cpp :: c++ namespace example |
Cpp :: QVariant to int |
Cpp :: c++ class |
Cpp :: min heap stl |
Cpp :: dequeue c++ |
Cpp :: square gcode |
Cpp :: intersection between vector c++ |
Cpp :: c++ compare type |
Cpp :: move assignment operator c++ |
Cpp :: DS1302 |
Cpp :: what is the time complexitry of std::sort |
Cpp :: c++ string to char* |
Cpp :: find maximum sum of circular subarray |
Cpp :: abs in c++ used for |
Cpp :: initialisation of a c++ variable |
Cpp :: c++ string example |
Cpp :: ifstream file (“code2.txt”); dev C++ |
Cpp :: c++c |
Cpp :: CPP print executable name |
Cpp :: find no of occurences of each letter in string c++ |