Take string or character array as input in C++. Following are few ways to do this: gets(arr); scanf(“%s”, arr); scanf(“%[^\n]”, &arr); fgets(arr, 20, stdin).
確定! 回上一頁