xxxxxxxxxx
printf("%d\n", x); // Keep in mind to use the correct format string
// See reference sheet here for format strings:
// https://en.cppreference.com/w/c/io/fprintf
xxxxxxxxxx
// essential things
#include <iostream>
#include <string>
using namespace std;
//string variable
string printMe = "hehe cool";
int main(){
//print text
cout << printMe << endl;
// ^^^^^^^^ string variable
return 0;
}