int main() { map<string,size_t> count; string word; while(cin >> word) count[word]++; --------(1) for(auto it=count.begin();it!=count.end();++it) cout << it->first << ": "<< it ->second <<endl; I donot understand the code particularly the line (1) Could anyone can explainÉ

Member Avatar
Member Avatar
+0 forum 4

Hi Every body Is my answer correct for this question - Obtain the minimal form for the following Boolean expression using Karnaugh map. F(U, V, W, Z) = ∑(0, 1, 2, 3, 6, 7, 8, 9, 10, 13, 15) My answer - ![a48a42f649b78dce10e6abdea215d087](/attachments/small/2/a48a42f649b78dce10e6abdea215d087.jpg "align-left") There are four pairs and one quad that reduce as given below: Pair-1(m7 + m6) reduces to U’VW Pair-2(m8 + m9) reduces to UV’W’ Pair-3(m13 + m15) reduces to UVZ Pair-4(m8 + m10) reduces to UV’Z’ Quad (m0 + m1 + m2 + m3) reduces to U’V’ Simplified Boolean expression for given K-map is F(U,V,W,Z) = …

Member Avatar
Member Avatar
+0 forum 1

Hello everyone, i implement all the steps from this tutorial http://wptrafficanalyzer.in/blog/android-geocoding-showing-user-input-location-on-google-map-android-api-v2 it works fine for me. shows map but when i enter the location in the textbox and hit find button the app restart and don't go through the specified location. please tell me the solution...

Member Avatar
Member Avatar
+0 forum 1

the basic idea is that i have a config file where i need to take entries in different formats(the key is always a string and the value could be any type: int, float, string etc) from and the file has the following style: firstentry 1.5 secondentry 35 thirdentry somestring and i have this code to try to read int values from the entries but it gives me a lot of errors: #include <iostream> #include <fstream> #include <sstream> #include <string> #include <map> #include <Windows.h> using namespace std; map<string, stringstream> entries; int ReadInt(const string& key) { int value; stringstream SS; for(auto i …

Member Avatar
Member Avatar
+0 forum 2

Suppose I have a set of machines whose ip addresses are changing, say every 10 mins, then before making the tcp connect call (from a client) how do I make sure all the switches and routers have updated their mac Address and Ip Address mapping correctly and that it is latest and correct? Since I need to make sure the tcp connects to the machine which is having a particular Ip Address,Can I send some application oriented tcp packet which broadcasts in the network and let the switches and routers update their mac Address and Ip Address mapping so that …

Member Avatar
Member Avatar
+0 forum 14

This should change the images and image maps then highlight them. But image maps don't seem to be working and higlighting doesn't work either, after clicking on the "go right" link at the bottm. How to make them work? http://www74.zippyshare.com/v/54618428/file.html

Member Avatar
Member Avatar
+0 forum 2

So, you've either bought the [brand new iPhone 5](http://www.daniweb.com/hardware-and-software/apple/apple-hardware-and-devices/news/433802/apples-disappointing-iphone-5-sells-out-within-the-hour) or have upgraded your existing iPhone to iOS 6 and discovered, like half the Internet it would appear, that the new Apple Maps which have replaced Google Maps are, to be polite, an utter and total stinking FAIL. I'm no Apple hater, in fact quite the opposite as I own and use an iPad 2 and an iPhone 4S on a daily basis. However, I'm not so much of a fanboy that I cannot call it as it is when Apple gets things very wrong indeed. ![dweb-mapfail](/attachments/small/0/dweb-mapfail.jpg "align-right") Thankfully, having fallen …

Member Avatar
Member Avatar
+3 forum 15

hello , i have facility to connect map drive in windows in my collage . but now when switched to linux(FEDORA) i can not found the option for map network drive ? can yo pls tell me how to connect map drive in linux(fedor and ubantu - specifically).?

Member Avatar
Member Avatar
+0 forum 1

Hey everyone, I don't have any code but I was wondering if it was possible to have a list of houses or properties for sale and have it connected to google maps to show the location. Is there anyway to do this in php? Sorry for the lack of knowledge. I was hoping to have a scrollable list on the left and on the right, display a map that showed those listings in map view. I'm not sure how to do this. Thanks in advance for any advice!

Member Avatar
Member Avatar
+0 forum 6

hi, I'm new in Java and Hadoop. I'm in need of MapReduce code for large EEG data file split in Java. Based on channels(electrodes attached on head) and time, data have to be splitted. In mapper file splitting takes palce and in reducer it process the splitted data. For parallel processing mapper give splitted data to different nodes. Mapper(master node) and slave nodes have reduser. I have an overview of mapreduce code that I given below. I'm quite sure that it may be wrong, because I'm new in Java. Please help me to write map and reduce code. //getfile(File location) …

Member Avatar
+0 forum 0

I've been having trouble with just the map area and the calendar piece of my website. But more focused on the map piece. The map does not want to load properly or won't load at all in the second tab of my jquery tabs. I need help, I think I may be missing just a small part of the code but here's the script. Please help me... <script> $(function() { $( "#tabs1, #tabs2" ).tabs( { show: function(event, ui){ // check if is "mappanel" and "map" is empty if (ui.panel.id == 'mappanel' && $('#map').is(':empty')) { // load map var myOptions = …

Member Avatar
Member Avatar
+0 forum 2

Who, what, or how is memory-mapped I/O and memory maps set up in computer systems for use? I will try and be as clear as possible, and I hope someone here has the knowledge to really understand what I'm asking thoroughly, and have some answer that's good enough to make sense for me and future readers. Here I go... Memory-mapped I/O and port I/O are two standard, and most used methods of accessing devices across a computer system, such as sound cards, video cards, disks, ROM, etc. I am a computer programmer, and I make it my best effort to …

Member Avatar
+0 forum 0

I am doing huffman coding and I have made the tree. Now I am required to traverse the tree to create bit strings associated with the characters. Then I will put the bit string and char into a map to use with encode/decode. I have been working on this for days and could really use some help. Thanks for any help you can offer! map<char, string> build_encoding_map(freq_info*& huffman_root) { map<char, string> ret; string char_code; char symbol; if (huffman_root->left == NULL && huffman_root->right == NULL) { cout << "Your tree is empty." << endl; } else { while (huffman_root->is_leaf = false) …

Member Avatar
Member Avatar
+0 forum 1

my google map works very well except that the language is not English but Chinese, I need it to be default in English, and anoter problem is infobox size isa little big than what I need, pls see the attached shot, when I click the marker, the infobox display is over the map canvas. here is the code, and pls help me improve it if anyone here could. thank you in advance. eta name="viewport" content="initial-scale=1.0, user-scalable=no" /> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> <script type="text/javascript"> function initialize() { var latlng = new google.maps.LatLng(23.203984,113.251772); var settings = { zoom: 15, center: latlng, mapTypeControl: true, …

Member Avatar
Member Avatar
+0 forum 9

Looking for a politcal map showing countries. Colors can be added to the countries and information is shown when a region is selected. Do you know if there are any possible ways to do this? I avoid using Flash or Java.

Member Avatar
Member Avatar
+0 forum 2

I made three image hotspots on an image called Tab1. I want to click on each of them so it shows an UI next to Tab1. I used the jQuery example off their website since it's close to what I want, but what do I do when I want another button to show it's directed UI? Only #button and #effect are working. <script> $(function() { // run the currently selected effect function runEffect() { // run the effect (selectedEffect $( "#effect" ).show( "explode", options, 500); }; function runEffect2() { $("#effect2").show ("explode", options, 500); }; function runEffect3() { $("#effect3").show ("explode", options, …

Member Avatar
Member Avatar
+0 forum 1

Hi everbody, Seen posts saying simple dictionary in Java. Thought of sharing something may be useful for others. Here is a simple code if anyone interested. import java.util.*; public class Dictionary { public static void main(String[] args) { Map <String, String> dictionary; dictionary = new TreeMap <String , String>(); Scanner s = new Scanner (System.in); dictionary.put("discuss", "talk about something"); dictionary.put("fissure", "a narrow opening"); dictionary.put("spasmodic", "sudden but for short time"); System.out.println("Enter a word :"); String search = s.next(); if(dictionary.containsKey(search)){ System.out.println(dictionary.get(search)); } } }

Member Avatar
Member Avatar
+0 forum 2

I want to use below code for my google map, which is posted on internet and easy to understand, but it doesn't works. I hae get API key but when I replace the original key, I don't know which part of code I need to modified. how to get a latlag cooridinates cooresponding with my API key. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <title>Google Maps JavaScript API Example</title> <script src="http://maps.google.com/maps?file=api&v=2&key=abcdefg" type="text/javascript"></script> <script type="text/javascript"> //<![CDATA[ function load() { if (GBrowserIsCompatible()) { var map = new GMap2(document.getElementById("map")); map.setCenter(new GLatLng(37.4419, -122.1419), 13); } } …

Member Avatar
Member Avatar
+0 forum 6

I need to write a program that can draw stuff on a frame, let's say, trees. Their IDs, colors, positions etc. are in a **txt file**, line by line, the first word of the line is the name of their type which will be the name of the subclass. These parameters are given by the **"Trees" class**. The **drawing method of the various types of trees** are written in **subclasses**. So I thought I should make a **class for getting the data from the text file** and then pass the scanner as a parameter to the Trees class' constructor, where …

Member Avatar
Member Avatar
+0 forum 8

I want to show google map of selected theatre. first user have to select city then they have to choose theatre as per selected city. i have used drop down box for both. then, after selecting theatre, when he clicks on show button i want to show google map of that theatre. plz help me i have tried my best but i cant be able to do this. so plz help me

Member Avatar
Member Avatar
+0 forum 6

i want to represent some locations using a vector map. which website allows this kind of private map creation and sharing. tried arcgis they make it compuslory to make the map public to share. thanks

Member Avatar
Member Avatar
+0 forum 1

can any one tell me what is the difference between map and multimap container in STL? thanks in advance.. iam new to this topic..

Member Avatar
Member Avatar
+0 forum 1

hi guys. our teacher posted a bonus a while ago that has me scratching my head. he still will not show us how to do it. i was wondering if u guys could crack it. here are the instructions: [Click Here](http://prntscr.com/inqqz) there are also **2 ** files to supplement: **.txt** ocean,4 -500, -360 -500, 360 500, 360 500,-360 shallow, 16 -460, -140 -460, -140 -460, 165 -250, 315 50, 265 200, 215 400, 215 425, 150 450, -45 250, -145 200, -245 -100, -245 -150, -170 -200, -95 -250, -95 -300, -140 sand, 29 -400, -90 -450, 60 -400, 110 …

Member Avatar
Member Avatar
+0 forum 2

I have a class orders which has its instanced stored in a QMap/Map and has a Key:int, value:order pattern. Everything went fine until I started iterating through the map and accessing the functions of the class.First I was trying to print out the order objects values using it's getter methods for example: `orderSet.value(i).getDate().toString("dd/MM/yyyy"); //OrderSet is my map` This however produced an error `error: passing 'const order' as 'this' argument of 'QDate order::getDate()' discards qualifiers [-fpermissive]` I then fixed this by adding 'const' to the getter methods and the previous line of code would successfully run and print out that objects …

Member Avatar
+0 forum 0

I’m making a program that will be like a search engine, similar to a map program. There will be a text box for the user to search for a location. The thing I don’t know is that the user has 4 different combinations that they may enter. For example: **N229** OR **n229** OR **N 229** OR **n 229**. I want the program to respond the same to all 4 possible combinations to show the same thing. Is it possible in any way to make this real?

Member Avatar
Member Avatar
+0 forum 2

This is working code. You will of course have to replace the directories used in this code with your own that will be unique to your particular situation. You also must have ArcGIS, and the newest version is 10 which will only work with python 2.6. There is plenty of comments in the code to try and help people understand what we area doing. I also much acknowledge the help of pyTony with his help in getting the csv file to work properly when spaces are involved and for Ene Uran's help for the initial bit of code that got …

Member Avatar
+0 forum 0

Dear all, I have a website in which I am using the following htaccess code to hide the file extension RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php I then manually removed the .php extension from the entire website. Now when I am generating a site map for many of my pages are getting generated twice. One with the php extension and one without the php extension. Can someone explain to me what is wrong and how to fix this? Thank you. Your help will be much appreciated. Regards

Member Avatar
Member Avatar
+0 forum 4

As a project after learning about classes, I'm trying to create a type of board game where the program tells you where all of it's pieces are, and then you tell it where you've moved your pieces, and then the AI moves its pieces accordingly. However I'm having a bit of trouble with a few aspects of the program, namely, how do I dynamically update a specific variable stored in a class (in this case, sold1.targx and sold1.targy)? I'm kind of at a loss since this is my first program to use a class. # The enemy foot soldier class. …

Member Avatar
Member Avatar
+0 forum 3

I have this code as shown below. I've modified a bit to update the markers dynamically according to xml file extracting from php mysql database. There's nothing wrong with the script. The only thing I would love to do is to move the marker smoothly instead of the markers flickering waiting for an updates.. I need some help on this one... <html> <head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> <meta http-equiv="content-type" content="text/html; charset=UTF-8"/> <button onclick="myFunction()">Try it</button> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> <script type="text/javascript" src="util.js"></script> <script type="text/javascript"> var infowindow; var map; var markersArray = []; function myFunction() { setInterval(function(){marker()},5000); } function initialize() { var …

Member Avatar
Member Avatar
+0 forum 1

I have a hashmap with key as unique word in string and value as count of duplicates word in string. I want to arrange the output by value. ex: String is "my name is my name and is my my". Output as: my 4 name 2 is 2 and 1 Plz help me achieving this.

Member Avatar
Member Avatar
+0 forum 1

The End.