Escolar Documentos
Profissional Documentos
Cultura Documentos
Programming Universals
output- the information produced by a program
input – the data provided by an outside source, such as keyboard, scanner
or file.
variables – is also an object although it is a much simpler object than a
monitor or file.
(<<) – the insertion operator, says “insert whatever is to my right into the
object cout.
#include<iostream>
using namespace std;
int main()
{
cout<< Hi! there!”;
return (0);
}
/*using a standard C++ compiler */
#include <iostream.h>
int main()
{
cout << “ Hi There !;
return (0);
}
#include<iostream>
using namespace std;
int main()
int age;
cout <<” How old are you?”;
cin >> age;
cout << “Your age is “<< age <<endl;
return (0);
similarly to how a single cout object can display multiple values, one cin
object maybe used to enter more than one value,
ex:
int score1, score2,score3;