When this runs I want to not be able to enter any spaces in cin what format specifier can I use for this? 
Is their anything in <string> that lets me do this?
#include <iostream>
#include <string>
using namespace std;
int main(){
    string yy;
    cin >> string;
    /*when this runs I want to not be able to enter any spaces in `cin`
    what format specifier can I use for this? is their anything in      `<string>` that lets me do this?
    */
    return 0;
}