2011年7月16日 星期六

cmd 實用指令

test.exe <input.txt> out.txt
text.exe 內容:
int main() {
    char ch[100] ="\0";
    cin >> ch ;
    cout << ch ;
}
input.txt: (丟入scanf的內容)
XDDD

執行(cmd) >> test.exe <input.txt> out.txt
產生:out.txt
XDDD

沒有留言:

張貼留言