[SOLVED] Problem using gets() | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

[SOLVED] Problem using gets()

I am trying to make a c program to change case of letters in a string using functions from string.h header file. I've used gets() to take string input. A popup box for taking input should come when I run the code in code playground. But it isn't coming. What's the problem with the code? Thanks in advance. https://code.sololearn.com/ckkGl7HSb9Dz/?ref=app

28th Nov 2017, 5:52 PM
DAB
DAB - avatar
1 Answer
+ 6
Use @kurwius technique or place "cin>>" after the return 0 line of your main Of course gets is supported !
28th Nov 2017, 7:28 PM
Baptiste E. Prunier
Baptiste E. Prunier - avatar