Recently I was developing a programming for just learning purpose. The program is about Nested Structure. I wanted to take it a little bit further so I included the 'Cin' function. I wanted the program to perform like if I enter a student's name, his details come up(like name, sex and age). Now the compiler is showing some error in the 'Cin' function which I totally can't figure out.
Please help :)
What? The gets() function can never be use safely, never, Never, NEVER use this dangerous function. And remember that this dangerous C function only works with C-strings not C++ string.