Monday, February 8, 2010

String Vs Charecters

I had a code thet used " " to display a single space but it gave me a crazy answer like it showed <. I didn't know what to do so I asked freind
this is the code : http://pastebin.ca/1790805
this is why it showed < :
well i see one problem
you probably want to use ' ' not " "
" " is for a string and will add a null byte to the end...i dont know if that could be causing the problem or not
it should be ' ' not " "
" " is for strings, ' ' is for characters
so I know now what was my problem and my code is
working nicely now thanks tdot

0 comments: