Changes

Jump to: navigation, search

Assignment 2 (Release 0.1): Q & A

2,017 bytes added, 13:24, 13 October 2012
no edit summary
== Q & A ==
 
'''Q:''' How do you use "void release(void**);" with a (char*) array?<br>
'''A:''' You can do it by casting your array as a (void**) and using the '&' operator to send the address of the array pointer<br>
'''Example:'''
<source lang="cpp">
char* cBuffer;
cBuffer = new char [9001];
release((void**)&cBuffer);</source>
'''Submitted by:''' Julian Burton & Jordan Theriault<br>
'''Q:''' Are we able to toggle the border's visibility or are we only able to toggle the frame's visibility? If yes, the constructor does not receive any information about the visibility of the border, do we assume that the border is visible?<br>
'''A:''' By Abstract we mean classes that have atleast one pure virtual function.We cannot create objects of abstract class but Yes references of abstract classes can be created. <br>
'''Submitted by:''' Shajinth Pathmakulaseelan and Auquib Rasul, Team 2 <br><br>
 
'''Q:''' Since we can have a potential of unlimited frames within frames, how can we tell how many frames are in the console? (how far down in the frames within frames) <br>
'''Question Submitted by:''' Wesley Hamilton and Joe Higginson<br>
'''A:''' You can use this simple function to calculate the number of parents within parents of the current frame:
 
<source lang="cpp">
 
int SomeClass::number_of_parents(){
 
return (parent ? 1+parent->number_of_parents() : 0);
 
//"parent" is a reference to the parent of the current frame
 
}
 
</source>
 
But you can't know how many children the current frame has, unless you create special class members to keep/calculate that number.
<br>'''Answer Submitted by:''' [[Team 42 Contributions | Team0x2Au]] <br><br>
 
 
 
'''Q:''' How does the capture function work? <br>
'''A:''' It sets the position to which ever area the character is to receive and calls a method called .get character(). This is a method that was not introduced to zus but it is inside the capture function.<br>
'''Submitted by:''' Shavauhn and Elsi, Team 6<br><br>
 
'''Q:''' Can you call a method on the most derived class if using multiple inheritance and the two bases has the same name? <br>
'''A:''' Yes you can but need need to use :: to deal with the ambiguity between the class. So you would call base::method()<br>
'''Submitted by:''' Shavauhn and Elsi, Team 6<br><br>
== Bug Reports ==
#Smart word wrapping - words are not cut off mid-word while wrapping
#Optimization - "test" compiled executables have efficiency issues when moving boxes around
#Colors - you can add color to the test program if you're making your own main'''(Warning! Platform Dependent Code)'''#Cursor Visibility - you can toggle the cursor visibility '''(Warning! Platform Dependent Code)'''
#Timer - to keep track of how long the user has been running your custom main
#Files - Read string from file, use that string for editing, then write the result string to that file, overwriting original
#Child Tracking - each frame keeps/updates number and an array of addresses of children frames within it.
1
edit

Navigation menu