answersLogoWhite

0

What else can I help you with?

Continue Learning about Engineering

Who invented roadways?

the Romans invented the road


Is there allowed to be spaces in HTML coding?

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.


Write a program to count number of spaces in a string using array?

#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; }


How do you make a on peace sign HTML?

& #9774 ; all together..No spaces between "&" and #9774..No spaces in between #9774 and ";" ☮


Why does the browser ignore white spaces and new lines in the HTML source code?

use this: <br> for new lines, and use this:   for spaces