为了账号安全,请及时绑定邮箱和手机立即绑定

趣味 C++ 入门

难度入门
时长 3小时21分
学习人数
综合评分9.73
17人评价 查看评价
9.3 内容实用
10.0 简洁易懂
9.9 逻辑清晰
#include<studio.h>
#include <stdio.h>

int main(int argc,char **argv)
{
printf("Hello World!\n");
return 0;
} #include <stdio.h>

int main(int argc,char **argv)
{
printf("Hello World!\n");
return
#include<stdio.h>
#include<stdio.h>
#include #include <stdio.h>

int main(int argc,char **argv)
{
printf("Hello World!\n");
return 0;
}
这个老师,不会是给薛定饿了么配音的声优吧。
#include <iostream>
using namespace std;
#include <string>
int main()
{
int a=1;
int b=2;
cout << "a+b=" << a+b<<endl;
cout << "a-b=" << a-b<<endl;
cout << "a*b=" << a*b<<endl;
cout << "a/b=" << a/b<<endl;
int c=5;
float d=3.25;
cout << "c+d=" << c+d<<endl;
}
这里是不是讲的不对,a=100 转short b 是因为100在short的可转换范围内,如果你换成1000000试试,不管你是 short b = a,还是short b = (short)a; 都没用,都会丢失
#include<iostream>
#include<stdio.h>
using namespace std;
int main ()
{
char a;int b;
for(b=0;b<5;b++)
{
cout << "* * * * * * * *" << endl;
}

}
#include<iostream>
#include<stdio.h>
using namespace std;
int main ()
{
char a;int b,c;
for(c=0;c<5;c++)
{

for(b=0;b<8;b++)
{
cout << "* " ;
}
cout << " " << endl;
}

}
课程须知
本门课程使用 Windows 平台下的 Visual Studio 作为开发工具,所以你要准备一台 Windows 系统的电脑。当然,本门课程中介绍的所有代码,并不是只能在 Windows 下运行,你同样可以尝试使用 Mac OS X 或者 Linux 或者其他的平台进行学习,我们也鼓励你进行这样的尝试。
老师告诉你能学到什么?
掌握在 Windows 下搭建 C++ 开发环境,了解 C++ 的基础概念,例如变量,指针等。了解计算机的一些基础知识,内存布局等。除此之外,本课程还将介绍一些编程小技巧,以及编程的代码规范。

微信扫码,参与3人拼团

意见反馈 帮助中心 APP下载
官方微信
友情提示:

您好,此课程属于迁移课程,您已购买该课程,无需重复购买,感谢您对慕课网的支持!

本次提问将花费2个积分

你的积分不足,无法发表

为什么扣积分?

本次提问将花费2个积分

继续发表请点击 "确定"

为什么扣积分?

举报

0/150
提交
取消