So, if that doesn't work, how do i get an array of structures?Code:struct product[30] { float prize; std::string name; std::string fullname; int index; };
So, if that doesn't work, how do i get an array of structures?Code:struct product[30] { float prize; std::string name; std::string fullname; int index; };
Code:struct product { float prize; std::string name; std::string fullname; int index; }myArr[3];
Operating Systems:
- Ubuntu 9.04
- XP
Compiler: gcc
Thank you!