This doc contains the hotfix frameworks and links I found on GitHub and the Internet.
Framework:
/** List abstract class. */ | |
template <typename ItemType> class List { | |
public: | |
virtual int size() const = 0; | |
virtual ItemType &get(int i) = 0; | |
virtual const ItemType &get(int i) const = 0; | |
virtual void insert(const ItemType &x, int i) = 0; | |
virtual ItemType remove(int i) = 0; | |
virtual void addFirst(const ItemType &x) = 0; | |
virtual void addLast(const ItemType &x) = 0; |
template <typename T> class ArraySet { | |
private: | |
T *items; | |
int count; | |
public: | |
/** Create an empty set. */ | |
ArraySet() { | |
items = new T[100]; | |
count = 0; |
#include <iostream> | |
class IntNode { | |
public: | |
int item; | |
IntNode *next; | |
IntNode(int i, IntNode *n) { | |
item = i; | |
next = n; |
#include <iostream> | |
class IntList { | |
public: | |
int first; | |
IntList *rest; | |
IntList(int f, IntList *r = nullptr) { | |
first = f; | |
rest = r; |
sudo apt-get update | |
sudo apt-get dist-upgrade | |
sudo rpi-update | |
sudo apt-get install dnsmasq hostapd | |
sudo systemctl stop dnsmasq | |
sudo systemctl stop hostapd | |
# /etc/dhcpcd.conf | |
interface wlan0 | |
static ip_address=192.168.4.1/24 |
#!/usr/bin/env python | |
import argparse | |
from os import chdir, getcwd, listdir | |
from os.path import realpath | |
from shutil import move | |
class PushdContext: | |
cwd = None | |
original_dir = None |
import java.net.*; | |
import java.io.*; | |
/** | |
* A very simple web server. | |
* @author zhhailon | |
*/ | |
public class MiniWebServer { | |
protected void start() { |
/* | |
2 Given a binary tree, print out all of its root-to-leaf | |
3 paths, one per line. Uses a recursive helper to do the work. | |
4 */ | |
void printPaths(struct node* node) { | |
int path[1000]; | |
printPathsRecur(node, path, 0); | |
} | |
/* |
《失恋就是一段爱情死亡了》 | |
失恋也就是和ex的那段爱情去世了,你可能很悲伤,但是你阻止不了, | |
最好的方法就是接受此段爱情不能复生的事实和过去,对,已过去了。 | |
然后笑笑,迎接接下来的日子。 | |
至于接下来的日子,过的更珍惜还是更颓废,也只是你自己的选择而已。 | |
所以选择,才是影响你未来人生的关键转折。 |