oh, i missed that. i read it, but just didn't think about it enough. i will definately be reading more. i've only been playing with c++ for a short time, but i am starting to like it. it's just really hard compared to some other languages i've done.
Thanks again. "ThuNguyet Nguyen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Hi there, > > As I said, the input string must be at least maxlen+1 (which is 16). You overwrite every string. > > Char a[15] = "123456789"; // should be Char a[16]; > Char b[15] = "987654321"; // Char b[16]; > Char c[15] = "741852963"; // Char c[16]; > > PadStringWithChar(a,15,' '); // maxlen = 15 > PadStringWithChar(b,15,' '); > PadStringWithChar(c,15,' '); > > //when i put it through the debugger i found that: > //a ends up being "123456789 " > //b ends up being " " > //c ends up being "" > > Also, you may want to read about global/local variables and scope of a variable. > If you want, you can do google search for "C tutorial" and read about declaring a variable ... I > Once in a while, I read a C tutorial again and always learn st there that I miss the last time. :) > > tnn > > __________________________________ > Do you Yahoo!? > Yahoo! Calendar - Free online calendar with sync to Outlook(TM). > http://calendar.yahoo.com > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
