![]() |
|
#1
|
|||
|
|||
subscript error in codinghere are the circumstances:
CPP / C++ / C Code:
and at the bottom of the program where i am working: CPP / C++ / C Code:
help me, you are cleverer than me!! Last edited by LuciWiz : 28-Nov-2005 at 03:31.
Reason: Please insert your C code between [c] & [/c] tags
|
|
#2
|
|||
|
|||
Re: subscript error in codingbasically, where have i gone wrong, there is only one error aparently
|
|
#3
|
|||
|
|||
Re: subscript error in codingoh and the error is in the line which says:
"o2y=o2y+o2y3[i];" |
|
#4
|
||||
|
||||
Re: subscript error in codingPlease Read the Guidelines
Quote:
CPP / C++ / C Code:
__________________
Age is unimportant -- except in cheese |
|
#5
|
|||
|
|||
Re: subscript error in codingcould you help me in what to change the coding to? sorry about writing too longer lines-didnt realise
|
|
#6
|
||||
|
||||
Re: subscript error in codingQuote:
No, we are not. Don't underestimate yourself As Walt noticed, you are referring to an element of the array o2y3 at index i - but o2y3 is float and not an array of any type. Another thing I noticed is that you declared main as int but never return anything. I think it would be better to return the value you promised to return Quote:
Explain your function's purpose, and supply complete code. Kobi. __________________
It's actually a one time thing (it just happens alot). |
|
#7
|
||||
|
||||
Re: subscript error in codingHi warborules,
In this line: CPP / C++ / C Code:
The line in which you are calculating o2y3 should come inside the for loop. For example, like this: CPP / C++ / C Code:
Regards, Paramesh. __________________
Don't walk in front of me, I may not follow. Don't walk behind me, I may not lead. Just walk beside me and be my friend. |
Recent GIDBlog
Developing GUIs with wxPython (Part 4) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| i really need help in coding this applet.. i gave up !! plz help | 123awd | Java Forum | 7 | 02-Nov-2005 03:33 |
| PHP/MySQL coding issue | cmarti | MySQL / PHP Forum | 3 | 26-Jul-2004 08:01 |
| Pls help in this coding. | harsha | C++ Forum | 5 | 08-Apr-2004 20:48 |
| Using an array and finding the element number (subscript) | tommy69 | C Programming Language | 27 | 05-Apr-2004 12:23 |
| coding a word with a givin factor | funnyf | C++ Forum | 2 | 13-Jan-2004 08:32 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The