fork 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. }
Success #stdin #stdout 0s 3476KB
stdin
Standard input is empty
stdout
请输入一个整数:i=10
j=134515435
d=123.45
http://s...content-available-to-author-only...u.cn/cpp/biancheng/cpp/rumen/