摘要: getline函数的作用是从输入流中读取一行字符,其用法与带3个参数的get函数类似。即 cin.getline(字符数组(或字符指针), 字符个数n, 终止标志字符)[例13.7] 用getline函数读入一行字符。 #include <iostream> using namespace std; 阅读全文
posted @ 2017-04-18 23:34 极地啸天 阅读(2820) 评论(0) 推荐(0)