November 24th, 2013, 03:39 PM
I get compile time errors.
November 24th, 2013, 03:03 PM
class Main{
class B b_obj;
C c_obj=b_obj.test("some",89); // I cannot get this done.!
}
Below are .h files:
class B{
public:
November 24th, 2013, 02:58 PM
Sorry didn't understand. Got lost in reference, bind. :(
I am noob in C++/C/pointer/reference world.
November 24th, 2013, 01:01 AM
Hi laserlight,
No, map doesn't need to be changed, I shall change it to const.
Can you please help me understand why //object.test(object.ret_poly()); fails? :(
November 23rd, 2013, 11:41 PM
#include <Data.h>
int main(int arg_count, char** argv)
{
if(arg_count!=3){
cerr<<"Files misisng\n";
exit(1);
}
Data object;
object.read_ref(argv[1]); //
November 7th, 2013, 12:37 PM
Thank you for such a great explanation and helpful URLs.
November 7th, 2013, 02:41 AM
Hi,
I am new to c++ and in process fo understading and learning string class.
I am working on istringstream
std::istringstream iss;
std::string value="32 40 50 80 902";
...
November 5th, 2013, 01:51 AM
Apologies for the inconvenience caused.
Thank you for the help.
I have now added default constructor.
November 3rd, 2013, 08:28 PM
Hi I am learning C++, and trying for object composition.
I have 2 classes: Point and Creature.
Point->int x and int y
Creature:-> Point location and string name
Below is my Point class header
October 31st, 2013, 04:25 PM
Ohh.
Thank you once again.
October 31st, 2013, 04:07 PM
@PM2kaud- Thank you for your reply.
So basically with string, the base address is passed and
cout prints until it finds '\0'
Please correct me, if I am wrong.
October 31st, 2013, 01:43 PM
Hi,
I am new to pointer world. I have started programming in c++ and have basic knowledge in c.
char y[]="helloo";
char *p=y;
cout<< p[1];
This prints 'e'
if I print: