Advertisement
Tec4Gen

Untitled

May 13th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #include<iostream>
  2. #include<time.h>
  3. #include<fstream>
  4.  
  5. using namespace std;
  6.  
  7. ofstream go("in.txt");
  8. ofstream out("out.txt");
  9. #include "Class1.cpp"
  10. void main() {
  11. for (int i = 0; i < 10000; i++) {
  12. go << rand() % 10;
  13. }
  14. srand(time(NULL));
  15. DoubleLinkedList<int>list_random;
  16. while (go >> x){
  17. list_random.InsertLeft()
  18. }
  19. list_random.PrintLeftToRight();
  20.  
  21.  
  22.  
  23. system("pause");
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement