Explain me.. ;]
#7

And when using strings, always declare the number of cells for one more then the max number you will use: e.g. If you want to save a word with 99 characters, declare a string with 100 cells, because in the last cell there needs to be the "/0" character which basicly marks where the string ends, so the system will know how much to print out. Also, when getting characters out of strings, the cells always start with 0: e.g. if you declare chars[3];, you can only save characters in the cells char[0], char[1] and char[2]
Reply


Messages In This Thread
Explain me.. ;] - by lakierka - 20.07.2009, 07:22
Re: Explain me.. ;] - by arnutisz - 20.07.2009, 07:36
Re: Explain me.. ;] - by lakierka - 20.07.2009, 14:49
Re: Explain me.. ;] - by woot - 20.07.2009, 14:52
Re: Explain me.. ;] - by lakierka - 20.07.2009, 15:31
Re: Explain me.. ;] - by Weirdosport - 20.07.2009, 15:51
Re: Explain me.. ;] - by dice7 - 20.07.2009, 15:59

Forum Jump:


Users browsing this thread: 3 Guest(s)