Menu
Coddy logo textTech

Practice Lab #2

Lesson 11 of 23 in Coddy's C++ File Handling course.

challenge icon

Challenge

Easy

Write 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