Questions tagged as 'map'

1
answer

How to use a template as a type on a map?

Is there any way to use template as type in a map in C ++ 17? template<typename T> std::map<std::string, T/* tipo desconhecido, pode ser qualquer tipo */> map_exemplo;     
asked by 01.10.2018 / 18:39
1
answer

How to return values using .map () in JavaScript

I'm trying to make a .map() method, but I'm not getting it. My last code was this: var double = x => x * 2; function filtro(funcao, numeros) { let arr = []; for (let i = 0; i < numeros.length; i++){ arr.push(nu...
asked by 27.01.2018 / 00:11
1
answer

Android volley post compilation error map

Hello, The code below only compiles if I comment the map section, but I need it to populate the parameters of the post.    Erros: method onresponse onerrorresponse does not override its superclass       There is no applicable Const...
asked by 23.12.2017 / 21:46
1
answer

Java Stream convert MapString, Obj to ListObj

I have this object filled: Map<String, List<LogLine>> logMap = new TreeMap<>(); And after making a filter, I'd like a flat list of it, but I can only create list list List<List<LogLine>> foo = logMap.ent...
asked by 20.12.2017 / 09:00
1
answer

Accessing methods of a class in a vector of pointers

Right, I have a Package class with a public method double calculate_cost (). I need to create a std::map<string, std::vector<Package*>> in which I can iterate through the vector and save the return of the calculate_cost () m...
asked by 05.10.2018 / 23:37
1
answer

Google Maps Api in the android app does not work in the Play Store

I developed an Android application that shows google maps in one of the ativitys, the tests works well, but the app published in the Play Store does not show the map. I generated the Google Maps API key, restricted it, and put both google_maps_a...
asked by 05.10.2018 / 15:28
2
answers

Map navigation intent for all apps [mount route]

I'm looking for a way to give users the option to select which app to mount their route (waze, google maps, uber ...), but it just does not work in google maps. When I choose it, it only shows the place on the map, but does not open the navig...
asked by 21.08.2018 / 14:34
0
answers

How to leave the oceans blank in the basemap?

The following code produces a map with a color scheme. I need the colors to be just on the continents, leaving the oceans blank. How do I get this? Excel file: link dados=['meteo_model.xlsx'] #vai buscar os dados ao ficheiro excel sheets=...
asked by 17.04.2018 / 00:30
1
answer

How to use map / create keys to store cycles c / c ++?

What is the most efficient c / c ++ framework I can use to create and store cycles, so that I ensure that repeated cycles are not stored? I have a struct CYCLE, such that: struct CICLO { vector<Arco> rota; float COST; } struc...
asked by 27.03.2018 / 16:25
1
answer

Convert hash arrays

I'm giving some maintenance on a perl system (language that I'm noob) and I needed to create a new report module where I need to solve the following situation: I have 2 arrays with the following formats @head = ("nomeinstituicao", "cnpjinst...
asked by 28.07.2018 / 00:18