Examness
Free practice questions for every exam
EN
English
Log In
Sign Up
Home
Practice
Exams
AI Teachers
Interview
Code Lab
Fun Learn
Contact
💬
Give feedback
Code Lab
/
C++
/
Beginner
Beginner C++
2 exercises · in teaching order
1
Largest in a vector
Write `int largest(const vector<int>& v)` returning the biggest element. The vector is never empty.
vector
loops
references
8m
2
Count the vowels
Write `int count_vowels(const string& s)` counting a, e, i, o, u - capitals included.
std::string
iteration
tolower
8m
💬
Give feedback