[ create a new paste ] login | about

hecomi

Name:
Email:
Site/Blog:
Location:
Default language: C++
Favorite languages:
About:

Saved pastes by hecomi:

PHP, pasted on Jan 11:
1
2
3
4
<?php

// これが POST 経由でやってきたとする
$_POST["name"] = "山田";
...
view (14 lines, 1 line of output)
C++, pasted on Nov 28:
1
2
3
4
5
#include <iostream>

class hoge {
   int _n;
public:
...
view (20 lines, 1 line of output)
C++, pasted on Apr 16:
1
2
3
4
5
// ----- vtableを使用したType Erasure2 -----
// επιστημη + 高橋 晶 著
// 『完結で再利用しやすいコードのためのC++活用術 C++テンプレートテクニック』より

#include <iostream>
...
view (51 lines, 2 lines of output)
C++, pasted on Apr 16:
1
2
3
4
5
// ----- vtableを使用したType Erasure -----
// επιστημη + 高橋 晶 著
// 『完結で再利用しやすいコードのためのC++活用術 C++テンプレートテクニック』より

#include <iostream>
...
view (71 lines, 2 lines of output)
C++, pasted on Mar 21:
1
2
3
4
5
#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <boost/preprocessor.hpp>
...
view (69 lines, 1 line of output)
C++, pasted on Mar 21:
1
2
3
4
5
#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <boost/preprocessor.hpp>
...
view (87 lines, 7 lines of output)
C++, pasted on Mar 17:
1
2
3
4
5
#include <iostream>

namespace hecomi
{
	struct hoge
...
view (20 lines, 1 line of output)
C++, pasted on Mar 15:
1
2
3
4
5
#include <iostream>
#include <string>

class CompanyA
{
...
view (51 lines, 3 lines of output)
Plain Text, pasted on Feb 15:
1
2
3
4
5
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)
C++, pasted on Feb 9:
1
2
3
4
#include <iostream>

template <class R>
class Convert;
...
view (21 lines, 1 line of output)
C++, pasted on Feb 9:
1
2
3
4
5
#include <iostream>
#include <string>
#include <boost/type_traits.hpp>
#include <boost/mpl/if.hpp>
 
...
view (91 lines, 2 lines of output)
C++, pasted on Feb 9:
1
2
3
4
5
#include <iostream>
#include <string>
 
union any_pointer {
        void (*func_ptr)();
...
view (67 lines, 2 lines of output)
C++, pasted on Dec 24:
1
2
3
4
5
#include <iostream>
#include <string>

struct riaju {
	std::string name;
...
view (28 lines, 2 lines of output)
C++, pasted on Dec 24:
1
2
3
4
5
#include <iostream>
#include <string>

struct riaju {
	std::string name;
...
view (28 lines, 2 lines of output)
C++, pasted on Dec 22:
1
2
3
4
5
#include <iostream>
#include <string>
using namespace std;

template <int N>
...
view (21 lines, 1 line of output)
C++, pasted on Dec 15:
1
2
3
4
#include <iostream>
#include <string>
#include <ctime>
using namespace std;
...
view (28 lines, 1 line of output)
C++, pasted on Nov 22:
1
2
3
4
5
#include <iostream>
#include <string>
#include <boost/algorithm/string/erase.hpp>

int main()
...
view (11 lines, 1 line of output)
Perl, pasted on Nov 22:
1
2
3
$tomorrow =  "勤労感謝の日";
$tomorrow =~ s/感謝//;
print $tomorrow;
view (3 lines, 1 line of output)
C, pasted on Nov 11:
1
2
3
4
5
#include <stdio.h>

enum CALC { ADD, SUB, MUL };

int add(int a, int b) { return a+b; }
...
view (23 lines, 3 lines of output)
C, pasted on Nov 11:
1
2
3
4
5
#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)
C, pasted on Nov 11:
1
2
3
4
5
#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)
C++, pasted on Jul 21:
1
2
3
4
5
#include <boost/format.hpp>

int main()
{
   std::cout << boost::format("%1% %2%!")%"Hello"%"World" << std::endl;
...
view (7 lines, 1 line of output)
Plain Text, pasted on Jul 20:
1
2
3
4
5
\newcommand{\fig}[4]{
 \begin{figure}[htbp]
  \begin{center}
  \vspace{2mm}
   \includegraphics[scale=#1]{#2}
...
view (15 lines)
C++, pasted on Jul 17:
1
2
3
4
5
#pragma once
#pragma warning(disable: 4996)

#include <iostream>
#include <iomanip>
...
view (280 lines)
C++, pasted on Jul 17:
1
2
3
4
5
#include <iostream>
#include <vector>
#include <cmath>

using namespace std;
...
view (95 lines, 12 lines of output)
C++, pasted on Jul 17:
1
2
3
4
#include <iostream>
#include <iterator>
#include <algorithm>
#include <cmath>
...
view (60 lines)
C++, pasted on Jul 17:
1
2
3
4
5
#include <iostream>
#include <iterator>
#include <algorithm>

int main()
...
view (17 lines, 6 lines of output)
C++, pasted on Jul 17:
1
2
3
4
5
#include <iostream>
#include <iterator>
#include <algorithm>

int main()
...
view (14 lines, 3 lines of output)
C++, pasted on Jul 17:
1
2
3
4
5
#include <iostream>
#include <map>
#include <string>

int main()
...
view (31 lines, 6 lines of output)
C++, pasted on Jul 16:
1
2
3
4
5
#pragma once

/*! @file
 @brief		gnuplotクラス
 @author	hecomi
...
view (451 lines)
C++, pasted on Jul 14:
1
2
3
4
5
#pragma warning(disable: 4996)

#include <stdio.h>
#include <stdarg.h>
#include <iostream>
...
view (226 lines)
C++, pasted on Jul 14:
1
2
3
4
5
#pragma once

/*! @file
 @brief		gnuplotクラス
 @author	hecomi
...
view (400 lines)
C++, pasted on Jul 10:
1
2
3
4
5
#include <iostream>

class Hoge
{
public:
...
view (23 lines, 3 lines of output)
C++, pasted on Jun 29:
1
2
3
4
5
#include <iostream>
#include <iterator>
#include <algorithm>

using namespace std;
...
view (25 lines, 1 line of output)
C++, pasted on Jun 27:
1
2
3
4
5
#include <iostream>
#include <vector>
#include <list>
#include <iterator>
#include <algorithm>
...
view (23 lines, 2 lines of output)
C++, pasted on Jun 27:
1
2
3
4
#include <iostream>
#include <vector>
#include <iterator>
#include <algorithm>
...
view (24 lines, 1 line of output)
C++, pasted on Jun 27:
1
2
3
4
#include <iostream>
#include <vector>
#include <iterator>
#include <algorithm>
...
view (24 lines, 1 line of output)
C++, pasted on Jun 27:
1
2
3
4
#include <deque>
#include <iostream>
#include <iterator>
#include <algorithm>
...
view (23 lines, 3 lines of output)
C++, pasted on Jun 27:
1
2
3
4
5
#include <iostream>
#include <sstream>
#include <list>
#include <iterator>
#include <algorithm>
...
view (35 lines, 1 line of output)
C++, pasted on Jun 23:
1
2
3
4
5
#include <list>
#include <iostream>
#include <functional>

using namespace std;
...
view (39 lines, 7 lines of output)
C++, pasted on Jun 18:
1
2
3
4
// listについての勉強

#include <iostream>
#include <list>
...
view (36 lines, 11 lines of output)
C++, pasted on Jun 17:
1
2
3
4
5
#include <iostream>
#include <string>
using namespace std;

int main()
...
view (21 lines, 3 lines of output)
C++, pasted on Jun 17:
1
2
3
4
#include <iostream>
#include <vector>

using namespace std;
...
view (18 lines, 10 lines of output)
C++, pasted on May 22:
1
2
3
4
5
#include <cstdlib>
#include <iostream>

int main()
{
...
view (11 lines, 1 line of output)
C++, pasted on May 22:
1
2
3
4
5
#include <iostream>

int main(void)
{
std::cout << "hello world!" << std::endl;
...
view (7 lines, 1 line of output)