This file contains hidden or 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 <cstdio> | |
| #include <cstdint> | |
| #include <cinttypes> | |
| void MoveCursorTo(std::uint32_t line, std::uint32_t column) noexcept | |
| { | |
| std::printf("\x1B[%" PRIu32 ";%" PRIu32 "H", line, column); | |
| } | |
| void SetBackgroundColor(std::uint8_t color) noexcept |
This file contains hidden or 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
| bool SkipIfChar(const char* str, const char** newPos, char c) | |
| { | |
| const char* pos = str; | |
| while(*pos == c) | |
| ++pos; | |
| *newPos = pos; | |
| return pos != str; | |
| } | |
| bool SkipIfNextChar(const char* str, const char** newPos, char c) |
This file contains hidden or 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 <memory> | |
| #include <cassert> | |
| #include <Windows.h> | |
| struct FileHandle | |
| { | |
| ::HANDLE fileHandle; | |
| //implicit | |
| FileHandle(::HANDLE h) noexcept |
This file contains hidden or 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 <variant> | |
| #include <string_view> | |
| #include <string> | |
| #include <stdexcept> | |
| #include <iostream> | |
| #include <range/v3/algorithm.hpp> | |
| #include <boost/format.hpp> | |
| using ValueType = std::variant<std::string, std::uint32_t>; |
This file contains hidden or 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
| "C:\Program Files\Java\jdk1.8.0_112\bin\java" -Didea.launcher.port=7535 "-Didea.launcher.bin.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA 2016.2.5\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.8.0_112\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_112\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_112\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_112\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_112\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_112\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_112\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_112\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_112\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_112\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_112\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_112\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_112\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_112\jre\lib\ext\zipfs. |
This file contains hidden or 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 <condition_variable> | |
| #include <thread> | |
| #include <iostream> | |
| #include <mutex> | |
| #include <queue> | |
| #include <chrono> | |
| using namespace std::literals; |
This file contains hidden or 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 <type_traits> | |
| #include <utility> | |
| namespace Yupei | |
| { | |
| //http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4387.html | |
| namespace Internal | |
| { |
This file contains hidden or 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 | |
| #include <d2d1.h> | |
| #include <d2d1helper.h> | |
| #include <dwrite.h> | |
| #include <tuple> | |
| #include <string> | |
| #include <limits> | |
| #include <cstdint> |
This file contains hidden or 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 <type_traits> | |
| template<bool I,typename T1,typename T2> | |
| struct If | |
| { | |
| typedef T1 type; | |
| }; | |
| template<typename T1, typename T2> |
This file contains hidden or 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 __STDC__WANT__LTB__ 1 | |
| #include<stdio.h> | |
| #include<stdlib.h> | |
| #include<stdbool.h> | |
| #include<stdint.h> | |
| #define CAP_INCR 10 | |
| int main(void) | |
| { | |
| uint64_t *pPrimes=NULL;//定义指针及变量 |