What are the rules for naming an identifier?
No Answer is Posted For this Question
Be the First to Post Answer
What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator?
What is size_type?
Write a single instruction that will store an EVEN random integer between 54 and 212 inclusive in the variable myran. (NOTE only generate EVEN random numbers)
How the delete operator differs from the delete[]operator?
What are the 3 levels of programming languages?
What is name hiding in c++?
Mention the ways in which parameterized can be invoked. Give an example of each.
Explain the difference between using macro and inline functions?
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?"; } ///
let a,b,c be three integer numbers.write a c++ program with a function void rotate 1()such that a->b->c and c->a.
How to construct virtual constructor
6 Answers CIStems Software, Symphony,
You have to take 2 arrays of length 10. Input the values of array 1 from the user. Then copy the values of array 1 to array 2 in ascending order For example if user enters 9, 5, 6, 8, 1, 0, 2, 7, 4, 3 then copy the smallest element i.e. 0 first followed by 1, 2 and so