here's my code, don't see why it doesn't print out
#include <iostream>
using namespace std;
int main()
{
cout<<"enter a passage into input to find out how difficult it is to read\n";
string passage;
cin>>passage;
char letter;
int space=0;
while(letter!='\n')
{
if(isspace(cin.peek())&&letter=='\n')
{
cout<<"from space";
space=space++;
}
}
cout<< space;
return 0;
}