[ create a new paste ] login | about

sehe

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

Saved pastes by sehe:

C++, pasted on Feb 12:
1
2
3
4
5
#include <string>
#include <iostream>
#include <fstream>
#include <iterator>
#include <algorithm>
...
view (23 lines, 47 lines of output)
C++, pasted on Feb 12:
1
2
3
4
5
#include <string>
#include <iostream>
#include <fstream>
#include <iterator>
#include <algorithm>
...
view (23 lines, 47 lines of output)
C++, pasted on Oct 25:
1
2
3
4
5
/* just skip the first two (!!!) lines when reading from t.cpp
602.030024387
423.927317911
520.43881927
131.655014874
...
view (29 lines, 30 lines of output)
C++, pasted on Oct 5:
1
2
3
4
5
#include <cstdlib>
#include <iostream>
#include <fstream>

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

struct Object {  virtual void foo() { std::cout << "Object::foo();" << std::endl; } };
struct PhysicsObject: Object {  virtual void foo() { std::cout << "PhysicsObject::foo();" << std::endl; } };
struct Ball: PhysicsObject {  virtual void foo() { std::cout << "Ball::foo();" << std::endl; } };
...
view (18 lines, 1 line of output)
C++, pasted on Aug 22:
1
2
3
4
#include <map>
#include <string>
#include <iostream>
using namespace std;
...
view (32 lines, 3 lines of output)
C++, pasted on Aug 21:
1
2
3
4
5
#include <iostream>
#include <memory>
#include <algorithm>
#include <iterator>
#include <stdexcept>
...
view (119 lines, 36 lines of output)
C++, pasted on Jul 12:
1
2
3
4
// Final proposal: combine adjacent rectangles, 
// if they are 'flush': almost touching

#include <iostream>
...
view (88 lines, 6 lines of output)
C++, pasted on Jul 12:
1
2
3
4
5
// MODIFIED VERSION (Bounding Box)

#include <iostream>

struct R
...
view (45 lines, 6 lines of output)
C++, pasted on Jul 12:
1
2
3
4
5
#include <iostream>

struct R
{
    int x1,y1,x2,y2;
...
view (37 lines, 2 lines of output)
C++, pasted on Jul 11:
1
2
3
4
5
#include <map>

int main()
{
    std::map<int, std::string> map;
...
view (14 lines, 1 line of output)
C++, pasted on Jul 8:
1
2
3
4
5
#include <iostream>
#include <fstream>
#include <iterator>
#include <deque>
#include <vector>
...
view (30 lines, 26 lines of output)
C++, pasted on Jul 8:
1
2
3
4
#include <iostream>

#define DUMPSTR_WNAME(os, name, a) \
    do { (os) << (name) << " is value " << (a) << std::endl; } while(false)
...
view (34 lines, 6 lines of output)
C++, pasted on Jul 8:
1
2
3
4
#include <iostream>

#define DUMPIT(a) \
    do { std::cout << #a " is value " << (a) << std::endl; } while(false)
...
view (16 lines, 3 lines of output)
C, pasted on Jul 7:
1
2
3
4
5
#include <stdio.h>

int main()
{
    printf("Seems unnecessary when decimals are greater: >%4.8f<\n", 3.4567);
...
view (11 lines, 4 lines of output)
C++, pasted on Jul 5:
1
2
3
4
5
class Derived;

// mock object
struct SomeSingleton
{ 
...
view (35 lines)
C++, pasted on Jul 5:
1
2
3
4
#include <iostream>
#include <sstream>

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

using namespace std;

class A {
...
view (55 lines, 3 lines of output)
C++, pasted on Jun 16:
1
2
3
4
5
int main()
{
    volatile register const unsigned int v1 = 1;
    volatile register const int unsigned v2 = 2;
    volatile register unsigned const int v3 = 3;
...
view (125 lines)
C++, pasted on Apr 22:
1
2
3
4
#ifndef CMAP_H
#define CMAP_H

template <typename T>  class QVector;
...
view (17 lines, 2 lines of output)
C++, pasted on Apr 19:
1
2
3
4
5
#include <stdio.h>

struct A
{
	int p,q,r;
...
view (43 lines, 5 lines of output)
C++, pasted on Apr 6:
1
2
3
4
5
#include <iostream>
#include <fstream>
#include <string>

int main()
...
view (23 lines, 2 lines of output)
C++, pasted on Apr 6:
1
2
3
4
5
#include <vector>
#include <algorithm>
#include <set>

typedef std::vector<int> Vec;
...
view (23 lines)
C++, pasted on Apr 6:
1
2
3
4
5
#include <vector>
#include <algorithm>

int main()
{
...
view (24 lines)
C++, pasted on Apr 5:
1
2
3
4
5
#ifndef MATRIX_H
#define MATRIX_H
#include <vector>
#include <iostream>
#include <math.h>
...
view (163 lines, 2 lines of output)