Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 11 Online
OpenStudy (anonymous):

hi i'm new to C++ can anyone tell me what's wrong with this ? thanks ~! http://www.sourcepod.com/evypzj11-6457

OpenStudy (anonymous):

Suggest you try to Computer Science forum. This is for students who are going through MIT 6.00 course exercises and learning Python.

OpenStudy (anonymous):

oh thanks~ i actually thought this was the CS forum XD

OpenStudy (anonymous):

What exactly is wrong with it?

OpenStudy (anonymous):

Line 16. cin.getline(name,strlen(name)); you are using strlen() on an uninitialized char array.

OpenStudy (anonymous):

oh thank you so much ~! i don't know why i did not notice that before XD

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!