You can change the order by creating a pointer to the beginning (pFirst) and a pointer to the end of the list (pLast). Now use a local variable (temp) to change values like this:
temp = *pFirst;
*pFirst = *pLast;
*pLast = temp;
Then increment the first en decrement the last pointer:
pFirst++...
You are probably calling a function in stdlib.h with the wrong arguments...need to have a look at the rest of the code. It's very unlikely that stdlib.h contains an error. These kind of errors are usually caused by other program errors, and the compiler messages should not be taken literally...
Its not that difficult to handle exceptions in Borland C++ Builder. One method is to overload the VCL exception handler by creating your own;
//----------------------------------------------------------
void __fastcall TForm::AppException(TObject *Sender, Exception *E)
{
//* Go crazy on...
OK...here it is. Have fun....
(ivarmeijer@hotmail.com)
#include <iostream.h>
#include <stdio.h>
#include <string.h>
//********************************************************************
void strReverse ( char *pString );
int main ()
{
char ch[20] ;
cout<< "Please enter the string you...
Hi,
This is a C++ Builder question:
The OnCloseQuery event enables the programmer to set the CanClose variable (the OnCloseQuery event is simply called because the application received a WM_QUERYENDSESSION from Windows I guess). This enables the application to react when Windows sends a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.