im sorry to bother, but could you further clarify what you mean? For instance, what is foo();
Code:
#include <iostream>
using namespace std;
int main() {
int guess;
int clue;
cout << "Hello Internet\n";
cout << "Today, we are going to play the guessing game!\n";
cout << "\n";
cout << "You are going to pick a number from 1-100 and if you need help\n" << "Id be happy to give you clues!\n" << "\n";
cout << "Pick a number: ";
cin >> guess;
cout << "\n";
cin.ignore();
if ( guess < 74 ) {
cout << "Sorry, you guessed wrong!\n";
cout << "Would you like a hint?\n" << "\n" << "\n" << "<y/n>";
cin >> clue;
if ( clue == y )
// Add in couts etc...
}
else if ( guess > 74 ) {
cout << "high\n";
}
else {
cout << "You won the game!\n";
}
cin.get();
return 0;
}
here is my full code that i have right now to better clarify. im new to c++ and all coding, as in i started doing research yesterday and am loving it. I cant really explain the feeling when writing something and having it work lol. thanks