Space Checker | Sololearn: Learn to code for FREE!

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)

9/26/2018 12:16:11 PM

Oleg Storm

2 Answers

New Answer

+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/

+1

nautaxh thanks, that is exactly what i want😊