摘要: 1 #include 2 #include 3 4 using namespace std; 5 6 int main() 7 { 8 string line; 9 getline(cin,line,'-'); //getline用法 10 cout中包含 12 cout<<line[0]<<endl; //访问数组中的字符 13 ... 阅读全文
posted @ 2016-03-23 21:08 hu983 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 输出:10,20,50 参考资料: 《征服C指针》(http://avnpc.com/pages/c-pointer) 阅读全文
posted @ 2016-03-23 11:19 hu983 阅读(531) 评论(0) 推荐(0) 编辑