自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(16)
  • 收藏
  • 关注

原创 python module

模块(Module)是一个包含了Python定义和语句的文件。模块的文件名是模块名加上。这样的方式,可以访问并使用模块中定义的函数、常量、类等。模块中的一个常量,表示圆周率。

2024-07-01 17:05:18 118

原创 struct

【代码】struct。

2024-04-21 15:59:42 106 1

原创 vi的一些快捷操作

为了避免重新输入这些信息,你只需告诉编辑器将你的特殊文件“读取”到你当前的文件中,然后像魔术一样,这个来自特殊文件的材料就成为你当前缓冲区的一部分,没有痛苦和打字错误。5. (可选)继续搜索下一个匹配项:如果当前匹配不是你想要的,可以按下小写字母n键,编辑器会继续向下搜索并将光标移动到下一个匹配项。3. 输入命令:在命令模式下输入`:r filename`,其中`filename`是你想要插入的文件名。3. 输入搜索字符串:在搜索模式下,输入你要搜索的字符串,并按下回车键。

2024-01-18 10:28:19 1247 1

原创 Merging Sorted Sequences: Linear Merge两ordered数列排序

【代码】Merging Sorted Sequences: Linear Merge两ordered数列排序。

2023-12-19 08:43:36 344 1

原创 main() 的参数

argv` 则是一个指向字符指针数组的指针,它存储了命令行参数的字符串数组。`argv[0]` 存储的是程序本身的名称,而 `argv[1]`、`argv[2]` 等则存储传递给程序的其他参数。其中,`argv[0]` 存储的是程序自身的名称,即 `./program`;而 `argv[1]` 存储的是传递给程序的第一个参数,即 `hello`。这两个参数分别是 `argc` 和 `argv`。因为 `argc` 的值为 3,表示有两个参数传递给了程序,而该程序只支持一个参数。

2023-12-18 20:45:04 344 1

原创 字符串长度计算

/ 输出:Length of str1: 13。// 输出:Length of str2: 5。// 输出:Length of str3: 0。

2023-12-18 20:21:37 454 1

原创 c语言,++,逻辑,break,countinue

001(x = 后面才是判断)

2023-11-29 12:19:34 376 1

原创 linux终端,压缩解压文件

Let us create a folder in which we will do this workshop:Now, let us create 4 text files.You may use a text editor to insert some random characters into each file.Zip all 4 files into one file “all”:As we can see file is created which contains 1.

2023-11-28 23:26:04 1334

原创 c语言,循环

2023-11-28 23:14:27 354

原创 c语言 逻辑词

【代码】c语言 逻辑词。

2023-11-28 21:43:30 362

原创 终端vim

这些命令在Linux中非常有用,可以帮助你控制进程的执行和状态,以及在需要时进行暂停、切换到前台或切换到后台。当你在终端中执行一个程序时,如果你想将其切换到前台并查看或交互,可以使用`fg`命令。当你在终端中执行一个程序时,如果你想将其暂停并切换到后台执行,可以使用`bg`命令。`sleep`、`fg`和`bg`是一些常用的命令和操作,用于控制进程的执行和状态。例如,`bg %1`将作业编号为1的前台作业切换到后台继续执行。`bg`命令用于将一个在前台暂停的作业转移到后台继续执行。

2023-11-28 21:35:27 336

原创 c语言printf 和putchar

● %d: prints an integer● %f: prints a floating-point number● %s: prints a string● %c: prints a character● %%: prints one % character● \n prints a newline

2023-11-28 21:14:29 309

原创 项目与进程

● Once it is copied into the main memory of the computer and ready to be executed, we call our program a process● If executed several times, a program stored on disk can create several processes executing at the same time.● Command jobs show all current pr

2023-11-28 20:30:50 346

原创 JSLinux,gcc,tcc

● tcc -run hello.c : it is compiled and executed by a fast compiler called tcc. No file is generated. ● gcc hello.c -o hello : it is compiled by a better compiler called gcc, into a file named hello● ./hello : you execute the compiled program (it is necess

2023-11-28 20:19:41 355

原创 如何在ubuntu的终端安装tcc 和gcc

这时会有一条sudo apt install gcc 的一行字弹出,输入它按回车,终端会提示你输入ubuntu的。输入tcc -w -run hello.c按回车,然后下面跟安装gcc类似。输入vi hello.c创立一个叫hello.c的文件。输入gcc hello.c -o hello按回车。锁屏密码,输入后回车,等加载完输入y按回车就会安装。

2023-10-31 10:56:05 67 1

原创 linux 终端的一些指令

● cat hello.c : shows the contents of the file hello.c of the current directory(显示当前目录下hello.c 文件的内容)● pwd : tells the path of the current directory(显示文件路径)●cd .. 回到parent directory。●cd name 进入叫name的directory。●cd 回到home directoty。

2023-10-31 10:47:52 23 1

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除