could someone please explain what infile >> c; means and what it does?Code:do{ infile >> c; }while (c != 5 && c != 9); b = 7-c; b = b*b; cout << "b= " << b; if (c < 10) cout << "yes\n"; else cout << "no\n"; cout << "End of part a\n";
could someone please explain what infile >> c; means and what it does?Code:do{ infile >> c; }while (c != 5 && c != 9); b = 7-c; b = b*b; cout << "b= " << b; if (c < 10) cout << "yes\n"; else cout << "no\n"; cout << "End of part a\n";
You know what cin >> c does; why should this be different?
I don't know. I have never seen it before.