{{{~cpp //가위바위보 승패수 계산 프로그램 #include #include int gawibawibo(char, char); void main() { int result; int sunho_win=0; int sunho_lose=0; int sunho_draw=0; char name[2][10]; char sunho; char insu; char ch; //파일 읽음 ifstream fin("data1.txt"); fin.getline(name[0], 10); fin.getline(name[1], 10); while(!fin.eof()){ fin.get(sunho); fin.get(ch); fin.get(insu); fin.get(ch); result=gawibawibo(sunho, insu); //결과를 계산 if(result==0) sunho_win++; else if(result==1) sunho_draw++; else sunho_lose++;} //결과를 출력 cout<<"sunho의 승수: "<