![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
笔记
weixin_46314113
这个作者很懒,什么都没留下…
展开
-
数据结构1:顺序表的基本操作
#include<iostream> using namespace std; typedef int ElemType; /*#define MAXSIZE 100 typedef struct { ElemType elem[MAXSIZE]; int length; }sqlist; */ typedef struct { ElemType *elem...原创 2020-03-01 21:41:01 · 389 阅读 · 1 评论 -
python 字符串
Python 字符串 1.python 中的字符串字面量由单引号或双引号括起。 ‘hello’ 等同于 “hello”。 多行字符串 您可以使用三个引号将多行字符串赋值给变量:实例您可以使用三个双引号:a = “”“Python is a widely used general-purpose, high level programming lines of code.”""运行实例或三个单引号...原创 2020-02-13 21:23:50 · 141 阅读 · 0 评论 -
笔记2:引用
创建引用变量 引用,就已经定义变量的别名 int a; int & b = a; &运算符不是取地址,而是将b的类型声明为int&,指向指向int变量的引用。 注意:必须在声明引用变量时进行初始化 引用类似于const指针, int & b = a; //类似于: int * const ptr = &a; 引用作为函数参数 void swap(int ...原创 2020-02-13 16:49:43 · 100 阅读 · 0 评论 -
笔记1:数组的初始化规则
1.只有在定义数组的时候初始化,之后就不允许在使用了 #include <iostream> using namespace std; int main() { int arr1[]={1,2,3,4};//OK int arr2[3]; //arr2[3]={2,2,2,};//no cout << *arr1<< endl; ...原创 2020-02-12 21:47:53 · 298 阅读 · 0 评论