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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started