0660デフォルトの名無しさん
2019/05/24(金) 10:25:59.77ID:Ph/OCthxMITライセンスな〜〜っ。
暇だから書いたけど、自分の環境のVS2017だとこれしかわからない。
環境依存ちょびっとあるからご注意。
#include <iostream>
#include <cstdint>
#include <limits>
#include <thread>
#include <conio.h>
int main() {
for (std::intmax_t i = 0; i < std::numeric_limits<std::intmax_t>::max(); i++) {
std::cout << i << "\r";
if (_kbhit()) {
_getch();//output first key in.
std::cout << "Wait key in."<<"\r";
_getch();//wait next key in.
std::cout << " "<<"\r";
}
}
return 0;
}