gets() command warning.

Posted 23 November 2009 - 01:07 PM

I'm trying making a simple program in C++ and I can't get it to work. I've tried it on Microsoft Visual Studio and it worked but now when I use it on my Mac on XCode it gives me this warning:
warning: this program uses gets(), which is unsafe
Then it skips over that line. Heres my code: