fork(1) download
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5. int main ( )
  6. {
  7. int i, j;
  8. double d;
  9. string s; // C++中新增 string 类型
  10.  
  11. i = 10;
  12. d = 123.45;
  13. s = "http://s...content-available-to-author-only...u.cn/cpp/biancheng/cpp/rumen/";
  14.  
  15. cout << "请输入一个整数:";
  16. cin >> j;
  17. cout << "i=" << i << "\n";
  18. cout << "j=";
  19. cout << j;
  20. cout << endl;
  21. cout << "d=" << d << endl;
  22. cout << s << endl;
  23.  
  24. return 0;
  25. }# your code goes here
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:25:2: error: stray ‘#’ in program
 }# your code goes here
  ^
prog.cpp:25:4: error: ‘your’ does not name a type
 }# your code goes here
    ^
stdout
Standard output is empty