Question: i am getting the warning warning: unknown escape sequence: 's' and warning: unknown escape sequence: 'C' here is my code #include #include using namespace std;
i am getting the warning
warning: unknown escape sequence: '\s'
and
warning: unknown escape sequence: '\C'
here is my code
#include
int main() {
ifstream infile; infile.open("C:\\college\\C++\\scores.txt"); if(!infile) { cout<<"could not open"; return 0; else string p; string t; int s; string player[6]; string team[6]; int score[6]; while(infile>>p>>t>>s) { for(int i=0;i<6;i++) { p=player[i]; t=team[i]; s=score[i]; } } int scoreb=0,scorew=0; for(int i=0;i<6;i++) { if(team[i]=="Blue") scoreb=scoreb+score[i]; else if(team[i]=="White") scorew=scorew+score[i]; } if(scoreb>scorew) {cout<<"Blue team wins with a score of "<
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
