This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-------------------------------------------------------------------------------- | |
MB | |
9.096^ # | |
| @:@# | |
| @:::@:@# | |
| @:::@@@:: @:@# | |
| @:: @ @:: @:@# | |
| @@:: @ @:: @:@# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
#include <iomanip> | |
using namespace std; | |
template<size_t max> string inc_seq() | |
{ | |
string s; | |
for(int i=1; i<=max; i++) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: set_new_hand set_unexpected set_terminate | |
set_new_hand: set_new_hand.cpp | |
g++ -g -o set_new_hand set_new_hand.cpp | |
set_unexpected: set_unexpected.cpp | |
g++ -g -o set_unexpected set_unexpected.cpp | |
set_terminate: set_terminate.cpp | |
g++ -g -o set_terminate set_terminate.cpp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.DS_Store |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
這個 CSS 樣式表最初由 howar31 製作, CrBoy 為了記錄改寫的過程所以放上 gist.github。 | |
This stylesheet is originally made by howar31. CrBoy put it on gist.github for modifying and improving. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "cutility.h" | |
void gotoxy(int x, int y) | |
{ | |
static HANDLE hConsole = GetStdHandle( STD_OUTPUT_HANDLE ); | |
COORD coord={x, y}; | |
SetConsoleCursorPosition(hConsole, coord); | |
} | |
void setcolor(const char *fg, const char *bg) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <list> | |
#include <utility> | |
#include <iostream> | |
using namespace std; | |
template<class T1, class T2> | |
list< pair<T1,T2> > zip(const list<T1>& container1, const list<T2>& container2) | |
{ | |
list< pair<T1,T2> > result; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <vector> | |
#include <algorithm> | |
#include <boost/lambda/lambda.hpp> | |
#include <boost/lambda/bind.hpp> | |
using namespace std; | |
using namespace boost::lambda; | |
int main(int argc, const char *argv[]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef MYCLASS_H | |
#define MYCLASS_H | |
#include <boost/serialization/export.hpp> | |
#include <boost/serialization/vector.hpp> | |
using namespace std; | |
class A | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <utility> | |
// | |
// Quick sort for single linked list | |
// | |
// Template arguments: | |
// T: node's pointer type | |
// Next: function/functor to get next node | |
// Compare: functor to compare 2 arguments | |
// |