Articles
251
Tags
47
Categories
40
首页
项目
工具箱
归档
标签
分类
关于
Keysqiu的小屋
C语言逻辑短路
Back to Home
Search
首页
项目
工具箱
归档
标签
分类
关于
C语言逻辑短路
Created
2025-11-30
|
Updated
2026-08-25
|
C语言
|
Post Views:
记住一句话即可
在逻辑表达式中,只要能确定表达式的结果,还没有进行的判断不再继续
&&:全部都要为真
||:有一个为真
!:不是
Author:
Keysqiu
Link:
https://keysqiu.github.io/2025/11/30/C%E8%AF%AD%E8%A8%80/C%E8%AF%AD%E8%A8%80%E9%80%BB%E8%BE%91%E7%9F%AD%E8%B7%AF/
Copyright Notice:
All articles on this blog are licensed under
CC BY-NC-SA 4.0
unless otherwise stated.
C语言
Previous
Anaconda的一些见解
① 和PyCharm一样,就是给每一个项目创建一个独立的虚拟环境,防止**==包污染事件==发生** 查看电脑显卡最高支持的CUDA版本 nvidia-smi 查看已存在的虚拟环境 conda env list 创建虚拟环境 conda create -n 环境名字(英文) python=x.x(python版本) 进入虚拟环境 conda activate 虚拟环境名称 清华源 conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge conda config --add channels https://mirr...
Next
C++动态开辟二维数组
实现如下: int rows ; cin>>rows; int cols ; cin>>cols; int **arr = new int*[rows];//先使一个二级指针指向数组指针的地址 for(int i = 0 ; i < rows ;++i ) { arr[i] = new int [cols]();//为一级指针分配地址 } for(int i = 0 ; i < rows ;++i) { for( int j = 0 ; j < cols ;++j)//为数组填充元素 { cin>>arr[i][j]; } } //释放空间 for(int i = 0; i < rows ;++i) { delete [cols]arr[i];//先释放二维数组中每个元素指向的数组 arr[i] = NULL; } delete [rows]arr;//在释放该指针数组; arr = NULL;
Comments
Keysqiu
故不积跬步,无以至千里
Articles
251
Tags
47
Categories
40
Follow Me
Announcement
博客由思源笔记自动同步驱动,写作即发布
Contents
1.
记住一句话即可
Recent Posts
数据库-Redis-MQ速记
2026-09-22
📇 本类导航
2026-09-11
📇 本类导航
2026-09-11
📇 本类导航
2026-09-11
📇 本类导航
2026-09-11
Search
Loading Database