C++ Interview Questions
Questions Answers Views Company eMail

Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.

2085

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: "< 1637


I need to find a specific string between two strings how do I do it?

Infosys,

1 3304

How would you represent an error detected during constructor of an object?

1 2639

why and when we can declar member fuction as a private in the class?

1594

what is difference between String s=new String("vali"); String s="vali"

1 3228

what is Class in oops with example?

HCL,

4 5451

class base { public: int fun(int) {} }; class base2 { public: int fun(float) { } }; so here qustion is both function either function overloading or over riding;

Manhattan,

4 5242

WHAT IS THE DIFFERENCE BETWEEN C++ AND VC++

Syntel,

1 5162

which feature are not hold visual basic of oop?

Ignou,

1717

write a C++ programming using for loop: * * * * * * * * * *

TCS,

4 5730

write a C++ programming :if the no is between 32 to 50 it will be odd.

NIIT,

3 5317

why in java first invoke public static void main(String args[]) method????Why not public static void method1(String args[])??

1 2480

what is ns string? what is ns array?

1 3059

how to use C++?

NIIT,

2059


Un-Answered Questions { C++ }

what is a class? Explain with an example.

611


In int main(int argc, char *argv[]) what is argv[0] a) The first argument passed into the program b) The program name c) You can't define main like that

611


What is a constant? Explain with an example.

550


Is java based off c++?

525


What is anonymous object in c++?

626






What is protected inheritance?

592


What is long in c++?

730


What is a unnitialised pointer?

523


How does polymorphism work?

628


Are c and c++ different?

531


What is double in c++?

555


What is the difference between new() and malloc()?

609


a program using one dimensional array that searches a number if it is found on the list of given input numbers given by the user and locate its exact location in the list.

1368


What is constructor and destructor in c++?

611


Explain static and dynamic memory allocation with an example each.

634