GETLINE.CPP
上传用户:dq031136
上传日期:2022-08-08
资源大小:802k
文件大小:0k
源码类别:

VC书籍

开发平台:

C++ Builder

  1. #include <iostream.h>
  2. void main(void)
  3.  {
  4.    char string[256];
  5.    cout << "Type in your full name and press Entern";
  6.    cin.getline(string, sizeof(string), 'n');
  7.    cout << string;
  8.  }