Click here to Skip to main content
15,918,742 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to convert JP2 image to Jpg image? Pin
Hamid_RT7-May-09 23:00
Hamid_RT7-May-09 23:00 
Questionwhat is the relation between bitmap data and color table in 8 bits bitmap? Pin
songhunhun7-May-09 15:28
songhunhun7-May-09 15:28 
AnswerRe: what is the relation between bitmap data and color table in 8 bits bitmap? Pin
Naveen7-May-09 18:25
Naveen7-May-09 18:25 
GeneralRe: what is the relation between bitmap data and color table in 8 bits bitmap? Pin
songhunhun7-May-09 22:24
songhunhun7-May-09 22:24 
QuestionPoint Class Pin
Ronube7-May-09 12:03
Ronube7-May-09 12:03 
GeneralRe: Point Class Pin
harold aptroot7-May-09 12:36
harold aptroot7-May-09 12:36 
QuestionRe: Point Class Pin
CPallini7-May-09 21:57
mveCPallini7-May-09 21:57 
AnswerRe: Point Class Pin
Stuart Dootson7-May-09 22:19
professionalStuart Dootson7-May-09 22:19 
Questionneed help Pin
ahmedbhatti7-May-09 11:43
ahmedbhatti7-May-09 11:43 
AnswerRe: need help Pin
jeron17-May-09 11:56
jeron17-May-09 11:56 
GeneralRe: need help Pin
ahmedbhatti8-May-09 13:43
ahmedbhatti8-May-09 13:43 
AnswerRe: need help Pin
Hamid_RT8-May-09 0:44
Hamid_RT8-May-09 0:44 
GeneralRe: need help Pin
ahmedbhatti8-May-09 9:28
ahmedbhatti8-May-09 9:28 
Questionstream Pin
viliam7-May-09 9:59
viliam7-May-09 9:59 
QuestionHow to run an exe in admin mode? Pin
birajendu7-May-09 9:38
birajendu7-May-09 9:38 
AnswerRe: How to run an exe in admin mode? Pin
Madhu Nair7-May-09 9:53
Madhu Nair7-May-09 9:53 
AnswerRe: How to run an exe in admin mode? Pin
David Crow7-May-09 10:00
David Crow7-May-09 10:00 
QuestionMultithreaded code and the volatile qualifier Pin
Skippums7-May-09 9:17
Skippums7-May-09 9:17 
AnswerRe: Multithreaded code and the volatile qualifier Pin
Stuart Dootson7-May-09 10:48
professionalStuart Dootson7-May-09 10:48 
AnswerRe: Multithreaded code and the volatile qualifier Pin
cmk7-May-09 17:09
cmk7-May-09 17:09 
Questionany problems with this code Pin
kaku_lala7-May-09 7:51
kaku_lala7-May-09 7:51 
Folks, I have been told that there is one logical problem with this code. Basically, this is an implementation of the library function strcat().

The intended beahviour of this function to concatenate ct to the end of s. Return s.

I could not find any logical problems with the code, apart from the fact that the final string should be NULL terminated, but I am not sure that can be classified as an error.

Could you help me find the error, if there is any.

char *strcat(char *s, const char *ct)
{
int i, start;
start = strlen(s);
for (i = 0; i < strlen(ct); i++)
{
s[start + i] = ct[i];
}
return s;
}

P.S. -
Is this the only correction needed in the code:
s[start+i]='\0'; \\after the loop
AnswerRe: any problems with this code Pin
David Crow7-May-09 8:56
David Crow7-May-09 8:56 
QuestionHELP [modified] Pin
yunpil7-May-09 7:40
yunpil7-May-09 7:40 
AnswerRe: HELP Pin
Cedric Moonen7-May-09 7:53
Cedric Moonen7-May-09 7:53 
JokeRe: HELP Pin
sashoalm7-May-09 22:39
sashoalm7-May-09 22:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.