0
#include <iostream>
#include <string>

using namespace std;

int main()
{
    cout<< "the string is set to use"<<endl;
    string name;
    multiple>>
}

How do i make a complete two words input in c++ so at least this will reduce certain stress of entering variables twice, not cool.

Georgegoldman
  • 33
  • 1
  • 6
  • 1
    [`std::getline(std::cin, name);`](https://en.cppreference.com/w/cpp/string/basic_string/getline) – brc-dd Sep 08 '20 at 05:59
  • 4
    Please clarify what you want to do exactly. Sounds like you want to input a string and split it along spaces? Also I don't understand your code snippet (which also doesn't look like it compiles). – Adomas Baliuka Sep 08 '20 at 06:01
  • _@GEORGE_ Pick one of the duplicate links or clarify what exactly you want to do please. – πάντα ῥεῖ Sep 08 '20 at 06:11

0 Answers0