Changes

Jump to: navigation, search

Line Editing Facility - OOP344 20113

1 byte added, 21:17, 27 September 2011
no edit summary
Under Construction!!!
=Due Dates=
* display() method is due on Tuesday, Sep 2120, 023:2159
* Complete Console 2.0 is due on Tuesday, Sep 27th, 23:59
=Hints=
*If want to put more hints in to help other, please update the time and date also. So everyone will know it is recently updated.<br/>
[[Hints for OOP344 Assignment 1]] Updated 87:21 41 Sept 2227 =Help Needed=* I have problem with matrix compiler http://ryandang-cpa.blogspot.com/2011/09/issue-with-matrix-compiler.html
=Line Editing Facility =
void display(const char *str, int row, int col, int fieldLen = 0)
This method outputs the C-style, null-terminated string pointed to by str starting at row row and column col of the screen in a field of fieldLen characters. Row value 0 refers to the top row, and column value 0 refers to the left-most column. If the string is longer than fieldLen, your function displays the first fieldLen characters. If the string is shorter than fieldLen, your function displays the portion of the entire string that fits on the screen, followed by enough trailing spaces to fill out the field completely. If fieldLen is 0 or less, your function displays the portion of the entire string that fits on the screen with no trailing spaces. Your function positions the cursor after the last character displayed, but excluding any added trailing spaces, if the last character is not in the last column of the screen; otherwise, your function positions the cursor under the last character on the screen. Your function does not flush the output buffer. The results are undefined if the starting position of the string is not within the dimensions of the screen.
===edit() function===
===Grading===
===Submission===
Compile and test your upgrade with your test main a1test.cpp in the following three command-line environments:
Local PC: Borland 5.5 bcc32 console.cpp yourtestprogram.cpp
Local PC: Microsoft .net
 
matrix: GNU (use -lncurses to link ncurses library)
g++ console.cpp yourtestprogram.cpp -lncurses
For submission purposes, your solution must compile, link, and run without errors in each environment.
ZIP (ZIP only) keys.h, console.h, console.cpp, yourtestprogram.cpp into one file and email it to:[mailto:fardad.soleimanloo@senecac.on.ca?subject=OOP344-display console2.0 fardad.soleimanloo@senecac.on.ca]
(To be completed....)
1
edit

Navigation menu