2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-21 17:12:22 +00:00
Files
python/pyste/example/header_test.h
Bruno da Silva de Oliveira 7d5c453f59 no message
[SVN r17825]
2003-03-12 01:39:28 +00:00

24 lines
367 B
C++

#include <iostream>
#include <map>
#include <string>
enum choice { red, blue };
void print_choice(choice c)
{
std::map<choice, std::string> choice_map;
choice_map[red] = "red";
choice_map[blue] = "blue";
std::cout << "You chose: " << choice_map[c] << std::endl;
}
struct C
{
choice c;
void print_()
{
print_choice(c);
}
};