Message from C, C++ talks

June 2019

— 523 => 325

— Would you mind making me a breakfast?

— Can anyone help with this piece of code ? https://gist.github.com/harshraj22/10d1237f8a1395f61fe66f23a8156586 input format can be found here : https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=13&page=show_problem&problem=1140

Message permanent page

— Sir can you help

— 

You can use fgets(str, fp) where the string is str and fp is the file pointer.. From fopen(filename, mode)

— But if we want to read from input during run time?

— And not from a file?

— Https://stackoverflow.com/questions/3919009/how-to-read-from-stdin-with-fgets

— Try using printf(" %[^\n] ",....);

— %[^\n]%*c works. but why is the asterisk placed before c and not before \n ??

— Don't place *c

— Just try this

— This works

— That only worked

— This dint