for Robot Artificial Inteligence

2. Creating Project.

|

#include <iostream>
#include <bits/stdc++.h>

using namespace std;

ifstream f("data.in"); // reading a file named"data.in"
ofstream g("data.out"); // writing a program result of control input

int main()
{
    int a, b, sum;

    f>>a>>b;
    sum = a + b;

    g<<sum;

    return 0;

}

Comments