freopen

#include<iostream>
#include<stdlib.h>
using namespace std;
int main()
{
    freopen("123.txt","r",stdin);
    freopen("abc.txt","w",stdout);
    int a;
    cin>>a;
    cout<<a*2<<endl;
    system("pause");
    return 0;
}

 

posted @ 2012-06-11 13:11  加拿大小哥哥  阅读(175)  评论(0编辑  收藏  举报