Hi, Im new to Dev C++. I know the very basics and can compile basic programmes. But my knowledge is very limited.
Recently I was tasked with a project to create a programme where the user inputs a sentence and the word count is produced. The simpliest way I can think of doing it is by counting the spaces in the sentence then adding 1 to this. After research it seems that 'isspace' is the term that is required to crack the problem but i have no idea how to go about using it in my programme.
Any help would be much appreciated.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, Im new to Dev C++. I know the very basics and can compile basic programmes. But my knowledge is very limited.
Recently I was tasked with a project to create a programme where the user inputs a sentence and the word count is produced. The simpliest way I can think of doing it is by counting the spaces in the sentence then adding 1 to this. After research it seems that 'isspace' is the term that is required to crack the problem but i have no idea how to go about using it in my programme.
Any help would be much appreciated.
Your question has been answered on the DevShed forum.