タグ

関連タグで絞り込む (2)

タグの絞り込みを解除

C++11に関するru_shalmのブックマーク (3)

  • C++0x基礎文法最速マスター - Faith and Brave - C++で遊ぼう

    C++0xになると、C++03でごちゃごちゃした部分がだいぶ すっきり書けるようになるので、C++0xでの入門はこんな感じになるよー、 という気持ちで書きました。 1. Hello World C++0xでの入出力には、IOStreamというものを使用します。 <<演算子でどんどんつないでいきます。 以下のプログラムの読み方は 「標準出力(cout)に"Hello World"という文字列と、改行(endl)を出力する」 です。 #include <iostream> int main() { std::cout << "Hello World" << std::endl; return 0; } Hello World coutとendlを使用するには、 #include <iostream> のように、という標準ライブラリのファイルを読み込む必要があります。 2. コメント 行コメント

    C++0x基礎文法最速マスター - Faith and Brave - C++で遊ぼう
  • Elements of Modern C++ Style

    C++11 feels like a new language.” – Bjarne Stroustrup The C++11 standard offers many useful new features. This page focuses specifically and only on those features that make C++11 really feel like a new language compared to C++98, because: They change the styles and idioms you’ll use when writing C++ code, often including the way you’ll design C++ libraries. For example, you’ll see more smart poi

    Elements of Modern C++ Style
  • C++0x 改め C++11 はじめの一歩 - Siv3D

    Article > C++0x 改め C++11 はじめの一歩 2011 / 8/ 14 2011年8月12日、これまで C++0x と呼ばれていた C++ の次期規格が C++11 (正式名称: ISO/IEC 14882:2011) と改まり、国際標準として承認されました。C++11 では 従来の C++ (2003年に策定されたC++03 ) とほぼ 100% の互換性を保ちつつ、多くの新機能や標準ライブラリが追加され、不便だった部分が改善されました。 現在のところ C++11 の新機能を「すべて」使える処理系は存在しませんが、今回の規格承認を受け対応がますます加速することは間違いありません。Visual C++ 2010 は、すでに C++11 の主要機能のうち「ラムダ式」「auto」「rvalue references」「static_assert」「nullptr」「declt

  • 1