Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
#include char option[64],line[256]; main() { printf(">>") (fgets(line, sizeof(line), stdin)) { if (1 == sscanf(line, "%s", option)) { } } print(option) }
たとえば、最初の単語のみを取得します
/>>ハローワールド
出力します
/>>こんにちは