I started learning c++ a few weeks ago and i made my first program. You guys should recognize it.
#include <iostream>
using namespace std;
int main(){
string p,c,f ;
while (true){
cout << "what is your name?\n" ;
cin >> c ;
if (f==c) {
cout << p << " just got a point!\n\n" ;
}
cout << "your next guess?\n" ;
cin >> f ;
p=c ;
}
return 0;
}
Also if anyone knows c++ can you help me find whats wrong with this tic-tac-toe game? it was fine until i added the scoring system. Its quite long and could be shortened so much with switch commands but i forgot how to use them while making it. I used a lot of copy pasting.
https://code.sololearn.com/cHzKpH14NrLg/#cpp