关于C++中string输入cin,getline()问题,《C++ primer》学习总结
Chapter 3. Library Types
根据书上的例子,自己写了一个测试程序。
在头文件中定义了各个方法,以下是getstring.cpp()
#include "StringExample.h"
#include
#include
using namespace std;
void readString()
{
cout<<"This is the string rea
原创
2012-09-26 18:44:47 ·
1721 阅读 ·
0 评论