![]() |
|
#1
|
|||
|
|||
very simple c questionDear All. I'm completely newbie to c. I make function to copy string and function to get its length but i doesn't work. Please help me. Whats wrong with this program:
CPP / C++ / C Code:
Last edited by LuciWiz : 18-Oct-2004 at 01:48.
Reason: Please insert your C code between [c] [/c] tags
|
|
#2
|
||||
|
||||
|
Quote:
1) You didn't use code tags so your code can be read. Doesn't anyone new read the stickys? 2) Arrays start with an index of 0 so your first element in your input string input.Kata[0] is undefined. Yes you compensated by starting at 1 in your loop but when you try to access input.Kata[20] your program may crash. This will also have a negntive affect on the filename you input. 3) You didn't tell us what's wrong with it. It seems to be fine up to the first PrintTable() call. Be more specific and explain a) what you are trying to accomplish with this program b) what it should do c) what it is not doing d) where you think the problem is __________________
Age is unimportant -- except in cheese |
Recent GIDBlog
Python ebook by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| New to this forum...just a little question... | rune hunter | C++ Forum | 4 | 16-Oct-2004 09:33 |
| Denying directory listing and htaccess question | meet_raman | Apache Web Server Forum | 11 | 01-Jul-2004 10:20 |
| question of practice | magiccreative | C++ Forum | 1 | 06-Feb-2004 07:17 |
| Simple Question regarding installing Apache 2.0 | macjoubert | Apache Web Server Forum | 0 | 13-Nov-2003 11:39 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The