“一小时搞定C++_0 前言 必看” 的相关文章
一小时搞定C++_2
变量是什么?变量就是可以储存值的量,分为局部变量和全局变量,等用到了再说!变量有什么类型?1、int类型 整数类型,只能用来保存整数2、long类型 长整数类型,只能用来保存整数,但是保存的数的范围更多3、float类型 浮点数类型,绝大多数,带小数的4、double类型 双精度浮点数类型,绝大多数...
一小时搞定C++_7
假如我让你计算从1加到500,你会怎么计算,用累加公式?假如,没有累加公式,你只能从1挨个往上加,用计算机能不能实现这一一件事呢?4种方法:1、#include <iostream> using namespace std; int main(...
C++入门 输出Hello World
#include <iostream>using namespace std;int main(){ cout << "Hello, world!...
数据类型及其占用空间
#include<iostream> using namespace std; int main() { cout << "The size of int is&nb...
函数声明和使用
#include<iostream> using namespace std; int sum(int a,int b);//函数声明 int main() { cout <<&nb...
数据结构
#include<iostream> using namespace std; struct books{ char name[10]; int num; float price; }book; int&nb...



