Space Checker | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Space Checker

https://code.sololearn.com/cLr91X16JMb3/?ref=app How do i write it correctly(so program can check if there is a " " in your input)

26th Sep 2018, 12:16 PM
Oleg Storm
Oleg Storm - avatar
2 Answers
+ 4
If I have understood you correctly you are asking to check for a space in string in a better way? If that's the case, there's another way to to check for space. You can use isspace() function included in the cctype library. For more information visit this link: http://www.cplusplus.com/reference/cctype/isspace/
26th Sep 2018, 5:21 PM
blACk sh4d0w
blACk sh4d0w - avatar
+ 1
nautaxh thanks, that is exactly what i want😊
26th Sep 2018, 6:08 PM
Oleg Storm
Oleg Storm - avatar