摘要:
程序的输入一般有:标准的输入设备、磁盘文件或默认的变量初始值,通常前两种是必须的,程序的功能就是用来处理输入的内容。标准IO库提供类一些操作,例如 stringstream,使用这些操作可以是程序的处理简洁方便,下面是《C++ Primer》中的一个例子:1 string line, word; // will hold a line and word from input, respectively 2 while (getline(cin, line)) { // read a line from the input into lin... 阅读全文
posted @ 2013-04-16 17:58
毋忆典藏
阅读(158)
评论(0)
推荐(0)
浙公网安备 33010602011771号