C and C++

Moderators: None (Apply to moderate this forum)
Number of threads: 28629
Number of posts: 94611

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Re: any problems with this code Posted by Lundin on 9 May 2009 at 12:28 PM
: your logical error is here
:
:
: 
: for (i = 0; i < strlen(ct); i++)// this care only for the lenght of ct
: {
: s[start + i] = ct[i];//  start+i(s) is not greater than array size
: }
: 
:


No that looks fine, start is used as an offset to determine where the "s" string ends.
Thread Tree
klala any problems with this code on 7 May 2009 at 10:49 AM
Lundin Re: any problems with this code on 8 May 2009 at 12:38 AM
losthelper Re: any problems with this code on 8 May 2009 at 1:09 PM
AsmGuru62 Re: any problems with this code on 9 May 2009 at 8:02 AM
Lundin Re: any problems with this code on 9 May 2009 at 12:30 PM
Lundin Re: any problems with this code on 9 May 2009 at 12:28 PM
losthelper possible cause on 11 May 2009 at 9:22 AM
Lundin Re: possible cause on 12 May 2009 at 12:49 AM
tcanvn Re: any problems with this code on 23 May 2009 at 5:17 PM
Arcaiz Re: any problems with this code on 25 May 2009 at 7:08 AM
tcanvn Re: any problems with this code on 18 Jun 2009 at 3:11 PM



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.