码迷,mamicode.com
首页 >  
搜索关键字:struct enum    ( 22969个结果
Spark 2.4新特性概述
Spark2.4新特性概述导读:Spark官方于今年11月份新发布了Spark2.4。那么新版本的Spark都有哪些值得了解的新特性?应对大数据领域的诸多方案,Spark目前是什么样的状况?未来会有怎样的规划?来自ApacheSparkPMC的大牛为我们讲述Spark的进击与挑战。11月23~24日,GIAC全球互联网架构大会将于上海举行。GIAC是高可用架构技术社区推出的面向架构师、技术负责人及
分类:其他好文   时间:2020-11-06 00:53:40    阅读次数:19
C++ switch/case的替换方案
switch语句改为多态结构更好些。 1. 常规switch #include <iostream> enum EnumType { enumOne, enumTwo, enumThree }; void showMessage(int type) { switch (type) { case en ...
分类:编程语言   时间:2020-11-04 19:20:04    阅读次数:35
简单的消息队列实现
一、服务端程序 **1. .h file** #ifndef UPGRADE_H #define UPGRADE_H #define MSG_MAX_SIZE (24) enum { HTTP_TYPE_UPLOAD = 0x0, HTTP_TYPE_DOWNLOAD }; typedef stru ...
分类:其他好文   时间:2020-11-04 19:07:09    阅读次数:21
考前算法总结
最短路 SPFA #include <bits/stdc++.h> using namespace std; #define N 10001 #define M 500001 struct node{ int to,w,next; }edge[M]; int cut=0; int head[N]; ...
分类:编程语言   时间:2020-11-04 18:47:58    阅读次数:18
2020-11-03:手写代码:链表如何快速找到中间节点?
福哥答案2020-11-03: 1.输入链表头节点,奇数长度返回中点,偶数长度返回上中点 。1.1.快慢指针。1.2.单指针。1.3.数组。2.输入链表头节点,奇数长度返回中点,偶数长度返回下中点 。这道题是leetcode上的第876道题,叫【链表的中间节点】。2.1.快慢指针。2.2.单指针。2 ...
分类:其他好文   时间:2020-11-04 18:35:12    阅读次数:18
spfa与SLF和LLL(复习)
1 #include <bits/stdc++.h> 2 using namespace std; 3 const int mac=4e5+50; 4 int head[mac],vis[mac],dis[mac]; 5 int n,m,num,i,j,t; 6 struct edge{ 7 int ...
分类:其他好文   时间:2020-11-04 17:45:08    阅读次数:15
Redis 链表实现
链表和链表节点的实现 Redis 每个链表节点使用一个 adlist.h/listNode 结构来表示: typedef struct listNode { // 前置节点 struct listNode *prev; // 后置节点 struct listNode *next; // 节点的值 v ...
分类:其他好文   时间:2020-11-04 17:37:06    阅读次数:16
链表相关内容
#include <iostream> typedef struct node { int nVal; node* pNext; node(int val) : nVal(val), pNext(nullptr) {} }; // create node* create_link(int nNode ...
分类:其他好文   时间:2020-11-02 09:58:50    阅读次数:18
二叉树的非递归遍历
#include<stdio.h> #include<string.h> #include<stdlib.h> 1、提供一个顺序存储的栈 #define max 1024 struct sstack { void * data[max]; //栈的数组 int m_size; //栈大小 }; ty ...
分类:其他好文   时间:2020-11-01 22:08:22    阅读次数:16
数组的应用—顺序表简化版.cpp
#include <stdio.h> #include <stdlib.h> //数组的应用:顺序表【线性表的一种存储方式】 struct Arr { int * pBase; //保存首地址 int len; //数组的总长度 int cet; //cet: current efficient(当 ...
分类:编程语言   时间:2020-11-01 22:05:49    阅读次数:23
22969条   上一页 1 ... 42 43 44 45 46 ... 2297 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!