1234567891011121314151617
#include <string> using namespace std; struct weaponData{ string name; unsigned int atk; unsigned int def; unsigned int basePrice; }; weaponData sword; sword.atk = 60; sword.basePrice = 70; sword.def = 20; int main(){ //stuff }
|11|error: 'sword' does not name a type|