20.07.2009, 15:59
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]