| peep (4) | |||
can anybody help me with this source code. seems like something is not right with the function...
the problem is at line 'ans=normalize(b[][1],row1,col1);' the compiler said there is an expected value b4 the']'.. but if i put anything there'll be another problem occur. :( thanks :D | |||
|
Last edited on
|
|||
| TheIdeasMan (1564) | |||
|
Firstly, edit your post so it uses code tags - the <> button on the right
So it looks like this:
If you have any compiler errors post those in full as well Once you have done that, we can go from there. | |||
|
|
|||
| peep (4) | |
| i've done editing it. hope somebody can help me.. :) | |
|
|
|
| peep (4) | |
|
these r the parameter error.. C:\Users\user\Desktop\1128541AssLab3.cpp In function `int main()': 26 C:\Users\user\Desktop\1128541AssLab3.cpp expected primary-expression before ']' token | |
|
|
|
| M3IIUM (2) | |
|
Well its simple as this , ans=normalize(b[][1],row1,col1); It should actually be : ans=normalize(b,row1,col1); only the array name , not the size . Well the assignment was to be submitted on Saturday , but better late than never. Also , according to the question your program is not complete , the absolute value calculation and the scaling is not done. Good luck . 3:) | |
|
|
|
| M3IIUM (2) | |
|
Also , just for the sake of it it has to be int b[2][2] instead of b[1][1] in the declaration . You are welcome. | |
|
|
|
| peep (4) | |
| thanks.. :D | |
|
|
|
| SirSen (8) | |
| try using cout and cin instead of printf and scanf its better | |
|
|
|