ゲームが作れるようになるまでがんばる日記

ゲーム制作のことを中心にゲームに関することを書いています

2010-11-03から1日間の記事一覧

swap,min,max

C++

C++の標準ライブラリには値を交換するswap,値の小さいほうを得るmin,値の大きいほうを得るmaxが用意されている。 swap - C++ Reference min - C++ Reference max - C++ Reference #include <iostream> using namespace std; int main(int argc, char** argv) { int a =</iostream>…