<commit_before><commit_msg>Commit of exercise 6.33.<commit_after>/**
 * @file
 *      exercise_06_33.cpp
 * @author
 *      <NAME>, <EMAIL>.<EMAIL>sson(at)gmail.com
 * @brief
 *      Exercise 6.33 from the book C++ Primer (5th edition).
 * @details
 *      Write a recursive function to print the content of a vector.
 */
#include<iostream>
#include<string>
#include<vector>

using std::cout;
using std::size_t;
using std::string;
using std::vector;

int print_vector_content(const vector<string> &vec, size_t size);

int main() {
    const vector<string> b_stroustrup_quote = { "C", "makes", "it", "easy",
            "to", "shoot", "yourself", "in", "the", "foot;", "C++", "makes",
            "it", "harder,", "but", "when", "you", "do,", "it", "blows", "away",
            "your", "whole", "leg." };
    
    print_vector_content(b_stroustrup_quote, b_stroustrup_quote.size());
    
    return 0;
}

int print_vector_content(const vector<string> &vec, size_t size) {
    if(--size)
        print_vector_content(vec, size);
    cout << vec[size] << " ";
}
{'fraction_non_alphanumeric': 0.18147448015122875, 'fraction_numerical': 0.011342155009451797, 'mean_word_length': 3.5450643776824036, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6335124', 'n_tokens_mistral': 390, 'n_tokens_neox': 376, 'n_words': 92}