摘要:
#include<iostream>using namespace std;#include<string> #include<fstream>#include <conio.h>#include<string.h>#include<windows.h>typedef struct user { s
阅读全文
posted @ 2020-11-24 08:55
柠檬tea的味道
阅读(321)
推荐(0)
摘要:
//循环队列#include<iostream>using namespace std;typedef struct Qq{ int *base; int front; int rear;}Qq;void chushihua(Qq &q) { q.base = new int[15]; if (!q
阅读全文
posted @ 2020-11-09 18:28
柠檬tea的味道
阅读(53)
推荐(0)
摘要:
#include<iostream>using namespace std; // 连队列 typedef struct Q { int date; struct Q *next;}Q, *Qq;typedef struct { Qq front; Qq rear;}Link;void gouzao
阅读全文
posted @ 2020-11-09 09:09
柠檬tea的味道
阅读(71)
推荐(0)
posted @ 2020-10-23 18:30
柠檬tea的味道
阅读(51)
推荐(0)
摘要:
#include<iostream>using namespace std;/*typedef struct student { char name[6]; int xuehao;}student;*/typedef struct LNode { int date; struct LNode* ne
阅读全文
posted @ 2020-10-23 17:46
柠檬tea的味道
阅读(90)
推荐(0)
摘要:
#include<iostream>using namespace std;typedef struct { int* a; int length;}Sqlist;// 创建线性表 void InitList(Sqlist& L) { L.a = new int[20]; if (!L.a) exi
阅读全文
posted @ 2020-10-19 18:22
柠檬tea的味道
阅读(88)
推荐(0)
摘要:
import java.util.*;class HelloWorld { public static void main(String []args) { Scanner reader=new Scanner(System.in); double sum=0; int m=0; while(rea
阅读全文
posted @ 2020-10-16 11:04
柠檬tea的味道
阅读(116)
推荐(0)
摘要:
#include<iostream>#include<string.h>using namespace std;class Teacher{ public: Teacher(char *Name,int Age,char Sex,char *Address,int Dianhua,char *Tit
阅读全文
posted @ 2020-10-13 09:13
柠檬tea的味道
阅读(112)
推荐(0)
摘要:
工具类方法一般是静态方法。是为了方便编程的。 example: class gongJu{ public static void sum(int a,int b){ System.out.println(a+b); } public static double div(double a,double
阅读全文
posted @ 2020-10-08 23:51
柠檬tea的味道
阅读(126)
推荐(0)
摘要:
1、 static String country=“中国”; 每个对象的country都一样,为了节省存储空间使用static。(在方法区内存中调用类时便定义了country的字面值)这这样每个对象的country都是中国,构造方法中可以不写country了。 2、 static{ ........
阅读全文
posted @ 2020-10-08 22:55
柠檬tea的味道
阅读(103)
推荐(0)