next up previous contents
Next: ファイルオープン, クローズ等 Up: プログラミング Previous: printf 文

scanf 文

対話的に行う場合には不要だろうが, C like に scanf を使うことができる.
#!/usr/local/bin/octave -qf
disp("input x n: ");
[a b] = scanf("%lf %d", "C");
disp(a);
disp(b);



Toru Sasaki
2001-07-23