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.

2069

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


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

Infosys,

1 3283

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

1 2620

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

1575

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

1 3200

what is Class in oops with example?

HCL,

4 5409

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 5178

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

Syntel,

1 5137

which feature are not hold visual basic of oop?

Ignou,

1692

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

TCS,

4 5693

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

NIIT,

3 5282

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

1 2454

what is ns string? what is ns array?

1 3039

how to use C++?

NIIT,

2032


Un-Answered Questions { C++ }

How are Structure passing and returning implemented by the compiler?

573


How many ways can a variable be initialized into in C++?

577


Explain virtual class and friend class.

572


What are the costs and benefits of using exceptions?

521


What is data abstraction? How is it different from data encapsulation?

500






What do you mean by storage classes?

765


What is the function to call to turn an ascii string into a long?

570


What does it mean to declare a destructor as static?

596


Eplain extern keyword?

539


What is ctime c++?

552


What is solid in oops?

580


What are the 4 main oop principles?

647


Which bitwise operator is used to check whether a particular bit is on or off?

568


Do inline functions improve performance?

616


Is this job good for future? can do this job post grduate student?

1666