- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 3
- Posts with Downvotes
- 2
- Downvoting Members
- 3
13 Posted Topics
Hello all, I am having a hash_map with key: char *. I have defined it like this: [CODE] struct eqstr { bool operator()(const char* s1, const char* s2) const { return strcmp(s1, s2) == 0; } }; ... hash_map<char *,map<uint16_t,set<float>>, hash<const char *>,eqstr> symbol_hm; [/CODE] but I get an error … | |
Hello everyone, I am using the code in the following website ([url]http://www.adp-gmbh.ch/win/misc/sockets.html#test[/url]) that is a ready Socket and Client class for connecting to a website. But in the Client.cpp code, if I put a query for Google instead of the host name in the send() method, I get a bad … | |
I cannot figure out what I'm doing wrong in the following code: [CODE]char* charArray[3]; strcpy(charArray[0],"wn"); strcpy(charArray[1],"chair"); strcpy(charArray[2],"-over");[/CODE] Thanks a lot for the help! | |
I am using hash_map<string, Word *> dict to store my Word objects. Each Word is a class that inherits from my Node class. The value in the label variable in the Word class is read from a text file. Once I start adding the objects to the dict structure, I … | |
Hello everyone, Can somebody tell me how can I start a new tread in the database category? The new interface got me confused... Thanks! | |
Hi everyone, I have been using System.Diagnostics.Process.Start("fileName.pdf"); command in order to print my pdf docs in my web app. The thing is, it works perfect on my localhost, but once I upload the code on the server, the files no longer are opened. The path to the file in the … | |
Hi, I need to have a grid view that will select only few columns from two tables in the database and show them. I have my own data layer implemented, i.e. I have functions that are pulling all the tuples for a satisfied condition and returning them back to me. … | |
I want to call a javasript function once a checkbox is checked and then enable a button in the function. How can I assign the javascript function to the check box event? Thanks! | |
I am implementing BFS, A*.... I got confused by all the terms used in the books. Like, what would be th difference between a search node and a state node, or a search tree and a search graph? I have two files as input, a nodes file (coordinate with id … | |
Before I proceed with the code implementation, I need to find the error that this program initiates. I can't figure out the solution, I guess thats what happens after not using c++ for 4 years... The compilation errors I'm getting are all of this type (11 of them): Error 9 … | |
I cant find the error here.. [CODE]#include "stdafx.h" #include <deque> #include <list> #include <queue> #include <iostream> #include <fstream> #include <string> #include <sstream> #include <set> using namespace std; char file_name[15]; char links_file[15]; char alg[15]; char with_list[15]; char new_name[15]; int depth; long idstart,idgoal; class Action { public: long start_node; long end_node; int … | |
Re: Just write the code in the class and it will work. | |
Re: Its because random numbers are not randomly generated... |
The End.