[ create a new paste ] login | about

apronchenkov

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

Saved pastes by apronchenkov:

C++, pasted on Aug 10:
1
2
3
4
5
#include <algorithm> 
#include <stdint.h> 

int main()
{
...
view (16 lines, 4 lines of output, 1 comment)
C++, pasted on Aug 5:
1
2
3
4
5
#include <vector>
#include <string>

int main() {
    std::vector< std::vector<std::string> > x(3, 3);
...
view (8 lines, 1 comment)
C++, pasted on Aug 5:
1
2
3
4
5
#include <vector>

namespace std {

struct X {
...
view (15 lines, 1 comment)
Lua, pasted on Jul 28:
1
2
3
4
5
math.randomseed(os.time());

local year      =    0; -- current year
local pop       =  100; -- current population, each needs 20 bushels/year
local births    =    5; -- number of births in current year
...
view (185 lines, 25 lines of output)
C++, pasted on Jul 7:
1
2
3
4
5
#ifndef __fast_inv_sqrt_h__
#define __fast_inv_sqrt_h__

#include <cassert>
#include <stdint.h>
...
view (31 lines)