keep in mind that the >> operator likes to stop reading when it encounters white space. if you need to accept data that contains white space, you will need to use std::getline.
Type: Posts; User: Elkvis
keep in mind that the >> operator likes to stop reading when it encounters white space. if you need to accept data that contains white space, you will need to use std::getline.
you can also do this:
#include <iostream>
#include <string>
int main()
{
std::string s;
std::cin >> s;