Skip to content

Instantly share code, notes, and snippets.

View datoubanzhuan's full-sized avatar
🎯
Focusing

Ken Hu datoubanzhuan

🎯
Focusing
View GitHub Profile
#!/bin/bash
# this script installs GCC 5.4.0
# to use it navigate to your home directory and type:
# sh install-gcc-5.4.0.sh
# download and install gcc 4.9.3
wget https://github.com/gcc-mirror/gcc/archive/gcc-5_4_0-release.tar.gz
tar xzf gcc-5_4_0-release.tar.gz
cd gcc-5_4_0-release
@datoubanzhuan
datoubanzhuan / read_bytes_in_file.cpp
Last active May 6, 2021 02:46 — forked from grogy/code.cpp
C++ read from binary file.
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
ifstream in;
in.open("in.bin", ios::in | ios::binary);