sehe
|
codepad
|
|
sehe
|
Saved pastes by sehe:
#include <string>
#include <iostream>
#include <fstream>
#include <iterator>
#include <algorithm>
|
view (23 lines, 47 lines of output) |
#include <string>
#include <iostream>
#include <fstream>
#include <iterator>
#include <algorithm>
|
view (23 lines, 47 lines of output) |
/* 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) |
#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) |
#include <iostream>
#include <memory>
#include <algorithm>
#include <iterator>
#include <stdexcept>
|
view (119 lines, 36 lines of output) |
// Final proposal: combine adjacent rectangles,
// if they are 'flush': almost touching
#include <iostream>
|
view (88 lines, 6 lines of output) |
#include <iostream>
#include <fstream>
#include <iterator>
#include <deque>
#include <vector>
|
view (30 lines, 26 lines of output) |
#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) |
#include <iostream>
#define DUMPIT(a) \
do { std::cout << #a " is value " << (a) << std::endl; } while(false)
|
view (16 lines, 3 lines of output) |
#include <stdio.h>
int main()
{
printf("Seems unnecessary when decimals are greater: >%4.8f<\n", 3.4567);
|
view (11 lines, 4 lines of output) |
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) |