码迷,mamicode.com
首页 >  
搜索关键字:struct enum    ( 22969个结果
【源码】C++坦克大战
如果需要其他题目,可以阅览大纲: 点我跳转 题目介绍 代码量:1450 你收到的所有文件 其中一个是devc++版本,也可以用visual stdio 运行。 源码效果展示 typedef struct //这里的出现次序指的是一个AI_tank变量中的次序,游戏共有四个AI_tank变量 { // ...
分类:编程语言   时间:2021-03-16 13:41:59    阅读次数:0
查询两个链表的公共节点
输入两个链表,找出它们的第一个公共节点。 如下面的两个链表: /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), n ...
分类:其他好文   时间:2021-03-16 13:39:17    阅读次数:0
二叉树的建立与遍历(C语言实现)- 练习
ref #include <stdio.h> #include <stdlib.h> typedef struct node { int data; struct node *lchild, *rchild; }bitree_t; bitree_t *createNode(int data) { b ...
分类:编程语言   时间:2021-03-15 11:35:22    阅读次数:0
用链表解决约瑟夫环问题
#include <stdio.h>#include <stdlib.h>typedef struct node { int number; struct node * next;}person;person * initLink(int n) { int i = 0; person * head ...
分类:其他好文   时间:2021-03-15 11:31:33    阅读次数:0
PAT 2020年秋季 7-3 Left-View of Binary Tree (25 分)
The left-view of a binary tree is a list of nodes obtained by looking at the tree from left hand side and from top down. For example, given a tree sho ...
分类:其他好文   时间:2021-03-11 18:26:16    阅读次数:0
if,switch选择结构,while,do......while循环结构
顺序语句 案例 package com.bk201.struct; public class ShunXuDemo { public static void main(String[] args) { System.out.println("H"); System.out.println("e"); ...
分类:其他好文   时间:2021-03-10 13:13:09    阅读次数:0
[模板]最小圆覆盖
#include <bits/stdc++.h> using namespace std; const double EPS = 1e-8; const int N = 1e5+10; struct Point{ double x, y; }; int n; Point p[N]; bool equ ...
分类:其他好文   时间:2021-03-10 12:57:35    阅读次数:0
链表反转
定义一个函数,输入一个链表的头节点,反转该链表并输出反转后链表的头节点。 /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val ...
分类:其他好文   时间:2021-03-08 13:28:22    阅读次数:0
[Gym-102020H]Hyperpath(矩阵快速幂)
离散数学里面好像有一个连通图的可达矩阵,通过矩阵的幂乘找到该点每一步可到达的点 该题明显是k步后到了哪些点 int mod; struct mat { int data[110][110] = { 0 }; int n = 110; mat() {}; mat(int n) : n(n) {}; m ...
分类:其他好文   时间:2021-03-08 13:25:53    阅读次数:0
【jdk1.8源码分析】HashMap
本文参考Java 集合系列10之 HashMap详细介绍(源码解析)和使用示例 及 JDK1.8集合源码阅读 一、HashMap介绍 1.1 前言 Java8的HashMap对之前做了较大的优化,其中最重要的一个优化就是桶中的元素不再唯一按照链表组合,也可以使用红黑树进行存储,总之,目标只有一个,那 ...
分类:其他好文   时间:2021-03-08 13:09:20    阅读次数:0
22969条   上一页 1 ... 21 22 23 24 25 ... 2297 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!