| | |
runtime error while incresing the couter inside a loop
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Oct 2007
Posts: 12
Reputation:
Solved Threads: 0
When I include i++; inside this loop I get a runtime error and I have no idea why I get it:
Do you have any idea?
Do you have any idea?
C++ Syntax (Toggle Plain Text)
while (i <= 3){ if (tauler[PacMan.y][PacMan.x]==0) xoc = 0; else if (tauler[PacMan.y][PacMan.x]==1) xoc = 1; else if (tauler[PacMan.y][PacMan.x]==2) xoc = 2; else xoc = 3; i++; PacMan.x += dx; PacMan.y += dy; }
I can't crank an engine. Look at my car mark, please: it's a Crow Victoria.
Do you have any idea?
http://www.daniweb.com/forums/thread78223.html
Do you have any idea?
http://www.daniweb.com/forums/thread78223.html
![]() |
Other Threads in the C++ Forum
- Previous Thread: Pass by Reference: Need help!
- Next Thread: array indexing vs pointer arithmetic
| Thread Tools | Search this Thread |
api array based binary bitmap c++ c/c++ calculator char char* class classes code coding compile console conversion count database delete deploy desktop developer directshow dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp iamthwee ifstream input int java lib linkedlist linker linux list loop looping loops map math matrix memory multiple news node number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg sorting string strings temperature template templates test text text-file tree unix url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets






