Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion debug1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ int count_vowels(string str) {
int main() {
string input;
cout << "Enter a string: ";
cin>>input;
getline(cin, input); //changed input format to accomodate words after spaces
cout << "The number of vowels in the string is: " << count_vowels(input) << endl;
return 0;
}