Filessä myfirst1.cc seuraavat rivit:
#include // define input and output functions
void main() // define main program
{
int a, b, sum, difference; // define four integer variables.
cout a; // read the first number.
cout > b; // read the second number.
sum = a b; difference = a - b; // calculate sum and difference.
cout
#include // define input and output functions
void main() // define main program
{
int a, b, sum, difference; // define four integer variables.
cout a; // read the first number.
cout > b; // read the second number.
sum = a b; difference = a - b; // calculate sum and difference.
cout
Vastaukset 1
Vanhimmat
iostreamit ovat historiaa.