![]() | |
| |||||||
| Home | Register | Blogs | FAQ | Members List | Calendar | Downloads | Arcade | Mark Forums Read |
| Languages, Compilers and Interpreters C,C++,C#,.NET,Java,PHP,Perl,SQL and more |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 |
| Младенец Join Date: Oct 2001 Location: Louisville
Posts: 1
Rep Power: 0 Reputation:
10 | I know this is a really easy problem, but it's driving me up the wall. I"m writing a program that at a point I have to multiply something in an arry by -1 to mark that I have already been to that point, then when I finish what I am supposed to do I multiply by -1 again to change the array back to normal. Anyways, my question is this. When I multiply by -1 which the code is squares[start] * -1, it give me the following error '*': operator has no effect; expected operator with side-effect |
| | |
| | #3 |
| Administrator | I think you just have to use braces: squares[start] * (-1) <BR> <IMG SRC="smile.gif" border="0"> goood luck.
__________________ И повешенные могут качаться в неположенную сторону. /С.Е.Лец/ |
| | |
![]() |
| Thread Tools | |
| Display Modes | |
| |