[ create a new paste ] login | about

dakotahawkins

Name: Dakota Hawkins
Email:
Site/Blog:
Location: Raleigh, NC
Default language: C++
Favorite languages: C, C++
About:

Saved pastes by dakotahawkins:

C++, pasted on Nov 29:
1
2
3
4
5
// Double to string using streams

#include <stdio.h>
#include <string>
#include <sstream>
...
view (22 lines, 2 lines of output)
C++, pasted on Oct 26:
1
2
3
4
5
#include <stdio.h>

union u
{
  bool b;
...
view (25 lines, 6 lines of output)
C++, pasted on Oct 18:
1
2
3
4
5
#include <stdio.h>

int main()
{
  bool b1 = true;
...
view (16 lines, 2 lines of output)
C++, pasted on Oct 18:
1
2
3
4
5
#include <stdio.h>

class Base
{
public:
...
view (26 lines, 1 line of output)
C++, pasted on Oct 18:
1
2
3
4
5
#include <stdio.h>

class Base
{
public:
...
view (26 lines, 3 lines of output)
C++, pasted on Oct 13:
1
2
3
4
5
#include <iostream>

class Foo
{
public:
...
view (36 lines, 5 lines of output)
C++, pasted on May 20:
1
2
3
4
5
#include <stdio.h>

class Base
{
public:
...
view (33 lines, 1 line of output)
C++, pasted on May 20:
1
2
3
4
5
#include <stdio.h>

class Base
{
public:
...
view (39 lines, 1 line of output)
C++, pasted on Apr 1:
1
2
3
4
5
// multimap::equal_elements
// test to make sure equal_range returns only those items which match the query.

#include <iostream>
#include <map>
...
view (34 lines, 5 lines of output)
C++, pasted on Apr 1:
1
2
3
4
// multimap::equal_elements
#include <iostream>
#include <map>
using namespace std;
...
view (32 lines, 5 lines of output)
C++, pasted on Mar 11:
1
2
3
4
5
#include <iostream>

class ArrayDelTest
{
public:
...
view (28 lines, 7 lines of output)
C, pasted on Nov 16:
1
2
3
4
5
#include <stdio.h>

// warning, allocates memory, doesn't check alloc errors
char *makeItRain(unsigned int length, unsigned int *array)
{
...
view (39 lines, 1 line of output)