You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

score_wel.cpp 2.1 kB

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. ███████╗██████╗ ██████╗ ███████╗ ███████╗███╗ ██╗ ██████╗ ██╗███╗ ██╗███████╗
  3. ██╔════╝██╔══██╗██╔════╝ ██╔════╝ ██╔════╝████╗ ██║██╔════╝ ██║████╗ ██║██╔════╝
  4. █████╗ ██║ ██║██║ ███╗█████╗ █████╗ ██╔██╗ ██║██║ ███╗██║██╔██╗ ██║█████╗
  5. ██╔══╝ ██║ ██║██║ ██║██╔══╝ ██╔══╝ ██║╚██╗██║██║ ██║██║██║╚██╗██║██╔══╝
  6. ███████╗██████╔╝╚██████╔╝███████╗ ███████╗██║ ╚████║╚██████╔╝██║██║ ╚████║███████╗
  7. ╚══════╝╚═════╝ ╚═════╝ ╚══════╝ ╚══════╝╚═╝ ╚═══╝ ╚═════╝ ╚═╝╚═╝ ╚═══╝╚══════╝
  8. Author:Edge
  9. Web:likedge.top
  10. Date:20200925
  11. */
  12. #include<iostream>
  13. #include<string>
  14. #include <cstdio>
  15. #include <iostream>
  16. #include <fstream>
  17. #include <string>
  18. #include<stdlib.h>
  19. #define random(x) (rand()%x)
  20. using namespace std;
  21. int welcome(){
  22. fstream input_stream;
  23. const char* candidates[] = {"./welcome/2.txt","./welcome/3.txt","./welcome/big.txt"};
  24. srand((unsigned int)time(NULL));
  25. input_stream.open(candidates[rand()%3],ios::in);
  26. char input[1000000];
  27. int cnt=0;
  28. if(input_stream.is_open()){
  29. while(!input_stream.eof()){
  30. input_stream.getline(input,999);
  31. cout<<input<<endl;
  32. }
  33. }
  34. input_stream.close();
  35. return 0;
  36. }

Edge : 一个开源的科学计算引擎