As per your function declaration:
void size(string* const pword);
'size' function require one argument and that is missing during function...
KibblesCount = NumCount;
NumCount is a uninitialized local variable and it will contain the garbage value.
Any operation on NumCount will...
Are you using run time memory allocation means heap memory?
If not try malloc/calloc for run time memory allocation, If problem is stil there...
char str = "now # is the time for all # good men to come to the # aid of
char delims =...
"is" should be replaced by "=="...
if (mess->MessageParts->Items[inindex] is TIdAttachmentFile)
You are right that "WriteFile" API would be used for writing data to serial port.
First you have to take the data into the buffer. like...
Starting from user, If sticks picked by user is say 'n' then computer should pick '5-n' sticks. Keep this logic in loop.
From main you are passing temp by value, to achieve desired result you should pass temp by address.
This statement will lead illlegle memory access also.
You can do it without temp var.
#define SWAP(a,b) a=a+b;b=a-b;a=a-b;
Here is the example
buffer1 = (char *)malloc(5*sizeof(char));
buffer2 = (char...
If you have radius and center cordinates then you can use the standred equation of circle.
((X- H)*(X -H)) + ((Y -K)*(Y - K)) = R*R
I have some doubts about output.malloc will allocate a chunk of 20 bytes to p2 and we set that buffer with 0. In the while loop we are...
also put terminating char in the last of string.
You can also use standered function strtok( ) .Take a char pointer and allocate it memory enough to hold the string.call strtok for tokens and...
just changing the way
we acn also get the info from last bit
int is_numeven(int number)
if(!(number & 1))
This is out of bound access to an array.this should lead a crash in WIN & UNIX progarmming env but in case of DOS it can run fine.Either way it is...
things will get well just declare that function before main.
using namespace std;
Separate names with a comma.