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.
次のように、パターンに追加するだけで、一致したトークンをスキップscanfできます。*
scanf
*
int first, second; scanf("%d %*s %d", &first, &second);
と同等のアプローチはありstd::cinますか? 次のようなもの (もちろん、追加の変数の使用は控えます):
std::cin
int first, second; std::cin >> first >> `std::skip` >> second;