Difference between revisions of "OOP344 20131 - Nevi"

From CDOT Wiki
Jump to: navigation, search
(Programming Styles)
(Programming Styles)
Line 46: Line 46:
  
  
 +
  use the string functions in bconsole instead of <string.h>
  
  
  
 +
 +
  cast everything to the function parameter type
 +
 +
        For example:
 +
 +
              Function header:  char* strcpy(void* des, const void* src);
 +
 +
              Function call:  strcpy(_data, (const void*) Str);
  
 
== Agenda ==
 
== Agenda ==

Revision as of 11:59, 25 February 2013

Nevi

EMAIL US

Members

OOP344 - Winter of 2013 student list
First Name Last Name Team Name Section Seneca Id wiki id IRC nick GITHUB ID Blog URL
Bo Li Nevi B bli64 Bo Li Kelan Nelain Meta-OOP344
Ran Li Nevi B rli64 Ran Li ranli RanLii 22yue6
Zhenyang Chen Nevi B zchen91 Zhenyang Chen crans crans Leash


Repository


Programming Styles

  • Indentation
  2 spaces for each level
  • Blocks
  if(){
  }
  else{
  }
  • Variable Naming
  _nameOfVar for data members
   nameOfVar for local variables
  no special characters in variable (e.g. '_')
  single characters variable names (e.g. 'i', 'j', 'k') for loops only
  • Misc


  use the string functions in bconsole instead of <string.h>



  cast everything to the function parameter type
       For example: 
             Function header:   char* strcpy(void* des, const void* src);
             Function call:   strcpy(_data, (const void*) Str);

Agenda

Discussion