Chat with our AI personalities
the Romans invented the road
There can be spaces between the words, but not in the middle of a word.There can be spaces between the words, but not in the middle of a word.There can be spaces between the words, but not in the middle of a word.There can be spaces between the words, but not in the middle of a word.There can be spaces between the words, but not in the middle of a word.There can be spaces between the words, but not in the middle of a word.There can be spaces between the words, but not in the middle of a word.There can be spaces between the words, but not in the middle of a word.There can be spaces between the words, but not in the middle of a word.There can be spaces between the words, but not in the middle of a word.There can be spaces between the words, but not in the middle of a word.
#include<iostream> #include<string> size_t count_spaces(std::string& str) { size_t spaces=0; for(size_t i=0; i<str.size(); ++i) if( str[i]==32 ) ++spaces; return( spaces ); } int main() { std::string str("This is a string with some spaces."); size_t spaces = count_spaces(str); std::cout<<"The string ""<<str.c_str()<<"" has "<<spaces<<" spaces.\n"<<std::endl; }
& #9774 ; all together..No spaces between "&" and #9774..No spaces in between #9774 and ";" &#9774;
use this: <br> for new lines, and use this: &nbsp; for spaces