Changes

Jump to: navigation, search

Project R0.1 20132- OOP344

1,138 bytes removed, 09:34, 24 September 2013
How to submit
{{OOP344 Index | 2013120133}}
=Release=
*: And then:
*: Connection > Data > Terminal-type string = linux (This step must be done when first connecting through putty!)
<!--*:: Or if you have already connected, type in (export TERM="linux") without brackets** If you're still having problems do all of that AND (export TERM="linux") and it will allow you to use END and HOME, though the F keys still won't work. -->
* [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
=Due Dates=
Monday June 17th.
=Help=
==Help Needed==* <strike>Bug(?): The insert mode in our assignment works as it is supposed to but fails the test when running Please blog about your problems and notes and add the test programlink with a proper title below. Has anyone else encountered this problem, or is this an error on my side?<br /strikeI had the same problem. Try Reply to others blogs to replace help and update the original code '''Console::_insertMode''' by just '''insertMode'''. It works for me. Otherwise it is local I guess. So it works within your application but does not react blog link to parameter passed indicate you replied to the functionthemThank you. I actually solved it by making insertMode=Console::_insertMode.=Blog Posts==
==Blog Posts==
=Learning Outcome=
Upon successful completion of this first assignment, you will have demonstrated the abilities to design and code
==Specifications==
Your submission consists of a class called Console that is to be inherited from BConsole in a namespace called '''cuicio'''. Your application module is fully portable across Borland C++5.5 on windows, Linux GNU C++, Viusual C++ on Windows and Mac C++ platforms which accepts console input, and provides console output through the set of facilities available in your Console module.
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 cui cio namespace (short for console input output).
Your upgrade in this assignment consists of creating a class called Console, inherited from BConsole, 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 and overload "<<" and ">>" operators.
===external links===
* instantiate Console, in an object called "console" in cui cio namespace and create an external linkage to in console.h===strdspdisplay() method===
void display(const char* str, int row, int col, int fieldLen=0, int curpos = -1);
Your function positions the cursor after the last character displayed if curpos is less than zero otherwise it positions the cursor at "curpos" location relative to "col". The results are undefined if the starting position of the string is not within the dimensions of the screen.
===lineeditedit() method===
<big><pre>
int lineeditedit(char *str, int row, int col, int fieldLength, int maxStrLength,
int* strOffset=_stroff, int* curPosition=_curpos,
bool InTextEditor = false, bool ReadOnly = false, bool& insertMode=_insertMode );
====Step two====
''First run your program with cui_testcio_test.cpp and make sure it passes all the tests up to and including "4.16". If all tests are passed continue with step two:
=====InTextEditor=====
=Submission=
==Common Submission mistakes==
TBA<!--* Submitting the assignment with old version of cui_textcio_text.o
*: ''Make sure you copy the latest version (currently 0.94.1) from my account : $cp ~fardad.soleimanloo/cio_test.o
* Using tab character''
*: ''As mentioned in class using tab character in your text editor makes the indentation of your code different in different editors, please make sure before submission you go to the settings of your development environment and make sure it uses spaces instead of tab character.'' -->
==Tester Demo==
TBA
<!--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/cui_testcio_test
</pre></big> -->
Local PC: Borland 5.5
bcc32 bconsole.cpp console.cpp cui_testcoi_test.cpp
Local Mac: (use -lcurses to link curses library)
c++ bconsole.cpp console.cpp cui_testcoi_test.cpp -lcurses -Wno-write-strings
matrix: GNU (use -lncurses to link ncurses library)
g++ bconsole.cpp console.cpp cui_testcio_test.cpp -lncurses -Wno-write-strings
Local PC: Visual Studio.net
=== Tester Program ===
<!--*Tester program is at git://github.com/Seneca-OOP344/20132notes.git (Notes repository) in '''TesterPrograms''' directory.
*repo path:<br/>
*:[https://github.com/Seneca-OOP344/20132notes.git 20132notes]/TesterPrograms/cui_testcio_test.cpp-->
==How to submit==
TBA<!--For submission purposes, your solution must compile, link, and run without errors in each environment.
First pull the changes of the two files bconsole.cpp and bconsole.h to version 1.02 03 (Feb jun 1, 2013) from the console conui directory in notes repository of your section.
Test your program with cio_test.cpp from the same console conui directory stated above. 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 '<big>''''V 0.94.1'''''</big> from "~fardad.soleimanloo" and then compile your code with your professors Fardad's version of cio_test (i.e cio_test.o) and run it. If all the tests are passed successfully, an email will be sent to your professor Fardad automatically with your source code (console.h and console.cpp) attached to it.
to copy the cio_test.o do execute the followingon matrix.<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 -lncurses-Wno-write-strings<br />
This should not generate any warnings.<br />
To run the test (with automatic submission)
$ a.out your_student_number Your Full Name as on Student Card TeamNameWithNoSpaces Team Member names separated with commas <ENTER>
Example:
$ a.out 012345678 Home Jay Team-X Fardad Soleimanloo, Joseph Hughes, Homer Simpson , Apu Nahasapeemapetilon <ENTER> -->== Tasks Distribution Suggestion===== Team of 3 ===* Programmer 1*# Tab*# Character Entry*## Overstrike *## Insert Mode* Programmer 2*# Intial Corrections *# Home*# End*# Escape*# Right*# Left*# Enter* Programmer 3*# BackSpace*# Del*# InTextEditor and ReadOnly*# Function keys*# operator>> int&*# operator<< char*# operator<< char**# Insert === Team of 4 ===* Programmer 1*# Character Entry*## Overstrike*## Insert Mode*# End*# Enter* Programmer 2*# Tab*# Home*# operator>> int& *# operator<< char *# operator<< char* * Programmer 3*# BackSpace*# Right*# Del*# Function keys* Programmer 4*# Intial Corrections*# IsTextEditor and ReadOnly *# Escape*# Left*# Insert  <!--Tab: 23Function keys: 1Overstrike: 15operator>> int& 3operator<< char 3operator<< char* 4Insert: 1  Intial Corrections: 18 Home: 4End: 7Escape: 5Right: 10Left: 4Enter: 1 BackSpace: 23Del: 3Insert Mode: 14IsTextEditor and ReadOnly 10 
-->

Navigation menu