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.

1.cpp 434 B

123456789101112131415161718192021
  1. #include <cstdio>
  2. #include <iostream>
  3. #include <fstream>
  4. #include <string>
  5. using namespace std;
  6. int main()
  7. {
  8. fstream input_stream;
  9. input_stream.open(".txt",ios::in);
  10. char input[1000000];
  11. int cnt=0;
  12. if(input_stream.is_open()){
  13. //cout<<"yes\n";
  14. while(!input_stream.eof()){
  15. input_stream.getline(input,999);
  16. cout<<input<<endl;
  17. }
  18. }
  19. input_stream.close();
  20. }

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

Contributors (1)