How do you call to the constructor from a object declared whit pointer?
155011
I'm supposing you are talking about C++.\nIn C++ Constructor is called when you are constructing it using new operator. You can pass parameter then.\nObjectpointer=new Object(param1, pram2,....)
930756
#include<iostream>\nusing namespace::std\n\nvoid main(){\ncout<<"Plz enter a number"<<endl;\nint x;\ncin>>x;\nif(x!=4)\n{\ncout<<"Well Done"<<endl;\n}\nelse {\ncout<<"The Number You Entered is 4"<<endl;\n}\n\n};\n\nI GUESS THIS IS WHAT YOU MEAN. YOU DONT NEED A BOOLEAN OPERATOR IN THIS CASE.
692205
its possibile to change data in address locations outside of the scope of the variable.\nexample:\n\nint a;\nint *p;\n\nint a = 2;\np = &a; //get address of a\np++;    //inc pointer\n*p = 5; //load address with 5\nwhere is p pointing to? not a, so we just over wrote some other address that may contain other data.
644724
consider ...\n\nstruct test\n{\nint x;\nint y;\nstruct test next_t;\n};\n\nhow big would it be? it would try to go on forever - it's a recurring structure\n\nnow consider\n\nstruct test\n{\nint x;\nint y;\nstruct test *pnext_t;\n};\n\nmuch better - the definition 'stops' at *pt which needs to be assigned a value (pointer to a struct test) so only growing as required.\n\nso, you can next structures as long as there is no self referencing structure causing a referencing loop - and you can nest pointers to structures - which is usually the best way to proceed
652239
the object you are trying to call doesn't exist
642028
try this it might help you\n\nhttp://techweb.konicabt.com/scripts/web_access.cgi?FUNC=LOGIN&LOGIN_USER_ID=kmweb&LOGIN_PASSWORD=enduseru! \n\n\n\n Visual C++ Concepts: Building a C/C++ Program   \n\nCompiler Error C2351\nobsolete C++ constructor initialization syntax\n\nIn a new-style initialization list for a constructor, you must explicitly name each direct base class, even if it is the only base class.\n\nThe following sample generates C2351:\n\n// C2351.cpp\nclass B\n{\npublic:\n   B() : ()   // C2351\n   {\n   }\n\n   // use the following syntax instead\n   /*\n   B()\n   {\n   }\n   */\n};\n\nint main()\n{\n}\n\n\n\n\nCompiler Error C2351\nobsolete C++ constructor initialization syntax\n\nA direct base class was not named in the constructor.\n\nThe new-style initialization list for a constructor member requires each direct base class to be explicitly named, even if it is the only base class in the list.\n\nThe following is an example of this error:\n\nclass B\n{\npublic:\n   B();\n   B( int );\n};\nclass D : public B\n{\npublic:\n   D( int i ) : ( i ) {}   // error, B was not named\n   D( int i ) : B( i ) {}  // OK\n};\n\n\n\nI sure hope some of this helps you and Good Luck!
925250
BOOKS ???\n\nwrite a overload method for the assignment operator in the derived class.... if the same operator is overloaded in the base class then you must use virtual keyword in the base overloading method.
160699
#include <iostream.h>\n#include <fstream.h>\n\nvoid main()\n{\n  ofstream output;\n  output.open("outpu.dat");\n\n  output << "Ouput test data";\n\n  output.close();\n}
148785
ignacionr2 has the most correct response to this question.  The standard C++ library has a 'string' type in the standard ('std') namespace that allows you to declare and initialize an abstract string type.\n\nNote, the header files for the standard C++ library no longer have the ".h" extension on them.  So for I/O streams, you'd use: "#include <iostream>" and for strings, you'd use: "#include <string>".\n\nTo declare instances of a string, you could use:\n\nstd::string myString = "string one";\n\nor\n\nstd::string myString("string two");\n\nYou can add a "using std::string;" to your local scope as a shortcut to avoid typing "std::" to qualify the standard string's namespace.
912485
there is no "code" for it. The compiler evaluates it at the compile time, and replaces with the actual number.\nThere is no way to write a function that would did that at run time, because at run time, there is not type information available - only addresses of variables not their sizes
295277
#include <iostream.h>\n#include <string.h>\n\nstruct String\n{\npublic:\nchar * Data;\nint Length;\n};\nString operator+(const String & s1,const String & s2)\n{\nchar * s3=new char [s1.Length+s2.Length];\nstrcpy(s3,s1.Data);\nstrcat(s3,s2.Data);\n\nString Out;\nOut.Data=s3;\nOut.Length=s1.Length+s2.Length;\nreturn Out;\n}\n\n//you can't directly overload char * because at least one operand of any overloaded operator must be of some user-defined type.\n\n//u can use strcat
256833
The problem I see with Traversal is that the calls to itself don't have the same number of parameters.  Since you don't seem to be using "mode", you should probably remove it from the function's parameter list.  This should have been fairly obvious from the compiler error messages...\n\nI think the problem with FindMin is that tnPtr was declared a const?  Which means that the while loop can't update it.  This might have also been apparent from the compiler errors...
604514
Look into Properties and how to use them in C#. You have to create a property and then instantiate this property in the main function.
639857
use of this pointer is to show the current referemce.\nu can pass the formal arguments and variables with same name,\n\nfor eg a part of prog\n.\n.\nvoid initialize(int x,int y)\n{\nthis.x=x;//x=5\nthis.y=y;//y=6\n}\n.\nvoid main()\n{\n..\n...\ninitialize(5,6);\n}\nif this is not used the above prog will be\n\nvoid initialize(int x,int y)\n{\nx1=x;//x1=5\ny1=y;//y1=6\n}\n.\nvoid main()\n{\n..\n...\ninitialize(5,6);\n}\n\ndid u understand..
920270
Here's a start.\n\nI see you are using 'getch()' from conio.h\n\nI assume this is to insert a pause into the program?\n\nThis is not an ideal bit of coding as it is no longer supported by all compilers. Do you know that your teacher wants you to use it? (I assume this is homework?)\n\nHere's some discussion about it if you're interested\nhttp://forums.devarticles.com/c-c-help-52/c-problems-with-getch-6229.html\n\nIf you make an attempt to write some code we may be able to help you more.\n\n\n# include<iostream>\nusing namespace std;\n\nint main()\n{\n   \n  getch();\n\n   return 0;\n}\n\nNOTE: Be careful about using the answers supplied below.\nmerven uses 'void main()' which is not standard c++.\nthe other example uses some C rather than C++ in places.\n\nAnd this is from smart people who know what they are talking about and are trying to help you. No disrespect of any kind intended from me towards them. Just that what they are coding may not meet your teacher's approval (depending on her/his preferences).\n\nAre you prepared to do any work at all to help yourself and therefore help us to help you?\n\n///
1150710
Use a visual C++ compiler to compile the code . you will need to modify some of your code too..
82674
In Java, "dynamically" is the *only* way to create\nan instance of a class (since unlike C++, it does\nnot allow static or stack-based objects).  Sample\nsyntax is:\n\n    Rectangle rectOne = new Rectangle(originOne, 100, 200);