char a[10]; scanf(“%s”, a);. Similarly you can print the C-style string with the printf() with '%s' format specifier or cout.
確定! 回上一頁