- VisualStudio 2019(MSVC)
- CMake 3.16.0
- libcurl 7.68.0
githubからダウンロードして来たソースを元にCmakeを開く。 Configureを押して VisualStudio 16 2019 に設定する。
# include <Siv3D.hpp> // OpenSiv3D v0.4.3 | |
# include "HTTPClient.hpp" | |
# include "SasaGUI.hpp" | |
void Main() | |
{ | |
if (!HTTPClient::InitCURL()) | |
{ | |
return; | |
} |
#include "HTTPClient.hpp" | |
namespace s3d | |
{ | |
HTTPClient::HTTPClient() | |
{ | |
} | |
size_t HTTPClient::CallbackWrite(char* ptr, size_t size, size_t nmemb, Array<Byte>* stream) | |
{ | |
const size_t dataLength = size * nmemb; |
# include <Siv3D.hpp> // OpenSiv3D v0.4.0 | |
void Main() | |
{ | |
Scene::Resize(640, 320); | |
Window::SetStyle(WindowStyle::Sizable); | |
Scene::SetBackground(ColorF(0.8, 0.9, 1.0)); | |
# include <Siv3D.hpp> // OpenSiv3D v0.4.0 | |
# include <utility> | |
void Main() | |
{ | |
Window::Resize(1800, 1000); | |
Scene::Resize(1800, 1000); | |
Scene::SetBackground(ColorF(0.8, 0.9, 1.0)); |
#include <iostream> | |
namespace a{ | |
class b{ | |
public: | |
int c; | |
}; | |
} | |
int main(void){ |
#include <iostream> | |
#include <array> | |
int main(void) { | |
std::array< std::array< int, 3 >, 3 > arr1; | |
std::array< std::array< int, 3 >, 3 > arr2 = {}; | |
std::array< std::array< int, 3 >, 3 > arr3 = { 1,2,3,4,5,6,7,8,9 }; | |
for (int i = 0; i < 3; i++) { | |
for (int j = 0; j < 3; j++) { |
#include <iostream> | |
class Car { | |
public: | |
double oil; | |
double mileage; | |
void run(){ | |
double run_long; | |
std::cout << "走ってみる、どのくらい走るか入力する:"; |
#include <iostream> | |
void hello(void){ | |
std::cout << "Hello World!!" << std::endl; | |
return; | |
} | |
int max(int a,int b){ | |
if(a >= b){ | |
return a; |
出力例 | |
1 | |
1 | |
2 | |
3 | |
5 | |
8 | |
13 | |
21 | |
34 |