- 博客(54)
- 收藏
- 关注
原创 linux中的文件,windons读取显示报错
解决方案:点击文件》重新载入》作为UTF-8输出即可。linux系统和windows系统的编解码机制不同。windows系统不注重软链接,大小写,属性问题。
2023-03-09 17:08:33
218
原创 c 语言 extern
/ 当写为extern int x=10;( int x为局部变量,是定义,定义只能一次,写两次会报错)(int x 为全局变量,是声明,声明可以有多次,不会报错)// extern int x;// 函数内声明变量 x 和 y 为外部变量。// 给外部变量(全局变量)x 和 y 赋值。// 函数内声明变量 x 和 y 为外部变量。// 给外部变量(全局变量)x 和 y 赋值。// 函数外定义变量 x 和 y。// 函数外定义变量 x 和 y。
2022-12-18 19:05:14
885
原创 使用U盘安装ubuntu系统后,windows检测不到U盘,或者U盘的内存空间变小了
使用U盘安装ubuntu系统后,U盘的内存变小的原因是由于做系统盘的时候,给U盘分区了,windows系统只能检测到第一个分区。
2022-12-12 17:18:03
1999
原创 电脑的快捷键
pw:p //这是一个例子,是仅打印以pw开头的命令,但不执行,最后的那个“p”是命令固定字符 ⭐️。14、ctrl+d //退出当前shell命令行,如果是切换过来的用户,则执行这个命令回退到原用户 ⭐️。pw //这是一个例子,是执行以pw开头的命令,这里的pw可以换成任何已经执行过的字符 ⭐️。11、ctrl+y //粘贴 ctrl+k、ctrl+u、ctrl+w删除的字符 ⭐️。17、ctrl+l //清楚屏幕所有的内容,并开启一个新的一行 ⭐️。
2022-11-22 10:34:46
555
原创 tar: Exiting with failure status due to previous errors
报错:tar: Exiting with failure status due to previous errors。在前面加上sudo后问题没有在出现。
2022-10-31 09:43:53
521
原创 通过MobaXterm SSH 链接 Ubuntu
1.进入Linux 系统安装SSH : sudo apt-get install openssh-server -y解决方法:现将info文件夹更名新建一个新的info文件夹安装修复执行完上一步操作后,在info文件夹下生成一些文件,现将这些文件全部移到info.bk文件夹下把自己新建的info文件夹删掉恢复原有info文件夹,修改名字到这里已经成功安装了,但我还遇到了相关文件的缺失如下内容谨慎操作,autoremove会把系统弄坏 接下来点击ok就好出
2022-10-24 11:13:30
691
原创 报错:bash:/opt/ros/indigo/setup.bash:No such file or directory
报错:bash:/opt/ros/indigo/setup.bash:No such file or directory
2022-08-15 09:10:15
1962
1
原创 给定一个整数数组 nums 和一个整数目标值 target,请你在该数组中找出 和为目标值 target 的那 两个 整数,并返回它们的数组下标。 你可以假设每种输入只会对应一个答案。但是,数组中
给定一个整数数组 nums 和一个整数目标值 target,请你在该数组中找出 和为目标值 target 的那 两个 整数,并返回它们的数组下标。你可以假设每种输入只会对应一个答案。但是,数组中同一个元素在答案里不能重复出现。#include using namespace std;void test(){int a[4] = { 2,6,5,9 };int target = 11;for (int i = 0; i <2; i++){for (int j = i; j <
2022-08-01 17:09:10
285
原创 git repo拉取代码gpg: Can‘t check signature: No public key问题,
qiufanzheng@qiufanzheng-SJB6~/rk356x_linux$repoinit--repo-url=git@ashrdgit.sh.ieinet.orgvendor/google/aosp/git-repo.git-ugit@ashrdgit.sh.ieinet.orglinux/project/rockchips/manifests.git-mrk356x_linux_release.xmlGetgit@ashrdgit.sh.ieinet.orgvendor/google。
2022-07-26 15:45:53
1619
原创 一个10万以内的整数,它加上100后是一个完全平方数,再加上168又是一个完全平方数,请问该数是多少?
一个10万以内的整数,它加上100后是一个完全平方数,再加上168又是一个完全平方数,请问该数是多少?
2022-07-13 17:40:11
1328
1
原创 创建以下map的对象,std::map<MyClass, int>,对该map进行若干次插入操作;
#include <iostream>#include <string>#include <map>#include <algorithm>typedef std::string MyClass;typedef std::map<MyClass, int> Code;int main(){ using namespace std; Code codes; string math; codes.ins...
2022-05-09 19:13:32
97
原创 一个周期增加的函数(python)
import numpy as npimport matplotlib.pyplot as plt# 创建自变量数组x = np.linspace(0, 2* np.pi, 100)u_ref_ = np.linspace(0, 0.13889, 100)t_ref = np.linspace(0.0001, 1, 100)#pi是自定义的一个符号pi = np.linspace(0, 3, 100)# 创建函数值数组# y1 = np.sin(x)y1 = 2 *...
2022-04-30 16:31:06
721
原创 Ubuntu安装界面显示不全,界面太大,拖动无法解决
行代码解决打开终端,先键入sudo apt-get autoremove open-vm-tools之后键入sudo apt-get install open-vm-tools-desktop
2022-04-15 18:54:07
7757
3
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人