#include <stdio.h> int main () { FILE *fin = fopen ("test.in", "r"); FILE *fout = fopen ("test.out", "w"); int a, b; fscanf (fin, "%d %d", &a, &b); /* the two input integers */ fprintf (fout, "%d\n", a+b); return(0); }
http://zhidao.baidu.com/question/58838894 // the usage of cd
http://shawnster.org/tips/upload-and-download-through-shell.html //download and upload with putty
%c是字符型char %f是浮点型float %ld是长整形long %s是字符串型char[]