1 #include <iostream>
 2 
 3 /* run this program using the console pauser or add your own getch, system("pause") or input loop */
 4 using namespace std;
 5 int main(int argc, char** argv) {
 6     char ch[20];
 7     cin.get(ch,20,'/');
 8     cout<<"The first part is:"<<ch<<endl;
 9     cin.get(ch,20,'/');
10     cout<<"The second part is:"<<ch<<endl;
11     return 0;
12 }

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-09
  • 2022-01-04
  • 2021-09-22
猜你喜欢
  • 2022-12-23
  • 2021-04-14
  • 2021-12-14
  • 2021-11-14
  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
相关资源
相似解决方案