输入字符串fgets

输入字符串fgets

#include<bits/stdc++.h>
using namespace std;

int main(){
    char str[30];
    char ch;
    fgets(str, 29, stdin);
    cout<<str;
} 

 

posted @ 2021-11-13 16:50  new-code  阅读(30)  评论(0)    收藏  举报