I'm also using Eclipse IDE
S
Saravanan Sundaresan
@Saravanan Sundaresan
Posts
-
What is the best programming IDE for JAVA ? -
How to master C++Make your hands dirty by entering into solving some problems
-
Right method of swapping arrays and classes using pointers:thumbsup:
-
CString Concatenation question:thumbsup:
-
How to fix the invalide pointer problemRunning with a memory leak detector can help?
-
In C++ compiler providing the default copy constructor ,then why do we need copy constructorMay be it is orthogonal information, If we want to hide/restrict usage of default copy constructor, we need to provide override declaration in private section of class, and no definition for that. This ensures preventing usages of copy constructor
-
concat two char * variablesHere is the function as per your requirement:
char* concat(const char* c1, const char* c2)
{
int size1 = 0, size2 = 0;for (int i = 0; c1\[i\] != '\\0'; i++) size1++; for (int j = 0; c2\[j\] != '\\0'; j++) size2++; char\* result = new char\[size1+size2\]; for(int i=0; i<size1; i++) { result\[i\] = c1\[i\]; } for(int j = 0; j <= size2; j++) { result\[size1+j\] = c2\[j\]; } result\[size1+size2\] = 0; return result;
}
-
MoveTextToTheBottom ! Help meGive your requirement in detail......
-
add a tool bar -
Why it fails?I think, Null char to be added to p[12].