49,761 Topics
| |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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; … | |
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 … | |
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 … | |
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 … | |
[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; // … | |
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 … | |
[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 << … | |
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 … | |
[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 … | |
how to convert integer value to ascii | |
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 … | |
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 | |
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 … | |
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 = … | |
can someone show me an example of how can I use SFC_CALC_SIGNAL_MAX in C++ | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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? | |
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, … | |
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 … | |
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 |
The End.