I have written a program to take in a text message and convert it to binary. How do I get it to also convert the space (0010 0000) between letters?
int main(){
    cout << "Enter plaintext: " << endl;
    string plaintext;
    cin >> plaintext;
    
    for(int i=0; i < plaintext.length(); i++){
        bitset<8> plain(plaintext[i]);
        cout << plaintext[i] << plain << endl;
        plaintext[i] &= 0b11111111;
        bitset<8> 1st_enc(plaintext[i]);
        cout << 1st_enc << endl;
    }
    cout << "word:" << plaintext << endl;
    return 0;
}
 
    