#include "head.h"
#include <iostream>
#include <string>
usingnamespace std;
int main() {
// NEVER use goto, use a while loop instead. This basically says, if true is true, then loop... aka, infinite loop.
while (true) {
string name;
cout << "what is your name " << endl;
getline (cin, name);
// Using curly braces with logic and control statement help to make the code more clear
if (name == "mark") {
next();
// Break out of infinity
break;
} else {
cout << "invalid input " << endl;
}
}
}