acgo题库
  • 首页
  • 题库
  • 题单
  • 竞赛
  • 讨论
  • 排行
  • 团队
  • 备赛专区

    竞赛

    • CSP-J/S
    • 蓝桥杯

    考级

    • GESP
    • CPA
    • 电子学会考级
登录
注册
题目详情题解(0)讨论(0)提交记录(0)
  • 666

    userId_undefined

    如果说我是帅哥才怪

    2阅读
    0回复
    0点赞
  • 题解

    #include <bits/stdc++.h> using namespace std; struct n{ string xm="张三"; double cj=98.5; int nl=12; }a[1010]; int main() { for(int i=1;i<=1;i++){ cout<<a[i].xm<<" "<<a[i].cj<<" "<<a[i].nl; } return 0; }

    userId_undefined

    留伊铭

    1阅读
    0回复
    0点赞
  • python

    print("张三 98.5 12")

    userId_undefined

    135****1834

    1阅读
    0回复
    0点赞
  • 结构体的基本使用

    userId_undefined

    全明星_lloyd

    1阅读
    0回复
    0点赞
  • 题解(这题用struct的是帅比)

    userId_undefined

    枫岚

    空间掌握者倔强青铜
    0阅读
    0回复
    0点赞
  • 6

    #include<bits/stdc++.h> using namespace std; struct information{ string name = "张三" ; double chengji=98.5; int age=12; }; int main() { information s; cout<<s.name<<" "<<s.chengji<<" "<<s.age; return 0; }

    userId_undefined

    ༺ཌༀ◎开◎ༀད༻

    0阅读
    0回复
    0点赞
  • 运行时间为0ms

    #include<iostream> using namespace std; int main() { class a{ public: string var = "张三"; double j = 98.5; int c = 12; }; a a; cout << a.var << " "; cout << a.j << " "; cout << a.c << " "; return 0; }

    userId_undefined

    199****5150

    0阅读
    0回复
    0点赞

共27条

  • 1
  • 2
20条/页
跳至页
首页