Assignment 1 (Fall 2013) Q & A

From CDOT Wiki
Revision as of 16:19, 20 September 2013 by Peter.liu (talk | contribs)
Jump to: navigation, search

Q1: How do I submit "two individual reports that consist of peer evaluation, programming experience and team work experience"?

  • Answer: Submit them individually at Blackboard. For peer evaluation, use a scale from 0 (lowest) to 5 (highest).

Q2: When trying to display the value of the col number received in the display function, we saw the ascii char value instead of the integer decimal value that we expected. Can anyone suggest how to display the integer decimal value?

  • Answer: It seems that you've assigned a character (e.g. '7') to an int variable (e.g. x). The value of x is the ASCII value of '7'. If you display the value of x, that's what you will get. The solution is to do the proper conversion (from char to int, and vice versa) correctly. I hope this helps. -- Peter

Q3: Are we supposed to make two brand new files named consolelineedit.cpp and consoleplus.h and compile them with the original console.cpp and console.h or are we supposed to modify the original console.cpp and console.h files and name them consolelineedit.cpp and consoleplus.h?

  • Answer: Keep console.h and consoleplus.h as separate files, same with console.cpp and consolelineedit.cpp.
  • Answer 2: Yes, make two brand new files and don't edit the original files given. (Team 4)
  • Answer 3: Do not forget to use the "cio" namespace! -- Peter

Q4: To get the offset of the string when moving right or left would we have to allocate memory since we are unable to return the offset to the display function? -- Kabeer