Changes

Jump to: navigation, search

Team Mighty Morphin Coding Rangers - OOP344

4,040 bytes added, 13:10, 18 June 2010
m
A2 assignment
[{{OOP344 Index}}
__TOC__
 
== Member list ==
 
{| class="wikitable sortable" border="1" cellpadding="5"
 
! Last Name !! Name !! Seneca Username !! Section !! Blog Url !! IRC Nick !! SVN ID !! My Contributions !! Role !! Alternative Email Address
|-
| Chau|| [http://zenit.senecac.on.ca/wiki/index.php/User:Schau5 Sunny] || [mailto:schau5@learn.senecac.on.ca?subject=OOP344 schau5]|| B || [http://s2000c.blogspot.com/ Blog] || ScsC|| schau5 || [[Special:Contributions/schau5|Contributions]] || The Experienced Guy || ~
|-
| Cheung|| [http://zenit.senecac.on.ca/wiki/index.php/User:Cgcheung Christopher] ||[mailto:cgcheung@learn.senecac.on.ca?subject=OOP344 cgcheung] || B || http://rocketpants.blog.ca/ || Rocketpants || n/a || [[Special:Contributions/cgcheung | Contributions]] || Team Contact || ~
|-
| Huang|| [http://zenit.senecac.on.ca/wiki/index.php/User:Dhuang18 Dachuan] || [mailto:dhuang18@learn.senecac.on.ca?subject=OOP344 dhuang] || B || [http://hdc23.wordpress.com/ Blog] || Da_Truth || dhuang18 || [[Special:Contributions/dhuang18 | Contributions]] || Team Leader || [mailto:dachuan.huang@gmail.com Email]
|-
| John-Sandy|| [http://zenit.senecac.on.ca/wiki/index.php/User:Ajohn-sandy Anastasia] ||[mailto:ajohn-sandy@learn.senecac.on.ca?subject=OOP344 ajohn-sandy] || B || http://anastasiasaurus.blogspot.com || annieJS || ajohn-sandy || [[Special:Contributions/ajohn-sandy| Contributions]] || Team Contact || annieJS@gmail.com
|-
| Oberes|| [http://zenit.senecac.on.ca/wiki/index.php/User:Daoberes Donna] || [mailto:daoberes@learn.senecac.on.ca?subject=OOP344 daoberes] || B || [http://donna-oberes.blogspot.com Blog] || <s>primadonna</s> donna_o || n/a ||[[Special:Contributions/daoberes| Contributions]] || Team Contact || ~
|-
| Wang|| [http://zenit.senecac.on.ca/wiki/index.php/User:Cwang84 Cong] || [mailto:Cwang84@learn.senecac.on.ca?subject=OOP344 Cwang84] || A || http://wangcong422.blogspot.com/ || cwang84 || n/a ||[[Special:Contributions/cwang84 | Contributions]] || Team Contact || ~
|-
| Wang|| [http://zenit.senecac.on.ca/wiki/index.php/User:Shengwei Shengwei] || [mailto:swang94@learn.senecac.on.ca?subject=OOP344 swang94] || A || http://shengwei-seneca.blogspot.com/ || Shengwei || swang94 ||[[Special:Contributions/shengwei | Contributions]] || Team Contact || [mailto:wangshengwei.ca@gmail.com Email]
|-
| Xue|| [http://zenit.senecac.on.ca/wiki/index.php/User:Yxue11 Yong] || [mailto:yxue11@learn.senecac.on.ca?subject=OOP344 yxue11] || B || http://yxue11.blogspot.com/ || yxue11 || n/a || [[Special:Contributions/yxue11|Contributions]] || Team Contact || ~
|-
| ~ || ~ ||[mailto:yxue11@learn.senecac.on.ca,swang94@learn.senecac.on.ca,Cwang84@learn.senecac.on.ca,daoberes@learn.senecac.on.ca,ajohn-sandy@learn.senecac.on.ca,dhuang18@learn.senecac.on.ca,cgcheung@learn.senecac.on.ca,schau5@learn.senecac.on.ca?subject=OOP344__MM_Coding_Rangers, e-mail all @ once] || ~ || ~ || ~ || ~ ||~ ||~ || ~
|-
|}
 
== SVN Repository ==
 
<big>
oop344_101rep4
</big>
 
==<big>A2 assignment</big>==
[[MM Rangers' OpText - OOP344|Rangers' OpText Development Page]]
{| class="wikitable sortable" border="1" cellpadding="5"
 
! IRC nick/user!! Class(es)/File(s)
|-
| [http://zenit.senecac.on.ca/wiki/index.php/User:Schau5 ScsC] || BFrame Class, btext.h, BField Class
|-
| [http://zenit.senecac.on.ca/wiki/index.php/User:Cgcheung Rocketpants] || BLabel class
|-
| [http://zenit.senecac.on.ca/wiki/index.php/User:Dhuang18 Da_Truth] || BForm class, BTextEdit Class
|-
| [http://zenit.senecac.on.ca/wiki/index.php/User:Ajohn-sandy annieJS] || TBA
|-
| [http://zenit.senecac.on.ca/wiki/index.php/User:Daoberes donna_o <s>primadonna</s>] || BEdit class
|-
| [http://zenit.senecac.on.ca/wiki/index.php/User:Cwang84 cwang84] || TBA
|-
| [http://zenit.senecac.on.ca/wiki/index.php/User:Shengwei Shengwei] || BFrame Class, btext.h
|-
| [http://zenit.senecac.on.ca/wiki/index.php/User:Yxue11 yxue11] || TBA
|-
|}
== A1 Function assignment ==
[http://zenit.senecac.on.ca/wiki/index.php/BIOF_20101_(AS1)_-_OOP344#void_bio_displayMenuItem.28...........29 bio_displayMenuItem] - Committed to trunk
[http://zenit.senecac.on.ca/wiki/index.php/BIOF_20101_(AS1)_-_OOP344#Line_Editor:_int_bio_edit.28.........29 bio_edit] - Committed to trunk (my part)
|-
| John-Sandy|| Anastasia|| ~ || [http://zenit.senecac.on.ca/wiki/index.php/BIOF_20101_(AS1)_-_OOP344#int_bio_cols.28void.29 bio_cols] - Committed to trunk || ~
|-
| Oberes|| Donna|| Daoberes workspace || [http://zenit.senecac.on.ca/wiki/index.php/BIOF_20101_(AS1)_-_OOP344#int_bio_rows.28void.29 bio_rows] - Committed to trunk <br/> [http://zenit.senecac.on.ca/wiki/index.php/BIOF_20101_%28AS1%29_-_OOP344#int_bio_getch.28void.29 bio_getch] - Committed to trunk || [http://zenit.senecac.on.ca/wiki/index.php/BIOF_20101_(AS1)_-_OOP344#Line_Editor:_int_bio_edit.28.........29 bio_edit] - Validation logic for *offset, *curpos, & *offset = NULL *DONE*; Before editing begins, if *curpos & *offset have invalid values *DONE*; Validation of positions that *curpos is never allowed to take*DONE*; switch cases remaining!ReadOnly and *insertmode *To be modified*
|-
| Wang|| Cong|| ~ || ~ || [http://zenit.senecac.on.ca/wiki/index.php/BIOF_20101_(AS1)_-_OOP344#void_bio_display.28const_char_.2Astr.2C_int_row.2C_int_col.2C_int_len.29 bio_display]/[http://zenit.senecac.on.ca/wiki/index.php/BIOF_20101_(AS1)_-_OOP344#void_bio_displayflag.28...........29 bio_displayflag]
[http://zenit.senecac.on.ca/wiki/index.php/BIOF_20101_(AS1)_-_OOP344#int_bio_menuItem.28...........29 bio_menuItem] Committed to trunk <font color='blue'>bio_putint</font> Committed to trunk
|-
| Xue|| Yong|| Yong workspace || [http://zenit.senecac.on.ca/wiki/index.php/BIOF_20101_(AS1)_-_OOP344#void_bio_putch.28int_c.29 bio_putch] Committed to trunk|| [http://zenit.senecac.on.ca/wiki/index.php/BIOF_20101_(AS1)_-_OOP344#int_bio_flag.28...........29 bio_flag()]Committed to trunk
|}
 
== SVN Repository ==
 
<big>
oop344_101rep4
</big>
== Coding Style ==
===Donna===
 
Feb 20, 2010 - Just found out yesterday that another variable, int ReadOnly, has been added to parameters passed to bio_edit. ReadOnly is supposed to toggle between ReadOnly and !ReadOnly. This changes the default of the switch statement slightly.
 
Feb 4, 2010 - Committed my bio_rows to trunk. I ran into a few troubles while compiling, the biggest being Borland. Never used this compiler before. The frustrating part, after fixing all of my mistakes, is forgetting to take note of what went wrong so that I know how to fix it in the future. However, as far as I can recall, some of the biggest problems were:
<ul>
===Shengwei===
Just *AS2:When we want to reserve test our code under different platforms, it is important to change include statement in biof.c correspondingly. <br/>Style 1:<code> #include "biof.h" </code>Style 2:<br/><code> extern "C"{ #include "biof.h" };</code> VCC, BCC like style 1, while LNX likes style 2. MAC is unknown. * I found one [http://seneblog.fardad.com/2010/02/this-was-good-meeting.html blog] from Fardad's blogger. I think it is good for us to have a spacelook at it. :)
===Dachuan===
Placing void in Function(void) for Borland is important. It has gotten me frustrated a few times. <br />
<s>bio_putint() doesn't seem to work under VCC now?</s>fixed. <br />
<s>bio_move() doesn't not work in Borland.</s> fixed. <br />
When using Putty, don't forget to set Function/Keyboard/Xterm R6! <br />
 
When compiling on Mac: cc biomain.c biof.c -lcurses (and then) ./a.out <br />
===Cong===
i really appreciate Sunny's help, my code works now.And i understand what link problem is.
 
i look the program and find a bug on tab key when you press tab key it jump 4 space forward but when you press backspace it suppose to jump back 4 space.
===Cgcheung===
Not really an issue but my own mistake. A reminder to include "-l ncurses" to the compile line in linux >_> .
== Member list ==
{| class="wikitable sortable" border="1" cellpadding="5"
== Project Progress ==Update the current project's progress here. List what's done in each part, and what's not done. Simply cross-out things that are done. ===Simple Functions==={| border="1" cellpadding="5" ! Last Function Name !! Progress & Name !! Seneca Username !! Section !! Blog Url !! IRC Nick !! SVN ID !! My Contributions !! Role !! Alternative Email AddressTested Platforms [VCC/BCC/LNX/MAC]]|-| void bio_init(void) || Compeleted || ALL
|-
| Chauvoid bio_end(void) || SunnyCompleted || [mailto:schau5@learn.senecac.on.ca?subject=OOP344 schau5]|| B || [http://s2000c.blogspot.com/ Blog] || ScsC|| TBA || [[Special:Contributions/schau5| Contributions]] || The Experienced Guy || ~ALL
|-
| Cheungint bio_rows(void) || ChristopherCompleted by Donna || [mailto:cgcheung@learn.senecac.on.ca?subject=OOP344 cgcheung] || B || http://rocketpants.blog.ca/ || Rocketpants || n/a || [[Special:Contributions/cgcheung | Contributions]] || Team Contact || ~ALL
|-
| Huangint bio_cols(void) || DachuanCompleted by Anastasia || [mailto:dhuang18@learn.senecac.on.ca?subject=OOP344 dhuang] || B || [http://hdc23.wordpress.com/ Blog] || Da_Truth || dhuang18 || [[Special: Contributions/dhuang18 | Contributions]] || Team Contact || [mailto:dachuan.huang@gmail.com Email]ALL
|-
| John-Sandyvoid bio_clrscr(void) || AnastasiaCompleted by Chris || [mailto:ajohn-sandy@learn.senecac.on.ca?subject=OOP344 ajohn-sandy] || B || http:/VCC/anastasiasaurus.blogspot.com || annieJS || ajohn-sandy || [[Special:ContributionsBCC/ajohn-sandy| Contributions]] || Team Contact || annieJS@gmail.comLNX
|-
| Oberesvoid bio_flush(void) || DonnaCompeleted by Dachaun || [mailto:daoberes@learn.senecac.on.ca?subject=OOP344 daoberes] || B || [http://donna-oberes.blogspot.com Blog] || Donna_Oberes || n/a || [[Special:Contributions/daoberes| Contributions]] || De-Facto Leader || ~ALL
|-
| Wangint bio_getch(void) || CongCompleted by Donna || [mailto:Cwang84@learn.senecac.on.ca?subject=OOP344 Cwang84] || A || http://wangcong422.blogspot.com/ || cwang84 || nVCC/a || [[Special:ContributionsBCC/cwang84 | Contributions]] || Team Contact || ~LNX
|-
| Wangvoid bio_move(int row, int col) || ShengweiCompeleted by Sunny || [mailto:swang94@learn.senecac.on.ca?subject=OOP344 swang94] || A || http:VCC/BCC/shengwei-seneca.blogspot.com/ || Shengwei || swang94 || [[Special:Contributions/swang94 | Contributions]] || Team Contact || [mailto:wangshengwei.ca@gmail.com Email]LNX
|-
| Xuevoid bio_putch(int ch) || Completed by Yong|| [mailto:yxue11@learn.senecac.on.ca?subject=OOP344 yxue11] || B || http://yxue11.blogspot.com/ || yxue11 || nVCC/a || [[Special:ContributionsBCC/yxue11| Contributions]] || Team Contact || ~LNX
|-
| ~ void bio_putstr(const char* str) || ~ Completed by Shengwei || [mailto:yxue11@learn.senecac.on.ca,swang94@learn.senecac.on.ca,Cwang84@learn.senecac.on.ca,daoberes@learn.senecac.on.ca,ajohn-sandy@learn.senecac.on.ca,dhuang18@learn.senecac.on.ca,cgcheung@learn.senecac.on.ca,schau5@learn.senecac.on.ca?subject=OOP344__MM_Coding_Rangers, e-mail all @ once] || ~ || ~ || ~ || ~ ||~ ||~ || ~VCC/BCC/LNX
|-
|}
<br/><br/>
== Project Progress =Complex Functions===Update the current project's progress here. List what's done in each part, and what's not done. Simply cross-out things that are done.
<s>'''void bio_init(void)'''</s><br/>''(COMPLETED)''<br/><br/><s>'''void bio_end(void)'''</s><br/>''(COMPLETED)''<br/><br/><s>'''int {| border="1" bio_rows(void)'''</s><br/>''(COMPLETED)''<br/><br/><s>'''int bio_cols(void)'''</s><br/>''(COMPLETED)''<br/><br/><s>'''void bio_clrscr(void)'''</s><br/>''(COMPLETED)''<br/><br/><s>'''void bio_flush(void)'''</s><br/>''(COMPLETED)''<br/><br/><s>'''int bio_getch(void)'''</s><br/>''(COMPLETED)''<br/><br/><s>'''void bio_move(int row, int col)'''</s><br/>''(COMPLETED)''<br/><br/><s>'''void bio_putch(int ch)'''</s><br/>''(COMPLETED)''<br/><br/><s>'''void bio_putstr(const char* str)'''</s><br/>''(COMPLETED)''<br/><br/>cellpadding="5"
===Complex Functions===! Function Name !! Progress & Name !! Tested Platforms [VCC/BCC/LNX/MAC]|-| void bio_display(const char* str, int row, int col, int len) || Compeleted by Cong || |-'''| void bio_putintbio_displayflag(const char* format, int valrow, int col, int status)'''<br|| Compeleted by Cong || |-| int bio_flag(const char* str, int row, int col, int* status, int radio) || Compeleted by Yong || VCC/BCC/LNX |-| void bio_displayMenuItem(...) || Compeleted by Dachuan || ALL |-| void bio_menuItem(...) || Compeleted by Shengwei || VCC/BCC/>LNX |-| colspan = "3" | '''int bio_edit(COMPLETEDchar* str, int row, int col, int fieldlen, int maxdatalen, int *insertmode, int *offset, int *curpos, int IsTextEditor, int ReadOnly)''<br'|-| UP_KEY || Completed || |-| DOWN_KEY || Completed || |-| LEFT_KEY || Completed || |-| RIGHT_KEY || Completed || |-| PGUP_KEY || Completed || |-| PGDN_KEY || Completed || |-| HOME_KEY || Completed || |-| END_KEY || In Progress by Chris || Tested for BCC/VCC. Needs testing for LNX/MAC.|-| ENTER_KEY || Completed by Anastasia || |-| TAB_KEY || In Progress by Anastasia || |-| BACKSPACE_KEY || Completed by Dachaun || ALL |-| ESCAPE_KEY || Completed || |-| DEL_KEY || Completed by Dachuan || ALL |-| INSERT_KEY || Completed || |-| F1-F12 || Completed || |-| DEFAULT || Completed by Donna || VCC/BCC/LNX/>MAC|-* what needs to be done|}* <sbr/>what is complete<br/s>
===Helper Functions===
<br/>
'''void bio_displaybio_putint(const char* str, int row, int col, int lenval)'''<br/>''(IN PROGRESS)''* It prints an integer on the screen. <br/>
<br/>
'''void bio_displayflagchar* toUpperCase(const char* format, int row, int col, int statusstr)'''<br/>''(IN PROGRESS)''* This function only changes those letters in lower case to upper case. It changes the original string.<br/>
<br/>
'''int bio_flag(const char* format, int row, myItoa(int colval, int* status, int radio)'''<br/>''(IN PROGRESS)''<br/><br/>'''int bio_edit(char* str, int row, int col, int fieldlen, int maxdatalen, int *insertmode, int *offset, int *curpos, int IsTextEditorbase)'''<br/>''(IN PROGRESS)''<br/> Keys: <br /> UP (IN PROGRESS) <br /> DOWN (IN PROGRESS) <br /> LEFT (IN PROGRESS) <br /> RIGHT (IN PROGRESS) <br /> PGUP (IN PROGRESS) <br /> PGDN (IN PROGRESS) <br /> HOME (IN PROGRESS) <br /> END (IN PROGRESS) <br /> ENTER (IN PROGRESS) <br /> TAB (IN PROGRESS) <br /> <s>BACKSPACE</s> (COMPLETED) <br /> ESCAPE (IN PROGRESS) <br /> <s>DEL</s> (COMPLETED) <br /> INSERT (COMPLETED) <br /> F1* This function converts a decimal base integer to any other non-F10 (IN PROGRESS) <br /> '''<s>void bio_displayMenuItem(const char *formatdecimal base number, const char *menuItemsuch as binary number or octal number, int rowor hex number, int coland than converts that number into a string variable. Or, int len, int status)</s>'''<br/>''(COMPLETED)''it converts a decimal base integer directly into a string. The function returns the address of the string at the end.<br/>
<br/>
<s>'''int bio_menuItem(const char* formatmyFtoa(double val, const char* menuItem, int row, int col, int len, int* statusstr)'''</s><br/>''* This function converts a double to a string variable, and returns the string. There will only be 2 decimal positions shown in the string. If we want to print a double value on the console screen, we can say: bio_putstr(myFtoa(COMPLETEDval, str)''). I think there is no need to code another function for bio_putdouble.<br/>
<br/>
'''int myPrint(const char* msg, ...)'''<br/>
* This function works very similar with printf in stdio.h library. Float data type dose not work here; only double dose. The function only shows 2 decimal positions. <br/>
== Microsoft SkyDrive ==
<br />
PW: rangers
 
== <big>Helpful External Links</big> ==
*[http://www.hydrairc.com/index.php?page=downloads Scroll down to find HydraIRC.exe or .zip]
*[http://www.microsoft.com/express/Downloads/ Microsoft Visual Studio Express Edition Download]
 
[[Category:OOP344]]
1
edit

Navigation menu