/*
*程序的版权和版本声明部分:
*Copyright(c)2014,烟台大学计算机学院学生
*All rights reserved.
*文件名称:函数之间微妙的差别
*作者:刘中林
*完成日期:2013年 6月 02 日
*版本号:v1.0
*对任务及求解方法的描述部分:
*输入描述:
*问题描述:
*程序输出:
*问题分析:
*算法设计:
*/
#include <iostream>
using namespace std;
int main()
{
char ch[20];
cin.get(ch,20,'/');
cout<<"the first part is:"<<ch<<endl;
cin.get(ch,20,'/');
cout<<"the second part is:"<<ch<<endl;
return 0;
}
*样例输出:
#include <iostream>
using namespace std;
int main()
{
char ch[20];
cin.get(ch,20,'/');
cout<<"the first part is:"<<ch<<endl;
//cin.ignore();
cin.get(ch,20,'/');
cout<<"the second part is:"<<ch<<endl;
return 0;
}
*样例输出:
*心得体会:神奇。。