Practice Lab #2
Lesson 11 of 23 in Coddy's C++ File Handling course.
Challenge
EasyWrite a program that for every line in the file messages.txt will output the number of vowels in each line. (a, e, i, o, u)
Input
Hello, World!
How are you doing?
Output
3 7
Try it yourself
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
// Enter your code here
return 0;
}All lessons in C++ File Handling
3Reading from Files
Reading from a fileReading Line by LineReading Char by CharReading Variable by VariablePractice Lab #2