📅  最后修改于: 2022-03-11 14:44:58.258000             🧑  作者: Mango
//first lets create a function
/*void is for starting something, anything after void will be the name of your
function which will be followed by () */
void yourFunction() {
//your code will be here, anything here will be the code in the yourFunction
cout << "Functions"
}
//now we have to go to our main function, the only function the compiler reads
int main() {
myFunction(); //you call the function, the code we put in it earlier will be executed
return 0;
}