Changes

Jump to: navigation, search

Project R0.1 20131- OOP344

252 bytes added, 15:08, 6 February 2013
Help
! Question!! Comments
|-
|I can't compile the cio_test.o with the console and bconsole file. It keeps telling me undefined reference to CIO_TABSIZE but I've ran and the cio_test.cpp and passed all the tests already. I've already declared the tabsize in console header and set it in console. My files on matrix are up to date so I really have no idea what I'm doing wrong.||<s>Make sure you have pulled the newest versions of bconsole.h, and bconsole.cpp, declare extern unsigned int CIO_TABSIZE in the console.h file, then almost re-declare it in console.cpp (by initializing it as 'unsigned in CIO_TABSZIE=4'). That's the only thing I can think of (I know it happened to me) Another thing I did was for testing purposes I initialized cio_tabsize in cio_test.cpp which also had me baffled for a few minutes (make sure to change it back to console.cpp if that's the case):p ALSO make sure your bconsole.h, and console.h are also in the directory you are compiling cio_test.o inside of (i know the submission doesn't include those two files in the g++ compile command but they still have to be there)</s> The '''CIO_TABSIZE''' was declared outside the cio namespace, now it is fixed!
|-
|I'm stuck on test 4.4 where toggling insert mode changes the *insertMode between 1 and 0. I tried assigning *insertMode to 0 in the else statement in the if(*insertMode){} clause. I'm not sure if I'm making some kind of rookie mistake please HELP!!!!|| How I did it was if (*insertMode) != true make it true else make it false. -kpersaud <hr/> this was actually very simple: http://www.noobiedev.com/oop344/oop34-r-01-insert-mode/ <hr/> Spike, left a better method in the comments <hr/> Haha Thanks I managed to figured it out already but all your solutions are much better than mine :)<hr/>
Thank you, fjzhou. I wonder why I didn't use any code from XMOVER. If you are right, then we have to keep tracking the cursor position on the screen by using getPos() function and comparing with the getCols()? However, I don't think that would be a problem since we keep adjusting the strOffset if the curPosition is at the end of the field. Then the last character of the string will not be at the edge of the screen and the cursor will be. So why would we put the cursor on the last character of the string? -Chun
|-
|Can someone tell why "TAB" key does't work on the matrix using PUTTY. I have set the keybord already........hqiao3||Make sure you follow these settings to setup your putty terminal client: [http://zenit.senecac.on.ca/wiki/index.php/Project_R0.1_20131-_OOP344#Notes Putty settings]
|-
| Im having problems with the initial corrections with the offset and curpos. test 4.1 - when i have to correct curpos 40 to 19, program crashes. I know it has to do with the creating a local variable instead of pointing to external. <br/> here is my code that crashes the program: <br/> http://www.noobiedev.com/oop344/oop344-release-0-1-bug/ || Create two local variables to store *strOffset & *curPosition,the purpose of doing this is:<br/>

Navigation menu