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 <nana/gui.hpp> | |
#include <nana/gui/widgets/label.hpp> | |
int main() | |
{ | |
using namespace nana; | |
form fm; | |
label lb{ fm, rectangle{ 10, 10, 100, 100 } }; | |
lb.caption("Hello, world!"); |
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 <stdio.h> | |
#include <wchar.h> //wcslen | |
int is_contain_hangul(const wchar_t *str) { | |
const size_t len = wcslen(str); | |
const wchar_t start_ch = L'가'; | |
const wchar_t end_ch = L'힣'; | |
register int i; | |
for (i = 0; i < len; ++i) { |
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 <random> | |
#include <iostream> | |
using namespace std; | |
int main() { | |
std::random_device rd; | |
std::mt19937 rng(rd()); | |
std::uniform_int_distribution<int> uni(0, 10000000); | |
for (int i = 0; i < 10; ++i) { |
NewerOlder