C++在线运行

版本:

编辑于 2023-07-18 15:30 累计访问:6768
点击了解高性能代码运行API
运行结果
代码简介
代码仓库
极速运行
终端运行
图形+终端

                        
用户最新保存的代码
查看更多

作者 我是大神(lijun1977)
编辑于:2023-07-18 15:30

#include <iostream>

#include <cmath>

#include <iomanip> using namespace std; int main() { double r; cin>>r; double v=3.14rrr4.0/3; cout<<fexed<<setprecision(2)<<v;

return 0;

}

提示:本站严禁涉政、违法等无关技术的内容
发送
搭载国产梦丘操作系统,支持安装软件,在线编程可视化开发软件,无需配置开发环境

点击购买 梦丘固件
  #include <studio.h> { int x; x=100; print x; } 1655

  #include <studio.h> { int x; x=100; print x; } 2004

  #include <studio.h> { int x; x=100; print x; } 1897

  #include <studio.h> { int x; x=100; print x; } 3353

  #include<iostream> using namespace std; class Base { public: virtual void fn() { cout <<"In Base Class\n";} }; class SubClass : public Base { public: virtual void fn(){ cout <<"In Sub Class\n"; } }; int main() { Base bc; Base *p; SubClass sc; p=&bc; p->fn(); p=&sc; p->fn(); } 5078

  #include <iostream> #include <chrono> #include <thread> int main() { std::cout << "延迟输出前的消息" << std::endl; // 设置延迟时间为3秒 std::chrono::seconds delay(3); // 让线程睡眠3秒 std::this_thread::sleep_for(delay); std::cout << "延迟输出后的消息" << std::endl; return 0; } 7982

  #include <iostream> using namespace std; int main() { cout << "Hello World!"; return 0; } 8386

  #include <iostream> #include <cmath> #include <iomanip> using namespace std; int main() { double r; cin>>r; double v=3.14*r*r*r*4.0/3; cout<<fexed<<setprecision(2)<<v; return 0; } 3134

  #include <iostream> #include <cmath> #include <iomanip> using namespace std; int main() { double r; cin>>r; double v=3.14*r*r*r*4.0/3; cout<<fexed<<setprecision(2)<<v; return 0; } 6769

  #include <iostream> using namespace std; int main() { int n=0,s=0; for(int ;s<=1000;s+=n) { n++; } cout <<n<<endl; //1 2 3 4 5 6 //1+2+3+4=10 /* while(s<=1000) { n++; s+=n;//s = s+n; } cout <<n<<endl; */ } 2991

  #include <iostream> using namespace std; int main() { int day; cout<<"请回答一周有几天:"; cin>>day; cout<<"您的回答是一周有"<<day; return 0; if (day = 7) { cout<<"回答正确"<<endl; } } 1129

O/R 映射
_.lt
R语言 数组