Skip to content

Instantly share code, notes, and snippets.

# Contributor: Cyril Lashkevich <notorca at gmail dot com>
pkgname=kchmviewer-qt
pkgver=6.0
pkgrel=3
pkgdesc="A .chm files (MS HTML help file format) viewer"
arch=('i686' 'x86_64')
url="http://kchmviewer.sourceforge.net/"
license=('GPL')
depends=('chmlib' 'qtwebkit')
# $Id: PKGBUILD 110725 2011-02-21 20:11:19Z tpowa $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
pkgname=qemu-mit6828
pkgver=15497.04885f1
pkgrel=1
pkgdesc="QEMU is a generic and open source processor emulator which achieves a good emulation speed by using dynamic translation.This version is specified for MIT's operating system lesson(6.828)"
arch=('i686' 'x86_64')
license=('GPL2' 'LGPL2.1')
url="http://wiki.qemu.org/Index.html"
makedepends=('perl' 'git')
// construct the post transverse based on the preorder and inorder transverse
// lrj whitebook p106
#include <iostream>
#include <cstdio>
#include <cstring>
#include <cassert>
using namespace std;
const int MAXN = 100;
// transverse a tree based on levels
// Lrj's whitebook p102
#include <iostream>
#include <cstdio>
#include <cstring>
#include <queue>
using namespace std;
struct Node{
#include <iostream>
#include <vector>
#include <cassert>
using namespace std;
const int MAXD = 20;
vector<bool> tree(1<<20, true);
int main(){
#include <iostream>
#include <vector>
#include <cassert>
using namespace std;
const int MAXD = 20;
vector<bool> tree(1<<20, true);
int main(){
//double linked list insertion and deletion
//lrj whitebook p95
#include <iostream>
using namespace std;
struct Node{
int value;
Node* left;
Node* right;
//search the element which has the minimal abs value in an ascending array
#include <iostream>
#include <cmath>
#include <vector>
using namespace std;
int minabs(vector<int> &a, int start, int end){
if(start+1 == end){
return a[start];
@qiuwei
qiuwei / hw4
Last active February 22, 2023 19:25
Hex implementation CPP-for C
//Homework 4, implement game of hex
#include <iostream>
#include <vector>
#include <set>
using namespace std;
enum Color{
RED,
@qiuwei
qiuwei / fifo.c
Last active December 24, 2015 09:49
fifo
#include <stdio.h>
#define MAX_SIZE 128
struct fifo{
int size;
int head;
int count;
char element[MAX_SIZE];
};