自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

有块空地的博客

不断进取的小白

  • 博客(17)
  • 收藏
  • 关注

原创 博客后端开发

数据库设计用户表 tb_user字段名 类型 长度 不是null 主键 注释 id varchar 255 是 是 主键 account varchar 255 是 账户 password varchar 255 是 密码 name varchar 255 否 别名 email varchar 128 ...

2021-06-02 00:16:30 129

原创 Java-内部类(方法内部类)

class Outer{ private static int outer_i = 100;//外部类的静态成员 public void test() { class Inner{ void display(){ //访问外部类的成员变量 System.out.println(o...

2019-05-10 23:03:50 151

原创 Java-内部类(静态内部类)

静态内部类是指使用static来修饰一个成员内部类在不创建外部类的情况下被实例化外部类名.内部类名 变量名 = new 外部类名.内部类名()class Outer{ private static int outer_i = 100;//外部类的静态成员 //定义静态内部类 static class Inner{ void display(){...

2019-05-10 22:38:02 169

原创 Java-内部类(成员内部类)

import java.util.jar.Attributes.Name;import org.omg.CORBA.PRIVATE_MEMBER;//内部类public class TestOuter{ public static void main(String[] args) { /*Outer ou = new Outer();//创建外部类方法 ...

2019-05-10 22:35:19 184

原创 C语言打印等腰三角形

#include <stdio.h>#include<stdlib.h>int main(){  int a, i, j, k;  scanf("%d",&a);  for(i = 1; i <= a; i++)    {    for(j = 1; j < a - i; j++)        printf(" ");    fo...

2018-11-28 14:29:42 6594

原创 C-素数-线性筛

#include <stdio.h>#include <math.h>int main(){    int i, j, k;    int a [300];    int p [300] = {0};//定义数组标识    int b = 0;    int cnt = 0;    for (i = 2; i <= 200; i++){      ...

2018-10-18 10:40:50 216

原创 C语言链栈

#include <stdio.h>#include <stdlib.h>typedef struct LineStack///定义结构体{    char data;///定义数据域    struct LineStack *next;///定义头指针} LineStack;LineStack *Push(LineStack *ls,char a)///入栈{    Li...

2018-06-09 14:41:21 428

原创 C语言链表

#include <stdio.h>#include <stdlib.h>typedef int ElemType;typedef struct Node{    ElemType data;//定义数据域    struct Node *next;//定义指针域} LNode;LNode *creat(int n)//尾插法建立单链表{    int i;    LNod...

2018-06-09 13:39:18 183

原创 C语言顺序栈

#include <stdio.h>#include <stdlib.h>#define MAXSIZE 1000typedef int ElemType;typedef struct //定义结构体{    ElemType data[MAXSIZE];//定义数据域    int top;//定义头结点} SeqStack;SeqStack Push(SeqStack ...

2018-06-09 13:37:25 1175 6

原创 C语言分别求两个整数的最大公约数和最小公倍数

#include <stdlib.h>#include <math.h>#include <stdio.h>//递归算法//欧几里得算法void GCD(int a, int b){    int temp;    temp = a % b;    if(a % b)    {        GCD(b,temp);    }    else        pr...

2018-05-08 22:59:46 6299

原创 C语言【计算球体积】

#include<stdio.h>#include<stdlib.h>#define PI 3.1415927int main(){    double r;    while(scanf("%lf",&r)!=EOF)    {        printf("%.3lf\n",4*r*r*r*PI/3);    }    return 0;}...

2018-05-06 21:01:18 17073

原创 C语言计算一个整数N的阶乘

#include <stdio.h>#include <stdlib.h>#include <math.h>int main(){    int i,N;    int sum = 1;    scanf("%d",&N);    if(0 <= N <= 12)    {        for(i = N; i>0; i--)    ...

2018-05-06 20:36:58 7068

原创 C语言计算:t=1-1/(2*2)-1/(3*3)-...-1/(m*m)

#include <stdio.h>#include <stdlib.h>#include <math.h>int main(){    int  m,i;    int n;    double t = 1;    scanf("%d",&m);    for(i = 2; i<=m; i++)    {     t = t - ((1.0 )/...

2018-05-06 20:14:37 8040 1

原创 C语言考试练习题_一元二次方程

#include <stdio.h>#include <stdlib.h>#include <math.h>int main(){    float a = 0, b = 0,c = 0;    float x1, x2,d = 0;    printf("请输入a,b,c:");    scanf("%f%f%f",&a,&b,&c);

2018-05-06 19:41:51 969

原创 C语言实现班级学生成绩管理系统

#include <stdio.h>#include <stdlib.h>#include <math.h>#undef strcmp#include <string.h>  #include <string> struct Student//学生结构{    char Name[10];//姓名    int No;/...

2018-05-04 16:46:11 6381 3

原创 C语言实现循环队

#include <stdio.h>#include <stdlib.h>#define MAXSIZE 100 //宏定义MAXSIZE数值typedef int ElemType;typedef struct queue//定义结构体{    ElemType data[MAXSIZE];    int front,rear;//定义队头,队尾} Cirqueue;Ci...

2018-04-27 19:31:54 223

原创 C语言实现数组的循环右移

#include <stdio.h>#include <stdlib.h>#define N 100int main(){   int i, j, x[N], a, b;   printf("请输入你想右移的数字个数\n");   scanf("%d",&a);   printf("请输入你想右移的数字\n");   for(i=0; i<a; i++)   ..

2018-04-26 15:45:06 11177 1

空空如也

空空如也

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

TA关注的人

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