Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?
No Answer is Posted For this Question
Be the First to Post Answer
Are vectors faster than arrays?
What are the differences between public, private, and protected access?
12 Answers IBM, Oracle, Wipro,
How long does it take to get good at leetcode?
What does the following code do: int c=0; cout< a) Undefined *Updated* b) 01 c) 00
Can you pass an array to a function in c++?
How is memory managed in C++?
What is the array and initializing arrays in c++?
What is nested class in c++?
What are the two main components of c++?
can any one help to find a specific string between html tags which is changed to a sting.. weather.html looks (for location) is <location>somewhere</location> #include <iostream> #include <fstream> #include <string> 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: "<<location << endl; cout << "Temperature: " << temperature << endl; system("pause"); } string find_field(string myPage,string find_string){ int temp=myPage.find(find_string); if(temp!=string::npos) { cout << "Match found at " << temp << endl; } return "found?"; } ///
Write a program to calculate the following i want a c++program for this condition 1+4+9+16+….+100 Like this (1^2+2^2) Hint use function pow(a,b)
How can you say that a template is better than a base class?