All pastes #927390 Raw Edit

Miscellany

public text v1 · immutable
·published 2008-03-04 07:42 UTC
rendered paste body
#include <cstdlib>
#include <iostream>
#include <string>
#include <fstream>

using namespace std;

int main(int argc, char *argv[])
{
    ofstream love("test.out");
    //love.open("test.out");
    ifstream fin("test.in");
    
    int a,b;
    
    fin >> b >> a;
    love << a+b <<"\nYes it did work" << endl;
    love.close();
    return 0;
    system("EXIT");
    

}
/*___Files____
//test.in
12 21

//test.out
2
Yes it did work
*/