Computer Science Canada Strings |
Author: | dchini [ Fri Oct 03, 2008 11:43 am ] | ||
Post subject: | Strings | ||
Hey I'm trying to manipulate the array of chars, dan, to an output of my choice. Any help or advice would be much appreciated! NOTE: Dan starts at index [0] Ran starts at index [17] 12 starts at index [34] there is spaces inbetween
[edit by md] Fixed the code highlighting |
Author: | md [ Fri Oct 03, 2008 3:10 pm ] |
Post subject: | RE:Strings |
Using your code... are you sure that Ran starts at 17? and that 21 starts at 34? Also, you need to terminate your string with null characters, as otherwise you get garbage at the end of them. |
Author: | dchini [ Fri Oct 03, 2008 4:06 pm ] | ||
Post subject: | Re: Strings | ||
I took your advice and i now have this..... i still get garbage characters though
|
Author: | OneOffDriveByPoster [ Fri Oct 03, 2008 6:59 pm ] | ||
Post subject: | Re: Strings | ||
dchini @ Fri Oct 03, 2008 4:06 pm wrote:
Something looks off in the lines I left in, no? |