Probably you mean taking input from the user and providing output to the user.
The following small example should help.
#include <iostream>
#include <string>
int main()
{
std::string name;
std::cout << "What's your name? ";
std::cin >> name;
std::cout << "Hello, " << name << "!" << std::endl;
return 0;
}std::cout allows you to write to the standard output while std::cin allows you to read from the standard input.