网站首页 站内搜索

搜索结果

查询Tags标签: 翁恺,共有 10条记录
  • MOOC《程序设计入门——C语言》翁恺 第六周编程练习

    1高精度小数(10分) 题目内容: 由于计算机内部表达方式的限制,浮点运算都有精度问题,为了得到高精度的计算结果,就需要自己设计实现方法。 (0,1)之间的任何浮点数都可以表达为两个正整数的商,为了表达这样两个数的商,可以将相除的结果以多个整数来表示,每个整数表…

    2022/4/18 22:12:59 人评论 次浏览
  • C++翁恺学习17-const

    const declares a variable to have a constant value.constants constants are variables observe scoping rulesdeclared with "const" type modifier(修饰) compile time constantsconst int bufsize = 1024;value must be initializedunless you make an e…

    2022/2/7 20:12:46 人评论 次浏览
  • C++翁恺学习12-对象组合

    继承是软件重用的一种方式。 组合也是软件重用的一种方式。 reusing the implementation composition(组合):construct new object with existing objectsit is the relationship of "has-a"composition objects can be used to build up other objectsways of …

    2022/2/6 14:43:40 人评论 次浏览
  • C++ 17 翁恺> 拷贝构造

    #include<iostream> #include<string> using namespace std;static int objectCount = 0;class HowMany { public:HowMany() { objectCount++; print("HowMany()"); }void print(const string& msg=""){if (msg.size() != 0)cout <…

    2021/12/15 17:17:10 人评论 次浏览
  • C++ 17 翁恺> 拷贝构造

    #include<iostream> #include<string> using namespace std;static int objectCount = 0;class HowMany { public:HowMany() { objectCount++; print("HowMany()"); }void print(const string& msg=""){if (msg.size() != 0)cout <…

    2021/12/15 17:17:10 人评论 次浏览
  • 翁恺老师C语言编程-嵌套的if-else比较三个数的大小

    #include <stdio.h> #include <stdlib.h> int main() { int a,b,c; scanf("%d%d%d",&a,&b,&c); int max=0; if (a>b){ if(a>c){ max=a; }else{ max=c; }}else{…

    2021/11/7 17:11:49 人评论 次浏览
  • 翁恺老师C语言编程-嵌套的if-else比较三个数的大小

    #include <stdio.h> #include <stdlib.h> int main() { int a,b,c; scanf("%d%d%d",&a,&b,&c); int max=0; if (a>b){ if(a>c){ max=a; }else{ max=c; }}else{…

    2021/11/7 17:11:49 人评论 次浏览
  • 有点爱编程

    参加了一个人工智能的培训班,哦,突然感觉自己的知识盲区那么多,要弥补这些盲区就要从学习python开始。 嵩天老师讲得真的很好。每次听到这样的课我都在想,他没有讲笑话,也没有讲他自己的教育经历和见识,但是就是感觉他讲得好。 和翁恺老师一样,他们的博学和谦逊体现…

    2021/8/23 20:06:00 人评论 次浏览
  • 有点爱编程

    参加了一个人工智能的培训班,哦,突然感觉自己的知识盲区那么多,要弥补这些盲区就要从学习python开始。 嵩天老师讲得真的很好。每次听到这样的课我都在想,他没有讲笑话,也没有讲他自己的教育经历和见识,但是就是感觉他讲得好。 和翁恺老师一样,他们的博学和谦逊体现…

    2021/8/23 20:06:00 人评论 次浏览
  • 翁恺《C语言程序设计》例题

    02-0.整数四则运算(10) 本题要求编写程序,计算2个正整数的和、差、积、商并输出。题目保证输入和输出全部在整型范围内。 输入格式: 输入在一行中给出2个正整数A和B。 输出格式:在4行中按照格式“A 运算符 B = 结果”顺序输出和、差、积、商。 输入样例:2 3 代码:#…

    2021/5/18 14:55:14 人评论 次浏览
扫一扫关注最新编程教程