LoginSignup
4
1

More than 5 years have passed since last update.

AOJ(競技プログラミング)をC言語で解く。 [xcodeでscanfを使うとき

Last updated at Posted at 2018-03-14

C言語を勉強し始めて、AOJで問題を解いている。

コードはxcodeで書いているのだけれど、scanfが入っているときにどのようにキーボードから入力したらいいのかわからなかったので調べた。

スクリーンショット 2018-03-14 9.47.02.png

コードをとにかく書いて、左上の三角を押して実行
スクリーンショット 2018-03-14 9.52.48.png

この警告が出てくるのでパスワード入れて「許可」

成功すれば

スクリーンショット 2018-03-14 9.54.20.png

右下に
スクリーンショット 2018-03-14 9.55.13.png
左にある上三角を押して

ここを開くと
スクリーンショット 2018-03-14 9.56.21.png

この右側のAll Outputの所にscanfで入力したいものを打ち込んでenterキーを押すと
スクリーンショット 2018-03-14 10.00.14.png

結果が出力された。

4
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
1