Changes

Jump to: navigation, search

Console Class - OOP344 20121

2,864 bytes added, 15:00, 23 January 2017
Help Needed
==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''How : undeclared identifier . Does somebody know what is the problem ?**Did you add the #define CIO_TABSIZE 4 to submitthe 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 having the issue where after Test 10, the general test, once it'' I ran till the end s over and then got the console asks "Did everything work correctly?"You , no matter what key you hit, it simply crashes? I have never seen any message saying I've passed all the tests, wait for or even to keep trying. I pass all tests but the final tester question, doesn't seem to submit assignmenttake my answer. It just displays a 30 near the top area. To recreate what I'm saying, try pressing any other key other than "Y", where when you're asked a question. That action is the final tester?exactly what I'm getting. -- adsantokhi 6:58PM Feb 01.**'''I think to you suppose to make that file please update the cio_test (cio_testv0.o92)and the final one still not there yet... so like this g++ we have to wait for fardad to update the test for submission!! --o cio_test cio_testSezar 7:28 01 Feb 2012**I'm using v0.cpp 92.Still getting this problem.--adsantokhi 7:46PM Feb 01.**well 30 is the last screen! so you are done all you have to do is just wait for the submission test thats what it says at the end of the test (screen 30)..-- sezar 7:57PM ---- *is anyone else having problems compiling on matrix? something about "cio_test. but cpp:792: warning: deprecated conversion from string constant to 'char" and a billion similar errors on different lines? --apetrus 10:30PM Feb 01** Now it's not working with telling me!! something about "The row and 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**I guess we *You have to wait for himchange the 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 window (window header) and select properties.'''From there go to the layout tab and change the "Screen Buffer Size" accordingly. --btulchinsky 23:41 Feb 01 ---- ** Can anyone help me out? I can't figure out 4.24: It stops when I press 'a'. I'm not sure what's the problem. It'Professor s probably has to do with IsTextEditor, but I'm still not included sure what exactly the object of problem is. --dkavalchyk2 09:30AM-Feb-02 ----*Final successful submission yet in should be this cio-tester ver R0.92. I believe he will drop R0.93 to SVN anytime today. So we all have to wait now. '''''[http://codingstar.blogspot.com/2012/02/final-screenshot-of-assignment-1.html Screenshot]--[[User:Tvirutthasalam|Tvirutthasalam]] 1110:1720, 1 6 February 2012 (EST) ----*is anyone having problems with the output on matrix. 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. --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
9
edits

Navigation menu