6.6 — C-style strings « Learn C++

6.6 — C-style strings « Learn C++

瀏覽:875
日期:2025-04-24
Hello, I’ve got a question about the cin.getline() function. For example: char string[10]; cin.getline(string, 10); cout If I know enter more than 10 chars the program just runs through and the first entered 10 chars doesnt get shown.How can I force the p...看更多