#include #include #include using namespace std; typedef deque bindeque; // Return a C++ string as a char vector (bindeque) bindeque conv(const string& s) { return bindeque(s.begin(), s.end()); } int main( int argc, char* argv[] ) // IN IN { bindeque term; // Binary term (number deque) bindeque dupl; // duplicate of Binary term (number deque) string s = "This is a test"; term = conv(s); // Loop through each character with a for loop for (char ch: term) cout << ch; cout << endl; // Loop through each character using subscripts (operator[]) for (int i=0; i