自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 static随笔

package com.test01;public class StaticTest { String name; int age; int num; static String school; public StaticTest(){ } public StaticTest(String name,int age,int num){ this.name = name; this.age = age;

2021-01-03 10:37:12 102

原创 Java代码块(初级)

package com.test01;public class CodeBlock { public CodeBlock(){ System.out.println("这是空构造器"); } public CodeBlock(int p){ System.out.println(p); } public void ordinary(){ { System.out.println("这是普通

2021-01-03 10:29:49 114

原创 随笔

20180715文件: fprintf用于按指定格式向文件写入数据,其写入方式是以**文本格式**。如:fprintf(fp,"%d\t%d\n",n,m); fwrite用于向指定的内存中的数据块写入所指的文件,其写入方式是以**二进制形式**。如:fwrite(stu,sizeof(stu),n,fp);...

2018-07-16 09:41:54 143

转载 strstr函数和strcmp函数的区别

strstr函数和strcmp函数的区别strstr函数 /* c语言strstr实现文本字符查找 liangzongwen 2018-07-16*/#include <stdio.h>#include <string.h>const char *FILE_BIN_PAH="filetext.txt";void main(){ ...

2018-07-16 09:40:31 4086

原创 学生信息管理系统

#include#include#include#define N 30const char *PATH="student.bin"; //文件的路径int n=0;typedef struct student{ char cNo[13]; //12位的学号 char cName[11];//10个英文字符,或5个汉字 float chine

2018-01-20 12:33:26 416

原创 交换结构体内部的两组数据

#include#define N 30typedef struct Mystruct{ int a; int b;}MYSTRUCT;void Swap(struct Mystruct *p,struct Mystruct *p1){// struct Mystruct *pstr=p1; struct Mystruct a; a=*p1;

2018-01-05 13:01:06 4249

转载 调用函数,返回指针

#include <stdio.h>int *larger(int *a,int *b) { if(*a>*b) { return a;}else{ return b;}} int main() { //write your code here int *n,m; int *p=NULL; n=(int *

2017-12-26 14:53:01 543

转载 用指向指针的指针对n个数据进行排序

来源于学校瑞格系统的题目(用指向指针的指针对数据进行排序) include <stdio.h>int sort(int **p,int n){ int i,j,temp; for(i=0;i<n-1;i++) { for(j=i+1;j<n;j++) { if(**(p+i)>**(p+j))

2017-12-26 14:26:16 1747

空空如也

空空如也

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

TA关注的人

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