49,761 Topics

Member Avatar for
Member Avatar for sciwizeh

Hello all, is there simple way to check if a multimap contains a value, or am I going to have to loop through all pairs? thanks

Member Avatar for sciwizeh
0
98
Member Avatar for blind122

I dont understand why it doesnt work like the first vector i can input ok but the program just ends right after that, like it wont let me input values for the second vector. [CODE]#include<iostream> #include<vector> using namespace std; int main () { vector<int> a1; vector<int> b1; cout << "Enter …

Member Avatar for caut_baia
0
89
Member Avatar for DealthRune

Okay, I'm in need of MAJOR help. I'm trying to get my own private server up, but in order to do so, I need Visual Studio 2008 C++ Express Edition. I've went to the Windows homepage and found a download for Visual Studio 2008 C++ Express Edition. When I click …

0
83
Member Avatar for theblastedfool

Hello guys, I have been working on this code for a few hours and I almost have everything working right. This project that I am working on is basically a password creator where a person enters their password and the program checks it to make sure that it meets certain …

Member Avatar for theblastedfool
0
108
Member Avatar for smcp

Hey guys, I'm currently working on an assignment to create a C++ Employee class that can compute the net pay salary of hourly based employees and also find the average net pay for a small company. As far as I know, I've done everything that I am required, but when …

Member Avatar for smcp
0
144
Member Avatar for bgx90

I need another set of eyes to look over this code. I must be overlooking something. I cannot figure out what the compiler's complaint is. When I try to compile, GCC gives me this error: sim.cpp: In function âint main()â: sim.cpp:21: error: ârunSimulationâ was not declared in this scope Can …

Member Avatar for NathanOliver
0
58
Member Avatar for sidra 100

plz chk my code to do currency conversion # include <iostream.h> # include <conio.h> main () { cout<<"Wellcome To VU Money changer"; cout<<"\n"; // data type initillizing char con,coninto,op; float amount; do { //discription print message on consol what program contains cout<<"Please select currencies that you want to Exchange :"<<endl; …

Member Avatar for mrnutty
0
90
Member Avatar for achieve_goals

Hi! I am having trouble many a queue of Nodes. I have a class of Queue (user defined - as I am not allowed to STL), with methonds as enqueue(), dequeue() and getFront(). And also I have a class of Node with data and frequency in it. Now I have …

Member Avatar for mrnutty
0
89
Member Avatar for Harrybarry

Hey all, I’ve got a question about Facebook. I’ve read in an article that Facebook could also be written with C++ and would work more efficient than what’s currently happening. I’ve heard of numbers with 75% reduction in for example servers. I would like to ask the experts here for …

0
26
Member Avatar for ranvi

Hi, I need some help in converting the struct pointer to void pointer, since I do not want to expose the whole structure coming from one interface to the other. I need some help in coding [B]callSetInt()[/B] and [B]callSetString()[/B] methods in the below code. The set() method hides the structures …

Member Avatar for Salem
0
447
Member Avatar for pinsickle

[CODE]void Graph::writeShortestPaths (int first, ostream& outfile) { for (int i = 0; i < n; i++)// each vertex { currentDistances[i] = 999999; predecessors[i] = -1; toBeChecked[i] = true; } currentDistances[first] = 0; writeShortestPathsHeader (outfile, first); int pass = 0; while (moreShortestPathsToFind()) // see below { int minVertex = first; // …

Member Avatar for pinsickle
0
139
Member Avatar for dylank

Hey DaniWeb, I'm having a tough time with this piece of code: [CODE]string encrypt(string e) { for( int i=0; e[i] != '\0'; ++i ){ ++e[i]; if(e[i] == "{") { e[i] = "0"; } if(e[i] == ":") { e[i] = "a" } return e; }[/CODE] It should "encrypt" the string, using …

Member Avatar for dylank
0
227
Member Avatar for kneel

[code] #include <iostream> #include <list> #include <numeric> #include <algorithm> using namespace std; int main() { // create linked list of integers list<int> the_list; // input as requested cout << " Enter length of the list " << endl; size_t len; cin >> len; for(size_t i=0; i<len; ++i) { cout << …

Member Avatar for kneel
0
167
Member Avatar for pichi89

hey, I need to make a program that • Define a default array size. the size HAS to be 15. • Define a function “ResizeArray” which virtually increase the size of an array, by creating a new array with the size of the old array plus the default array size …

Member Avatar for pichi89
0
129
Member Avatar for chathuD

[CODE]class building { public: int length, width, height; string purpose; string name; private: float volume; int num_windows; }; building office; void main () { // The following statements are legal: office.name = "Bleedem, Woffle & Scarper (Lawyers)"; office.height = 34; cout <<"height is"<< office.height <<endl; cout << " name is …

Member Avatar for chathuD
0
84
Member Avatar for Nagalakshmi J M
Member Avatar for Lukezzz

I have compiled a project with "Build Solution" in VC++ 2008 Express Edition wich have worked fine all the time. Suddenly without doing any changes nowhere after the last F7 (1 minute ago), I do get this Error message: [B]1>Linking... 1>LINK : fatal error LNK1104: cannot open file 'E:\Documents and …

Member Avatar for green_frog
0
5K
Member Avatar for Pawello

Hello, I have a problem. In my program i use structure: [CODE]struct pole { pole *pole1; pole *pole2; pole *pole3; pole *pole4; pole *pole5; pole *pole6; pole *pole7; pole *pole8; };[/CODE] I want to make a function which would use correct pole(pole1, pole2...pole8) depending on parametres

Member Avatar for mrnutty
0
115
Member Avatar for 1manik

Hi, I have two problems. I have this program: But I dont know how can I do: 1 that I finish this program and save text to .txt by press of ENTER 2 that window, in which will be field to write text, will be illustrated in main window, but …

0
49
Member Avatar for amns

please solve the problem Problem Statement: Exchange of currency rates write a program for Currency Exchange rates. The basic idea is that user/reader will be able to interchange different currencies using our program. User will have three options i.e. Pakistani Rupees, US 1 Euro = 112 Rupees. 1 Dollar = …

Member Avatar for Salem
-5
106
Member Avatar for inisca

can someone show me an example of how can I use SFC_CALC_SIGNAL_MAX in C++

Member Avatar for Salem
0
201
Member Avatar for rugae

Learning about all functions in <iomanip> and was testing out setprecision() and found that something weird is going on...? I did try to do a search on setprecision() limitatations or similar keywords but can't seem to find the right site... can someone please tell me what's going on? [code] double …

Member Avatar for barevhayerable
0
516
Member Avatar for chathuD

guys... i am new to c++ and i have write litle consol aplication and the problum is after compiling hte code the cmd is clossing verry fast. so what i need to do is i need to stop closing the CMD verry quickly. in c# i use "console.readline();" so plzz …

Member Avatar for chathuD
0
84
Member Avatar for iammfa

Hi, The excercise I'm trying solving it today is printing the numbers from (32 to 256) and the ASCII values in table, I completed the code but the console appear one value only.. :( The excercise: [CODE]ASCII table Make a program that writes a table of all characters with values …

Member Avatar for jonsca
0
128
Member Avatar for nickguletskii

I am trying to use Lua in one of my C++ projects, but I get errors: [QUOTE] **** Build of configuration Debug for project MacroLua **** **** Internal Builder is used for build **** g++ -LD:\Program Files\Lua\5.1\lib -oMacroLua.exe MainLuaTest.o MainLuaTest.o: In function `main': C:/Users/s/MacroLua/MacroLua/Debug/../MainLuaTest.cpp:11: undefined reference to `luaL_newstate' C:/Users/s/MacroLua/MacroLua/Debug/../MainLuaTest.cpp:14: undefined …

Member Avatar for nickguletskii
0
416
Member Avatar for iammfa

Hi, The following is an exercise in c++, I solved it but I doubt my solve is not right ..can someone tell me is my solve right or wrong especially the compiler didn't give me any errors [I][B]The exercise:[/B][/I] first look the attached image, The acceleration of a sleigh sliding …

Member Avatar for jonsca
0
1K
Member Avatar for skorm909

ok so i want to make my code in a window instead of c++ how would i do this? can someone give me a example?

Member Avatar for tonymuilenburg
0
73
Member Avatar for doolsta111

Hi guys, I am having great difficulty in reading a text file char by char and storing them in a linked list. I started off with simply attempting to read from file char by char, and that worked fine. But when attempting to store the file into a linked list, …

Member Avatar for mitrmkar
0
243
Member Avatar for s_ellis88

I need 5 T or F questions with the option to input the answer and then add the correction to answer if right or wrong. i just need random questions! I am thinking of going to school for computer programming and my FIL is a programmer. [code] #include <iostream> #include …

Member Avatar for tonymuilenburg
0
105
Member Avatar for prade

hi.... i have a c++ project on dev c(with winbgim)...i would like to link it to visual basic 6......i want some clear steps to be followed for linking dev to vb

Member Avatar for kvprajapati
0
259

The End.