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 #include using namespace std;

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!