简体中文
Telegram

讨论串 /cpp_gcc@rextester_bot

4 条消息 · –
C
C++ vs Python
/cpp_gcc@rextester_bot
    1. C
      C++ vs Python
      #include <iostream> #include <cmath> using namespace std; double funk(double x); { return 1.0/(1+x*x); } int main(){ int a, b; double x, S; cout<<" chegaralarni kiriting : "; cin>>a>>b; S=0; x=a; double h=(b-a)/n; for(int i=1; i<=n; i++) { y=funk(x); x+=h; S+=y; } S*=h; cout<<S; return 0; }
      1. 已
        Errors: 1035285509/source.cpp:5:1: error: expected unqualified-id before ‘{’ token { ^ 1035285509/source.cpp: In function ‘int main()’: 1035285509/source.cpp:15:16: error: ‘n’ was not declared in this scope double h=(b-a)/n; ^ 1035285509/source.cpp:18:1: error: ‘y’ was not declared in this scope y=funk(x); ^ Tip: Mistake? Edit your message, I'll adjust my response.
CC++ vs PythonC++ vs Python@cpp_vs_python · 群组 · 科技
114成员39 409索引中的消息
社群信息流 在 Telegram 中打开

来自搜索索引的公开信息流 ChatCrawler ——“公开 Telegram 的 Google”;随着该社群被抓取而更新。 时间为 UTC。

仅限公开内容,使用 Telegram 官方 API。 关于 · 常见问题 · 索引限制 · 移除页面 · 目录 · 搜索 · 计算方法