2017-01-01から1年間の記事一覧
はじめに std::vector に独自クラスを入れる場合、コピーコンストラクタとムーブコンストラクタのいずれかが必要になります。 コピーコンストラクタについては、このページに詳しく書かれています。 http://nobunaga.hatenablog.jp/entry/2016/07/03/230337 …
MFCで、ファイル選択ダイアログを学習します。 開発環境は、Visual Studio 2015 Communityです。 ■単一選択ダイアログと複数選択ダイアログを作成します。 (1) ダイアログベースでプロジェクトを作成し、次のようなダイアログを作成します。 (2) エディット…
MFCアプリケーションの学習をする必要が発生したため、記録します。 開発環境は、Visual Studio Community 2015です。 まずは、プロジェクト作成方法です。 ファイル⇒プロジェクトを選択し、MFCアプリケーションを選択します。プロジェクト名は、わかりにく…
プログラムをメモします。 #include <vector> #include <iostream> #define BIG_BUFFERSIZE 1024 using namespace std; template <typename List> void split(const std::string& s, const std::string& delim, List& result) { result.clear(); using string = std::string; string::size_typ</typename></iostream></vector>…
C++で、stdinから文字列を読み込む方法をメモします。 /////////////////////// // stdin input example // using cin.getline /////////////////////// #include <iostream> using namespace std; int main() { while(cin) { getline(cin, input_line); cout << input</iostream>…
Visual Studio Communityで、C# Windows Formのプロジェクトを作成します。 C# Windows FormからOutlookにアクセスするためには、ライブラリの追加が必要です。 Microsoft.Office.Core Microsoft.Office.Interop.Outlook もし、Officeのインストールを実施し…
文字列の分割には、strtokだとVisualStudioのコンパイラでエラーとなるので、strtok_sを使用します。 #include <stdio.h> #include <string> //strtok関数用 #include <stdlib.h> //strtoul関数用 int main(void) { char ch1; // 変換後の取得値 char *p1, *p2; // char型ポインタワーク</stdlib.h></string></stdio.h>…
以下のSTGゲーム勉強は、サイトがとてもおすすめです。 龍神録プログラミングの館 Microsoft Visual Studio Community 2015の環境でのDxLibの使用方法は以下のサイトをご確認ください。 DXライブラリ置き場 使い方説明 現在、サイトを用いて学習中。