Reading in a string of unknown length from the console

后端 未结 2 1197
死守一世寂寞
死守一世寂寞 2020-12-10 08:18

If I want to read in a string of arbitrary length from the command line, what\'s the best way of going about it?

At the moment I\'m doing this:

char          


        
2条回答
提交回复
热议问题