#include <iostream>
#include <fstream>
#include <string>
using namespace std;
main()
{
    bool string1[20];
    cout << "Enter string: ";
    cin >> string1;
    int counter = 0;
    int length;
    length = strlen(string1);
This is incomplete code, but my question is why am I getting a compiling error when using cin? It says:
error: no match for ‘operator>>’ (operand types are ‘std::istream {aka std::basic_istream<char>}’ and ‘bool [20]’)
On this line:
 cin >> string1;
I'm not sure how to fix this.
 
     
     
    