1
edit
Changes
→Help
=Help=
==Help Needed==
Thanks Omkar, that was all I needed to understand how past this test.
* Omkar Parmar
Re : Amir, after previous test, without pressing any key it will display like this
+--------------------------------------------------------------------+
|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. |
+--------------------------------------------------------------------+
+--------------------+
| |
+--------------------+
PASSED, hit any key to continue
* Re: Jessica, My 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 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
* 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==