This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string> | |
#include <iostream> | |
#include <vector> | |
#include <memory> | |
// ピザ | |
class Pizza { | |
public: | |
void setDough(const std::string& dough) { | |
dough_ = dough; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <fstream> | |
#include <iostream> | |
#include <string> | |
#define USE_MY_LIB_ | |
#ifdef USE_MY_LIB_ | |
// 偽物ライブラリ | |
namespace MyLib | |
{ | |
template |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <memory> | |
#include <string> | |
#include <iomanip> | |
class Foo { | |
private: | |
int a_; | |
int b_; | |
int c_; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
#include <stdexcept> | |
using namespace std; | |
template <typename T> | |
struct Node | |
{ | |
T value_; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"--------------------------------------------------------------------------- | |
" 検索の挙動に関する設定: | |
" | |
" 検索時に大文字小文字を無視 (noignorecase:無視しない) | |
set ignorecase | |
" 大文字小文字の両方が含まれている場合は大文字小文字を区別 | |
set smartcase | |
" インクリメンタルサーチ | |
set incsearch | |
" 検索ハイライト |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#ifdef BMIDLL | |
#define BMIDLL_API __declspec(dllexport) | |
#else | |
#define BMIDLL_API __declspec(dllimport) | |
#endif | |
#include <string> | |
namespace MyUtil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <vector> | |
#include <unordered_map> | |
#include <algorithm> | |
#include <iostream> | |
auto main()->int | |
{ | |
std::ios::sync_with_stdio(false); | |
// vector -> map |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <vector> | |
#include <unordered_map> | |
#include <algorithm> | |
#include <iostream> | |
auto main()->int | |
{ | |
std::ios::sync_with_stdio(false); | |
// vector -> map |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <vector> | |
#include <unordered_map> | |
#include <algorithm> | |
#include <iostream> | |
auto main()->int | |
{ | |
std::ios::sync_with_stdio(false); | |
std::unordered_map<std::string, int> m {{"a",1},{"b",2},{"c",3},{"d",4}}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* reference | |
* http://f4.aaacafe.ne.jp/~pointc/log1227.html | |
* ・一行の中のデータは ,(カンマ)で区切る。行の終りは改行。 | |
* ・データがカンマやダブルクォートを含む場合は "(ダブルクォート)で囲む。 | |
* ・データの中のダブルクォートはそれをダブルクォート2個("")で置き換える。 | |
*/ | |
#include <stdio.h> | |
char *setvalue(char *p, char *field, int size) |
NewerOlder