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:
Nathan Braswell
2014-07-28 01:52:15 -07:00
parent 87ad0c187e
commit 4cf8dbbd5b
9 changed files with 183 additions and 117 deletions

View File

@@ -1,3 +1,2 @@
1337
Destroyed!

View File

@@ -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);