Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct info {
- struct {
- int rodas;
- int motor;
- } lecarro;
- struct {
- int guiador;
- int volante;
- } lemota;
- struct {
- int limite;
- int voo;
- } leaviao;
- };
- #include <map>
- void funcao() {
- std::map < int, struct info> MyInfo;
- info Info;
- MyInfo[5] = Info;
- MyInfo[5].lecarro.motor = 5;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement