What is binary object model?
1031
Which one between if-else and switch is more efficient?
1076
What are the advantage of using register variables?
1174
What is split a string in c++?
1192
Why null pointer is used?
1050
can any one help to find a specific string between html tags
which is changed to a sting..
weather.html looks (for location) is
somewhere
#include
#include
#include
using namespace std;
string find_field(string myPage,string);
int main (void) {
string page, line, location, temperature;
ifstream inputFile("weather.xml");
while(getline(inputFile, line)) {
page.append(line);
line.erase();
}
// Now page is a string that contains the whole xml page
// Here you need to write something that finds and
// extracts location and temperature from the XML
// data in the string page and stores them in
// the strings location and temperature respectively
location=find_field(page,"location");
temperature=find_field(page,"temp_c");
cout << "Location: "<
2057
What is setw manipulator in c++?
1083
What are the manipulators in c++?
1041
What is the use of lambda in c++?
1032
What does ios :: app do in c++?
1037
Write a program to find the Fibonacci series recursively.
1074
How one would use switch in a program?
1079
What is a block in c++?
1053
Define basic type of variable used for a different condition in C++?
1143
Explain the use of vtable.
1089