Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "list.h"
- #include <list>
- int main()
- {
- int time;
- const int n = 1e6;
- List<int> l1;
- std::list<int> l2;
- time = GetTickCount();
- for (int i = 0; i < n; ++i)
- l1 << i;
- printf("l1: %d\n", GetTickCount() - time);
- time = GetTickCount();
- for (int i = 0; i < n; ++i)
- l2 << i;
- printf("l2: %d\n", GetTickCount() - time);
- return 0;
- }
- /*
- Error E2090 .\main.cpp 10: Qualifier 'std' is not a class or namespace name in function main()
- Error E2379 .\main.cpp 10: Statement missing ; in function main()
- Error E2268 .\main.cpp 12: Call to undefined function 'GetTickCount' in function main()
- Error E2268 .\main.cpp 15: Call to undefined function 'printf' in function main()
- Error E2451 .\main.cpp 19: Undefined symbol 'l2' in function main()
- */
Advertisement
Add Comment
Please, Sign In to add comment