![Alt text](http://g.gravizo.com/g? digraph G { aize ="4,4"; main [shape=box]; main -> parse [weight=8]; parse -> execute; main -> init [style=dotted]; main -> cleanup; execute -> { make_string; printf} init -> make_string;
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int main() { | |
const classes::m_size size; | |
std::cout << "Create m" << std::endl; | |
classes::RectMatrix m; | |
std::cout << "End" << std::endl << std::endl; | |
std::cout << "Create m1" << std::endl; | |
classes::RectMatrix m1(); // is a function declaration | |
std::cout << "End" << std::endl << std::endl; | |
std::cout << "Create m2" << std::endl; | |
classes::RectMatrix m2(void); // is a function declaration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Author: reefridge <reefridgerator@gmail.com> | |
* Compilation: `clang++ freqs.cpp -o freqs` | |
* Synopsis: `freqs <input> <output>` | |
*/ | |
#include<string> | |
#include<vector> | |
#include<cctype> | |
#include<fstream> | |
#include<iostream> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Author: reefridge <reefridgerator@gmail.com> | |
* Compilation: `g++ freqs.cpp -o freqs` | |
* Synopsis: `freqs` | |
*/ | |
#include<cstdio> | |
#include<cstdlib> | |
#include<cstring> | |
#include<cctype> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdio> | |
#include <cstdlib> | |
#include <cstring> | |
#include <cassert> | |
#include <vector> | |
#ifdef _MSC_VER | |
#define WIN32_LEAN_AND_MEAN | |
#include <windows.h> | |
#include <psapi.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate encoding; | |
use std::net::{TcpListener, TcpStream}; | |
use std::str::FromStr; | |
use std::io::{Read, Write, Result, Error, ErrorKind, BufRead, BufReader}; | |
use encoding::{Encoding, EncoderTrap, DecoderTrap}; | |
use encoding::all::{UTF_16BE, ASCII}; | |
enum STP0Command { | |
Services, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate mio; | |
use mio::*; | |
use std::io::{self, Read, Write}; | |
use mio::net::{TcpListener, TcpStream}; | |
use std::collections::HashMap; | |
// Setup some tokens to allow us to identify which event is | |
// for which socket. | |
const SERVER: Token = Token(0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate ggez; | |
extern crate byteorder; | |
use ggez::conf; | |
use ggez::event; | |
use ggez::event::{Keycode, Mod}; | |
use ggez::{GameResult, Context}; | |
use ggez::graphics; | |
use ggez::graphics::{DrawMode, Point, Rect, Color}; | |
use std::time::Duration; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate mio; | |
extern crate byteorder; | |
use byteorder::{ByteOrder, LittleEndian, BigEndian}; | |
use mio::*; | |
use std::io::{self, Read, Write}; | |
use mio::net::{TcpListener, TcpStream}; | |
use std::collections::HashMap; | |
use std::convert::From; | |
// Setup some tokens to allow us to identify which event is |
OlderNewer