Aug 5, 2010 at 11:07pm
Either...
#include <cstring>
and turn this -> lexus.tireinfo.material = "rubber";
into this -> strcpy(lexus.tireinfo.material,"rubber");
Or...
#include <string>
and turn this -> char material[20];
into this -> std::string material;
I'd prefer the second solution.
Last edited on Aug 5, 2010 at 11:08pm
Aug 5, 2010 at 11:14pm
Kewl. So "string" is part of the std library, basically?
Aug 6, 2010 at 6:09am
Btw, it should be int main()