my-cool-project  3.1.0
Starter template for C++ projects built with Bazel
Loading...
Searching...
No Matches
main.cpp File Reference

Command-line front end for the greeter library. More...

#include <cstddef>
#include <iostream>
#include <span>
#include <stdexcept>
#include <string>
#include "lib/greeter/include/greeter.h"

Functions

int main (int argc, char *argv[])
 Entry point of the program.
 

Detailed Description

Command-line front end for the greeter library.

Usage: hello-world [name] [en|de|es|fr]. Prints a greeting for name (default "world") in the given language (default English).

Author
Your Name
Date
2025-04-28

Function Documentation

◆ main()

int main ( int argc,
char * argv[] )

Entry point of the program.

Returns
0 on success, 1 on invalid arguments.
Example
$ ./hello-world Alice fr
Bonjour, Alice!