- 博客(11)
- 收藏
- 关注
原创 VS字体颜色的意义
在这里插入代码片@TOC蓝色——关键字浅蓝色——类名、枚举、委托红色——字符串绿色——注释内容、运算符函数、黑色——符号、变量以及其他这是VS中默认的颜色,可以通过工具-选项-环境-字体和颜色 进行查看和更改欢迎使用Markdown编辑器你好! 这是你第一次使用 Markdown编辑器 所展示的欢迎页。如果你想学习如何使用Markdown编辑器, 可以仔细阅读这篇文章,了解一下Markdown的基本语法知识。新的改变我们对Markdown编辑器进行了一些功能拓展与语法支持,除了标准的Ma
2021-11-27 02:48:58
3213
原创 记不住的东西
#include <stdio.h>#include <stdlib.h>//system("pause"); 用这个用到的库int main(){ int a=5; if(a>6) { printf("A比6大 %d \n", a); } else { printf("A比6小 %d \n", a); } system(...
2020-04-04 17:06:37
157
原创 16位汇编第一课
segmentends是一对成对使用的伪指令,segment 和ends的功能是定义一个段segment说明一段的开始ends说明一段的结束codesg sement:codesg endsend 是一个汇编程序的结束标记,assume cs:codesgcodesg segment mov ax,0123h mov bx,0456h add ax,bx add ax...
2020-04-01 14:44:00
176
原创 我写过的程序
#include<stdio.h>#include<iostream>using namespace std;void swap(int *p1,int *p2){ int t;//声明局部变量T t=*p1; //读取P1指针的值赋值给T *p1=*p2;//读取p2指针的值赋值给P1指针里 *p2=t;//把T的值赋值给P2指针里面 //不明白给指针...
2020-03-24 01:49:22
163
转载 指针函数与函数指针的用法与区别
一、区别1、指针函数:指的就是返回值是指针的函数,本质就是个函数。2、函数指针:指的是指向函数的指针变量,本质就是个指针。二、用法1、指针函数:int* func(int a,int b);普通函数就是int func(int a,int b);,返回值是int,而指针函数就是返回值是指针的函数,即返回值是int*。2、函数指针:int (*func)(int x,int y);...
2020-03-23 20:01:22
361
原创 声明描述
#include<stdio.h>int main(){a int abc(); //返回值为int的函数b int abc[3]; //int 型数组c int **abc() ;//返回值为int型指针的指针函数d int (*abc)();//返回值为int的函数指针e int (*abc)[6];//指向"int 型数组"的指针f int *abc();//返...
2020-03-23 16:25:38
140
原创 结构的指针 使用
在这里插入代码片#include #include using namespace std;void printBook( struct Books *book );struct Books{char title[50];char author[50];char subject[100];int book_id;};int main( ){Books Boo...
2020-03-23 01:01:22
416
原创 C++指针简单使用
#include<stdio.h>#include <stdlib.h> #include <string.h>int main(){ int a=10; int *p=&a; int c=*p; printf("%d\n",c); system("pause"); return 0;}
2020-03-20 00:32:41
100
原创 C++结构体简单使用
#include<stdio.h>#include <stdlib.h> #include <string.h>struct student //学生信息{ int age; char name[10]; int id;};int main(){ student _meage; _meage.age=18; _meage.id...
2020-03-20 00:18:43
159
原创 简单参数,返回值使用格式。
#include<stdio.h>#include <stdlib.h> int test(int a,int b) //竟然忘记对参数数据类型定义{ int c; c=a+b; return c;}int main(){ int ret; ret=test(10,20); printf("%d\n", ret); sy...
2020-03-19 21:45:52
185
原创 C语言局部变量使用
C语言基础格式欢迎使用Markdown编辑器你好! 这是你第一次使用 Markdown编辑器 所展示的欢迎页。如果你想学习如何使用Markdown编辑器, 可以仔细阅读这篇文章,了解一下Markdown的基本语法知识。新的改变我们对Markdown编辑器进行了一些功能拓展与语法支持,除了标准的Markdown编辑器功能,我们增加了如下几点新功能,帮助你用它写博客:全新的界面设计 ,将会...
2020-03-19 21:13:42
465
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人