Message from C, C++ talks

June 2019

— Hi guys i have a problem with my program... why don't change my dekstop ? https://pasteboard.co/IhPuJLK.png

Message permanent page

— Compile but don't change the image

— Gets function isn't taking any input.
is it because of buffer or anything else?

— If buffer how to clear it ?

— 

When asking a question about a problem caused by your code, you will get much better answers if you provide code people can use to reproduce the problem. That code should be…

…Minimal – Use as little code as possible that still produces the same problem
…Complete – Provide all parts needed to reproduce the problem in the question itself
…Verifiable – Test the code you're about to provide to make sure it reproduces the problem

Taken from https://stackoverflow.com/help/mcve

— Use fget

— Sometimes it really helps

— Int a,b;
char c[80];
cin >> a;
gets(c);
cin>>b;

— Fflush

— Okie will try

— Use it

— It will clear buffer

— Btr use this

— Used not working

— Then u can try out fgets bro