Changes

Jump to: navigation, search

Project R0.1 20123- OOP344

2,577 bytes added, 23:56, 21 October 2012
Help
=Help=
==Help Needed==
* After copying cio_test.oThanks Omkar, it has changed MY NAME and R.01 that was all I needed to "CIO TESTER PROGRAM" and "R0understand how past this test.93". I can assume what happened it* Omkar Parmar Re : Amir, after previous test, but I just wonder without pressing any key it is ok? will display like this +------------------------------------------------------------------ Rody Choi <==I think that's it. cio_test.o cannot be edited. I guess cio_test.cpp is submitted as well. - Linpei Fan ===> I guess so. Thanks, Lily - Rody Choi+ *I keep getting messages " '''The row and column of the terminal must be maximum of 30 by 100 |Test 4.''' press any key to quit " when I tried to test it on matrix account17: console. edit() initial corrections, Offset: The offset is there anyone who has same problem? - Jessica Park|:: You need |set to resize the terminal window because the test program restricts 10 that is invalid and it should be corrected to 24x80 to 30x100 (rows x cols)5. The | |function should terminate returning 0. You can also edit the size thru preferences/settings if you don't like trial and error | +------------------------------------------------------------------- Michael Wang <=== Hey,you have to use the "PUTTY" - Rody Choi+<==Just using the "PUTTY" anything will be fined +-------------------- Jay Feng =>+ | |*When running on matrix, whenever I press Home, End, or Insert, the program exits rather than run the code I wrote. It works fine on Visual Studio however. I complied with +----------------lncurses. - Ronny Wan <-- Check Notes section on this page and follow "Using Linux..." instruction even for Windows version of Putty - Hiroshi Takemoto+<===Try PASSED, hit any key to compile it in a Linux OS, such as Fedora, using VM. It will be fine. - Linpei Fan ===>continue
* Re: Jessica, My programs question is what is the instruction for test 4.17, but thank you for replying.* Re: Amir. Amir, Try to re-download the cio_test.cpp from git and re-compile it again. I had some problem with you. It works fine after I re-upload the text.cpp file. I do not know what happened. - Jessica Park* Re: Omkar. Return value of edit is correct. How we should act in test 4.17? pressing arrow keys? * Student: '''Omkar Parmar''' '''Amir''' Check return value of edit function* My program fails at the following test. Anyone knowswhy should it returns Unkown keycode? How it should be handled then! - Amir
+--------------------------------------------------------------------+
|Test 4.17: console.edit() initial corrections, Offset: The offset is|
but instead it returned: ENTER, Dec: 10 Hex: A
FAILED, hit any key to continue
 
*"My program is working completely fine in window but when I am trying to testing it on matrix it gives same error as below."- Tejas Patel
 
To Omkar Parmar: "Write [export TERM="linux"] then try it again"-Tejas Patel
 
* Student :Omkar Parmar
'''HOME,END F1, F2, F3, F4, F5''' keys are not working while testing linux.
HOME,END are return Unknown key and
F1 A
F2 B
F3 C
F4 D
F5 E.
 
* After copying cio_test.o, it has changed MY NAME and R.01 to "CIO TESTER PROGRAM" and "R0.93". I can assume what happened it, but I just wonder it is ok? - Rody Choi <==I think that's it. cio_test.o cannot be edited. I guess cio_test.cpp is submitted as well. - Linpei Fan ===> I guess so. Thanks, Lily - Rody Choi
 
*I keep getting messages " '''The row and column of the terminal must be maximum of 30 by 100.''' press any key to quit
 
" when I tried to test it on matrix account. is there anyone who has same problem? - Jessica Park
:: You need to resize the terminal window because the test program restricts it to 24x80 to 30x100 (rows x cols). You can also edit the size thru preferences/settings if you don't like trial and error - Michael Wang <=== Hey,you have to use the "PUTTY" - Rody Choi
<==Just using the "PUTTY" anything will be fined - Jay Feng =>
 
*When running on matrix, whenever I press Home, End, or Insert, the program exits rather than run the code I wrote. It works fine on Visual Studio however. I complied with -lncurses. - Ronny Wan <-- Check Notes section on this page and follow "Using Linux..." instruction even for Windows version of Putty - Hiroshi Takemoto
<===Try to compile it in a Linux OS, such as Fedora, using VM. It will be fine. - Linpei Fan ===>
==Blog Posts==
* Here's a post of my troubleshooting issues with compiling the code on OSX. It covers both the terminal c++ compiler and Xcode. [http://gambitkun.blogspot.ca/2012/10/working-with-console-part-2-mac.html mgauer]
** hi guys i would like to know ho you solved these two questions?
in the first one the test ask:
PrnTextBox(1, 5, 70, 8, "Test 4.2: console.edit() initial corrections, Offset: The offset is set to 10 that is invalid and it should be corrected to 5. "//////////
"HIT ENTER ONLY to test!");
in the second test the same question is asked:
PrnTextBox(1, 5, 70, 8, "Test 4.17: console.edit() initial corrections, Offset: The offset is set to 10 that is invalid and it should be corrected to 5. " //////////
"The function should terminate returning 0.");
but how am i going to return 0 and at the same time set the offset to 10. I do not understand those two questions.
=Learning Outcome=
Local Mac: (use -lcurses to link curses library)
c++ bconsole.cpp console.cpp cio_test.cpp -lcurses-Wno-write-strings
matrix: GNU (use -lncurses to link ncurses library)
g++ bconsole.cpp console.cpp cio_test.cpp -lncurses-Wno-write-strings
For submission purposes, your solution must compile, link, and run without errors in each environment.
==Tester Demo==
To see how tester runs, you can run on Matrix (only use putty with the setting stated at [[#Notes|Notes]]) run:
<big><pre>
$ ~fardad.soleimanloo/cio_test
</pre></big>
==Submission details==

Navigation menu