Line 1 #include <iostream>
Line 2 #include <string>
Line 3 using namespace std;
Line 4 int main();
Line 5 class Joust
Line 6 {
Line 7 string "yellowknight";
Line 8 };
Line 9{
Line 10 printf("hello brandon");
Line 11 }
I get errors from this c++ code that says. Line 7 Expected member name or ; after declaration specifiers. Line 9 expected unqualified-id.
Well "yellowknight" isn't a variable... Remove the quote signs on it and assign what ever you want to it. Ex std::string yellowknight = "yellowknight";