- .gitignoreに対象のファイルを追加
- git rm --cached [filename]
- revertで歴史を書き換える
- ブランチぶっ飛ばして入れ替えるなんてしない
- git commit --amendで直前のコミットを書き換え
#include <iostream> | |
#include <vector> | |
#include <random> | |
class Board { | |
public: | |
Board() { | |
//容量確保 | |
dat.resize(9); | |
for (int i = 0; i < 9; i++) { |
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Data; | |
using System.Drawing; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Windows.Forms; |
#include <Siv3D.hpp> | |
#include <deque> | |
using namespace std; | |
class Bullet { | |
public: | |
Bullet(Vec2 pos, Vec2 vec, Color color): pos(pos), vec(vec), color(color) {} | |
void move() { | |
pos += vec; |
されるのだけど、これで困るのがイテレータを回してる時にpush_backしたいとき。
解決法としては
Ubuntu14.10にて、以下の通りに。 2.2.0がコケる何で。とりあえず1.9.3を入れる。
$ git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
$ echo 'eval "$(rbenv init -)"' >> ~/.bashrc
$ git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
$ rbenv install 1.9.3-p551
class Actor { | |
public: | |
Actor() = default; | |
virtual ~Actor() = default; | |
virtual void update() = 0; | |
virtual void draw() = 0; | |
void kill() { enable = false; } | |
bool isEnabled() const { return enable; } | |
private: |
/* | |
* ブロック崩し | |
* written by yashihei | |
*/ | |
enchant(); | |
//グローバル変数 | |
var game = null; | |
//定数 |
#include <iostream> | |
using namespace std; | |
template <class T> | |
class Stack { | |
public: | |
static const int STACK_SIZE = 100; | |
Stack() {sp = 0;} | |
void push(const T&); |