December 24, 2018
Count the number of words in the string
Threads: Please enter a paragraph, count of how many passages from.
Input: A single paragraph of no more than 255 characters.
Output: A unique number is numbered in sequence.
For example:
input: Cham Code Online. output: 3
You are not logged in? Log in to Submit Now!
9 Comments
Add a Comment
You must be logged in to post a comment.
bài này dụng ý của a sử dụng string hay char vậy ạ
Cái nào cũng được :).
Runtime error la sao ad oi
Là lỗi khi chạy nhé.
main.cpp:3:19: fatal error: conio.h: No such file or directory #include conio.h ^ compilation terminated.
trên máy em chạy bình thường , tại sao lên đây lại bị lỗi này ạ
Hệ thống không sử dụng conio.h nhé, bạn đọc hướng dẫn làm bài trước khi làm nhé.
run: line 1: 3 Segmentation fault (core dumped) LD_LIBRARY_PATH=/usr/local/gcc-4.8.5/lib64 ./a.out
Lỗi này là sao vậy ad?
ad ơi mấy bài chuỗi đang lỗi hay sao ấy. minh cứ dùng gets hay fgets deu bao : Error connect
vz. @@
Web vẫn chạy bình thường nhé.