1133人加入学习
(5人评价)
C++编程系列 第一季编程基础

制作于2018年2月7日

价格 免费
课程还未发布,不允许加入和购买

#include <iostream>
#include <stdio.h>

int main()
{
    // 命名空间std
    /*
        cout or endl就包含在std这个命名空间中
    */
    using namespace std;


    // cout << "..." << endl;等于
    // c语言中的printf("...\n");


    cout << "Hello world!" << endl;
    printf("hello world\n");
    
    return 0;
}

[展开全文]

cout<<" "表示输出字符串变量值。

cout<<' '表示是字符变量值,字母的本质也是数字。

int  a=10;

cout<<"a";//输出为问 字符a;

cout<<a;//输出为10;

cout<<'a' ;//输出为65;

cout<<endl;//换行

一般情况下,来cin自动跳过输入的空格。如果你要把键盘上输入的每个字符自,包括空格和回车键都作为一个输入字符给字符型变量时,必百须使用函数cin.get()。

[展开全文]

授课教师

加我的QQ问问题:804632564

课程特色

下载资料(1)
视频(58)