Number / 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
$ ./test 2> err.log Good day. $ cat err.log Good night. $
#include <stdio.h> int main() { printf("Good day.\n"); fprintf(stderr, "Good night.\n"); return 0; }
#include <iostream> int main() { std::cout << "Good day." << std::endl; std::cerr << "Good night." << std::endl; return 0; }
class Main { public static void main(String[] args) { System.out.println("Good day."); System.err.println("Good night."); } }
print"Good day.\n"; # STDOUT print STDERR "Good night.\n";
puts "Good day." warn "Good night."
最終更新日 : 2005.05.29
Number / 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
copyright 2000-2005
ARGIUS project