This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Programming Quiz 1 | |
Implement a class My_vec, see the slide 8 from the first set of the lecture notes. | |
See the vector example in the supplementary file | |
Point distribution out of 30 pt: | |
(3 pt) elem_at_rank | |
(3 pt) insert_at_rank | |
(3 pt) replace_at_rank | |
(3 pt) remove_at_rank | |
(3 pt) *Copy constructor |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function createXHR() { | |
if (typeof XMLHttpRequest != 'undefined') { | |
return new XMLHttpRequest(); | |
} else { | |
try { | |
return new ActiveXObject('Msxml2.XMLHTTP'); | |
} catch (e) { | |
try { | |
return new ActiveXObject('Microsoft.XMLHTTP'); | |
} catch (e) { |