Hi Here is the program for you enjoy!!! #include "stdafx.h" #include <iostream.h> int main(int argc, char* argv[]) { int numofcompanies; int...
what characters or strings are given as input to the atof in the above program?
other method using inheritence Class A { protected: int a; }; class B:public A { public: int c; }; int main() { B b; return 0; } Using this...
well in this case, a compiler error will be thrown. Because u r trying to create a class object which is global to the code whereas the...
int main() { char str1[MAX_PATH]; char str2[MAX_PATH]; cout<<"Enter a string"<<endl; cin>>str1; int n1;...
Hi Try using Exit(0); This will terminate ur calling process
The constructor is never inherited by the derived class, so it doesnt matters wherever u write the constructor.
When u create a structure, a definition is being created. But when u insert a variable of the same structure in the definition, the structure is...
Separate names with a comma.