how many trys can we write in one class
Answers were Sorted based on User's Feedback
Answer / sreedevi.m0966
many. we cant write try in try but we can write man trys in
one class
| Is This Answer Correct ? | 16 Yes | 2 No |
Answer / anup
Number of try statement can be write in one class according
to our need.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / nagenpresearch
You can use many numbers of try in a single class according to your requirment
| Is This Answer Correct ? | 1 Yes | 0 No |
What is the size of integer variable?
What is capacity in vector in c++?
What are Binay tress and B trees? Diff between them?
Explain friend class?
Can user-defined object be declared as static data member of another class?
Which c++ operator cannot overload?
Am pass the 10000 records to target in target I will take commit interval 15000 when I was stop the work flow what will happened
class HasStatic { static int I; }; Referring to the sample code above, what is the appropriate method of defining the member variable "I", and assigning it the value 10, outside of the class declaration? a) HasStatic I = 10; b) int static I = 10; c) static I(10); d) static I = 10; e) int HasStatic::I = 10;
What do you understand by a pure virtual member function?
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?"; } ///
Which one of the following describes characteristics of "protected" inheritance? a) The base class has access only to the public or protected members of the derived class. b) The derived class has non-public, inheritable, access to all but the private members of the base class. c) The derived class has access to all members of the base class. d) The private members of the base class are visible within the derived class. e) Public members of the derived class are privately accessible from the base class.
What is the use of 'using' declaration in c++?