There are a number of syntax errors in your code. Your compiler should be reporting errors. What are the errors? THese error messages include the line number where the error was detected. Make use of this line number.
Also, you need to indent your code properly. For example, this snippet:
Code:
if (grade > 61 && grade <= 70) {
std::cout << "You scored a D\n"; }
if (grade.substr(1, 1) <= 3) {
std::strcat (grade, minus) }
if (grade.substr(1, 1) = 8 || 9 || 0 {
std::strcat (grade, plus) }
would be better written as:
Code:
if (grade > 61 && grade <= 70) {
std::cout << "You scored a D\n";
}
if (grade.substr(1, 1) <= 3) {
std::strcat (grade, minus)
}
if (grade.substr(1, 1) = 8 || 9 || 0 {
std::strcat (grade, plus)
}
Note that your use of strcat here is a mistake, and that your attempt to compare with 8, 9 and 0 is not done right.