hecomi
|
codepad
|
|
hecomi
|
Saved pastes by hecomi:
// ----- vtableを使用したType Erasure2 -----
// επιστημη + 高橋 晶 著
// 『完結で再利用しやすいコードのためのC++活用術 C++テンプレートテクニック』より
#include <iostream>
|
view (51 lines, 2 lines of output) |
// ----- vtableを使用したType Erasure -----
// επιστημη + 高橋 晶 著
// 『完結で再利用しやすいコードのためのC++活用術 C++テンプレートテクニック』より
#include <iostream>
|
view (71 lines, 2 lines of output) |
#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <boost/preprocessor.hpp>
|
view (69 lines, 1 line of output) |
#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <boost/preprocessor.hpp>
|
view (87 lines, 7 lines of output) |
set term postscript eps enhanced "Tahoma" 35
set output "THESIS/itrs.eps"
set key left top
set key box lt 1 lw 3
set key width 0
|
view (19 lines) |
#include <iostream>
#include <string>
#include <boost/type_traits.hpp>
#include <boost/mpl/if.hpp>
|
view (91 lines, 2 lines of output) |
#include <iostream>
#include <string>
#include <boost/algorithm/string/erase.hpp>
int main()
|
view (11 lines, 1 line of output) |
#include <stdio.h>
typedef enum CALC { ADD, SUB, MUL };
int add(int a, int b) { return a+b; }
|
view (21 lines, 3 lines of output, 1 comment) |
#include <stdio.h>
typedef enum CALC { ADD, SUB, MUL };
int add(int a, int b) { return a+b; }
|
view (21 lines, 3 lines of output) |
#include <boost/format.hpp>
int main()
{
std::cout << boost::format("%1% %2%!")%"Hello"%"World" << std::endl;
|
view (7 lines, 1 line of output) |
\newcommand{\fig}[4]{
\begin{figure}[htbp]
\begin{center}
\vspace{2mm}
\includegraphics[scale=#1]{#2}
|
view (15 lines) |
#pragma warning(disable: 4996)
#include <stdio.h>
#include <stdarg.h>
#include <iostream>
|
view (226 lines) |
#include <iostream>
#include <vector>
#include <list>
#include <iterator>
#include <algorithm>
|
view (23 lines, 2 lines of output) |
#include <iostream>
#include <sstream>
#include <list>
#include <iterator>
#include <algorithm>
|
view (35 lines, 1 line of output) |