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 <stdio.h> | |
#include <string.h> | |
#define MAX_PATH 260 | |
char* get_directory(const char *path) | |
{ | |
static char dir[MAX_PATH+1]; | |
int i; | |
for (i = strlen(path) - 1; i >= 0; i--) | |
{ |
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 <stdio.h> | |
#include <string.h> | |
#define MAX_PATH 260 | |
static char g_work[MAX_PATH+1]; | |
char* get_directory(const char *path) | |
{ | |
int i; | |
for (i = strlen(path) - 1; i >= 0; i--) |
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 <stdio.h> | |
#include <string.h> | |
#define MAX_PATH 260 | |
void get_directory(const char *path, char *dir) | |
{ | |
int i; | |
for (i = strlen(path) - 1; i >= 0; i--) | |
{ | |
if (path[i] == '/' || path[i] == '\\') |
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 <stdio.h> | |
#include <string.h> | |
#define MAX_PATH 260 | |
char *get_directory(const char *path, char *dir) | |
{ | |
int i; | |
for (i = strlen(path) - 1; i >= 0; i--) | |
{ | |
if (path[i] == '/' || path[i] == '\\') |
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 <stdio.h> | |
#include <string.h> | |
#define MAX_PATH 260 | |
char *get_directory(const char *path) | |
{ | |
char dir[MAX_PATH+1]; | |
int i; | |
for (i = strlen(path) - 1; i >= 0; i--) | |
{ |
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
#define _CRT_SECURE_NO_WARNINGS | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
static const int Offset = 2; | |
static const int MaxPath = 260; | |
static const int ReadSize = 1024 * 16; | |
static const char SpecialExt[] = "kkkkk"; | |
static enum Mode { Encrypt, Decrypt }; |
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 "Bmi.h" | |
#include <stdexcept> | |
namespace MyUtil | |
{ | |
Bmi::Bmi(const std::string name, const double height, const double weight) | |
:name_(name), height_(height), weight_(weight), bmi_(0.0) | |
{ | |
} |
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 "../BmiDll/Bmi.h" | |
#include <iostream> | |
#include <iomanip> | |
#include <vector> | |
using namespace MyUtil; | |
int main() | |
{ | |
std::vector<Bmi *> bmi; |
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 |