vector and vector test are finally working! Also found some bugs that I don't have time to fix before bed. Added file future_features.txt to keep track of bugs and features.
This commit is contained in:
@@ -1,3 +1,2 @@
|
||||
1337
|
||||
Destroyed!
|
||||
|
||||
|
||||
@@ -9,17 +9,17 @@ typedef AbleToBeDestroyed (Destructable) {
|
||||
};
|
||||
|
||||
int main() {
|
||||
vector<int> intVec.construct(false);
|
||||
vector<int> intVec.construct();
|
||||
intVec.addEnd(1);
|
||||
intVec.addEnd(3);
|
||||
intVec.addEnd(3);
|
||||
intVec.addEnd(7);
|
||||
for (int i = 0; i < intVec.size(); i++;)
|
||||
for (int i = 0; i < intVec.size; i++;)
|
||||
print(intVec.at(i));
|
||||
|
||||
println();
|
||||
|
||||
vector<AbleToBeDestroyed>* desVec = new<vector<AbleToBeDestroyed>>()->construct(true);
|
||||
vector<AbleToBeDestroyed>* desVec = new<vector<AbleToBeDestroyed>>()->construct();
|
||||
AbleToBeDestroyed testDestruct;
|
||||
desVec->addEnd(testDestruct);
|
||||
delete<vector<AbleToBeDestroyed>>(desVec);
|
||||
|
||||
Reference in New Issue
Block a user