当前位置:首页 > 2020年10月28日

数据结构

chanra1n4年前 (2020-10-28)C++4006
数据结构
#include<iostream> using namespace std; struct books{ char name[10]; int num; float price; }book; int&nb...

C和C++中的字符串

chanra1n4年前 (2020-10-28)C++4134
C和C++中的字符串
/*C风格字符串的声明和使用  #include<cstdio.h> int main() { char x[]={'H','e','l','l','o','&...

Break和Continue的区别

chanra1n4年前 (2020-10-28)C++4286
Break和Continue的区别
#include<iostream>  using namespace std; int main() { int x=0; for(x=0;x<10;x++) { if(x==3) break;...

变量作用域

chanra1n4年前 (2020-10-28)C++4191
变量作用域
#include<iostream> void print(); int main() { char a=0; for(a=0;a<20;a++) print(); return 0;  }  v...

函数声明和使用

chanra1n4年前 (2020-10-28)C++4356
函数声明和使用
#include<iostream> using namespace std; int sum(int a,int b);//函数声明  int main() { cout <<&nb...

数据类型及其占用空间

chanra1n4年前 (2020-10-28)C++4117
数据类型及其占用空间
#include<iostream> using namespace std; int main() { cout << "The size of int is&nb...

C++入门 输出Hello World

chanra1n4年前 (2020-10-28)C++4180
C++入门 输出Hello World
#include <iostream>using namespace std;int main(){     cout << "Hello, world!...