I'm sorry, I'm really new to this...
What is std::vector and how do I use it?
thanks, Sbook
Type: Posts; User: sbook
I'm sorry, I'm really new to this...
What is std::vector and how do I use it?
thanks, Sbook
I tried:
length = sizeof(PArray)/sizeof(PArray[0]);
but it returned 0. Doing each individually, it returned that the sizeof PArray was 4 and the sizeof PArray[0] or PArray[1] was 30. So, does...
Can anyone tell me how to find out how many objects are in a given array of objects?
Do you use sizeof()?
I tried to use strlen, but it says that I can't do that unless it's a string of...
Sorry, I don't know if anyone can read my attached file above. It's:
Person P1 = new Person ("1a", "1b", "1c", "1d", "1e", "1f");
Person P2 = new Person ("2a", "2b", "2c", "2d",...
I'm having more problems. I made a class Person and each Person takes 6 parameters. Now, I'm supposed to make an array of 5 people. Can anyone tell me what is wrong with the code below? I really...
Thanks for the help
I'm just learning C++, and I've been given a project to make a class Person with 6 different parts to it. Then, I have to make an array of 5 people initializing each part for each person.
I wrote...