9
edits
Changes
→Help Needed
=Notes=
*Using Linux: please use putty only and set the keyboard to
*: Backspace = Ctrl-?
*: Home and End = Standard
*: Function keys and keypad = Linux
*: And then:*: Connection > Data > Terminal-type string = linux(This step must be done when first connecting through putty!)
* [https://cs.senecac.on.ca/~chris.szalwinski/resources/borland.html Guide for Using Borland 5.5]
*: Note that to change the cmd.exe window size, right click on the top bar -> Properties -> Layout Tab
==Help Needed==
*<font color=green size=3>'''How to submit?''' </font>---- *[http://777sblog.blogspot.com/2012/01/problem-with-cio-tester-45.html <s>'''I have a problem with cio tester (4.5)'''</s>] ---- *[http://yudongxu.blogspot.com/2012/01/problem-with-test-417.html I have a problem with tester 4.17]**I have answered your question on my [http://777sblog.blogspot.com/2012/02/dons-answer-to-his-question-about-test.html blog] since yours is all in Chinese (I think..) I didn't know what button to press... ---- *Guys, where is the link to the right tester ? When I run that one from SVN - it shows me - cio_test.cpp(700): error C2065: 'CIO_TABSIZE' : undeclared identifier . Does somebody know what is the problem ?**Did you add the #define CIO_TABSIZE 4 to the console.h header file?** Yes you have to add this, you can also add it to bconsol.h and fardad hasn't yet updated the tester for submission... --Sezar 6:49pm Feb 01 2012 ----
---- *is anyone else having problems compiling on matrix? something about "cio_test.cpp:792: warning: deprecated conversion from string constant to '''How to submitchar" and a billion similar errors on different lines?--apetrus 10:30PM Feb 01** Now it''' I ran till the end s telling me something about "The row and then got column of the terminal must be maximum of 30 by 100". Has anyone experienced this problem? Works fine on visual studio -- apetrus 11:35PM Feb 01***You passed all have to change the tests, wait for buffer size to be a width of 100 and height of 30. Are you sure this is matrix and not on your local pc binary created by borland? Right click on the top of the final tester window (window header) and select properties. From there go to submit assignmentthe layout tab and change the "Screen Buffer Size", where is the final testeraccordingly. --btulchinsky 23:41 Feb 01 ---- *Can anyone help me out? I can't figure out 4.24: It stops when I press 'a'. I think 'm not sure what's the problem. It's probably has to you suppose to make that file (cio_testdo with IsTextEditor, but I'm still not sure what exactly the problem is. --dkavalchyk2 09:30AM-Feb-02 ----*Final successful submission should be this.....o)[http://codingstar.blogspot.com/2012/02/final-screenshot-of-assignment-1. so like this g++ html Screenshot]--[[User:Tvirutthasalam|Tvirutthasalam]] 10:20, 6 February 2012 (EST) ----o cio_test cio_test*is anyone having problems with the output on matrix.cpp When i do a.out i get stuck on the test 4.4 where i hit the insert button and the test ends.But in Visual studio it works fine. Any help? --smahmed9 4:03PM**my mistake.forgot cannot use ssh.Used putty and done. but it's not working with me!!'''--smahmed9 05:18PM
=Console Line Editing Facility =
The name of the library object to be created is console. The header file for the original version of this module is console.h and the implementation file for the original version is console.cpp. All of the identifiers for the library module and all upgrades to the module are defined in the cio namespace (short for console input output).
Your upgrade in this assignment consists of creating a class called Console, inherited from BConsole, implimented implemented in two files; console.h and console.cpp:
In addition to all public methods of BConsole, Console must have the following two public methods:
If '''IsTextEditor''' is true and the value of '''*strOffset''' is changed at any time, then terminate the edit function immediately and return '''0''';
======TAB key======
If '''IsTextEditor''' is true and TAB key is hit, then instead of terminating the function , ''CIO_TABSIZE'' spaces are inserted into ''str''.
=====ReadOnly=====
For submission purposes, your solution must compile, link, and run without errors in each environment.
When your program passed all the tests, on matrix, create a directory and copy all the source files (console.cpp, console.h, bconsole.cpp, bconsole.h) into it. Then copy cio_test.o from "~fardad.soleimanloo" and then compile your code with your professors version of cio_test on matrix (i.e cio_test.o) and run it. If all the tests are passed successfully, an email will be sent to your professor automatically with your source code (console.h and console.cpp). to copy the cio_test.o do the following.<br />From the directory containing all source files: $cp ~fardad.soleimanloo/cio_test.o .to compile the code: $g++ bconsole.cpp console.cpp cio_test.o -lncursesThis should not generate any warnings.<br />To run the test (with automatic submission) $a.out