- 博客(6)
- 收藏
- 关注
原创 vscode配置c语言环境以及launch:program“*****.exe” does not exist问题(保姆级检查)
vscode配置c语言环境以及launch:program“*****.exe” does not exist问题(保姆级检查)
2022-12-10 23:11:53
19360
10
原创 链表头插尾插头删尾删
```c#define _CRT_SECURE_NO_WARNINGS#ifndef _SLIST_H_#define _SLIST_H_#include<stdio.h>typedef int SLTDataType;typedef struct SList{ SLTDataType data; struct SList* next; //定义结构体指针}s1;void SListPrint(s1* head);void SListPushBack(s1** pph.
2021-07-02 15:00:57
162
原创 c语言旋转数组
#define _CRT_SECURE_NO_WARNINGS#include <stdio.h>void reverse(int* nums, int left, int right){ while (left < right) { int temp = nums[left]; nums[left] = nums[right]; nums[right] = temp; ++left; --right; }}int main() { int num
2021-06-16 11:13:46
138
原创 scanf中有关\n(按回车要求继续输入)的问题
原理:scanf从缓存区中读取数据,跳过读取的第一个及连着的第n个空白符(空白符:指空格符、制表符、回车符、换行符),从第一个非空白符读取数据,按回车结束读取,同时回车符也记录在缓存区中。 一.格式字符串里的除空格外的普通字符必须与输入字符串严格匹配,比如scanf("%d,%d",&a,&b).用户输入两个数字也要按照相同格式,例如5,6空格有一个例外情况,当空格在格式字符串的最右边,函数需要用户输入空白字符与之匹...
2021-06-14 14:50:52
2286
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人