| | |
runtime error while incresing the couter inside a loop
![]() |
•
•
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 application array based binary bitmap c# c++ c/c++ char class classes code coding compile compression console conversion count cpm delete deploy deque desktop developer dialog directshow dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer introductory java lib linkedlist linkednodes linker loop looping loops map math matrix memory multiple news node numbertoword output parameter pointer problem program programming project python random read recursion reference rpg security sorting string strings temperature template test text text-file tree url variable vector video whyisthiscodecausingsegmentationfault win32 windows winsock wordfrequency wxwidgets






