49,757 Topics

Member Avatar for
Member Avatar for Clinton Portis

I was just wondering if ya'll knew of any dictionary libraries that I could include in one of my c++ projects. A quick google & forum search have offered solutions in other languages, such as python and c# but have seen nothing specific for c++. Thanks in advance. -d.w.

Member Avatar for Narue
0
107
Member Avatar for caltech

Here are my error messages: [INDENT]! "printStock(int, int)", referenced from: _main in main.o _main in main.o ! "Sales(int, int, double)", referenced from: _main in main.o Symbol(s) not found[/INDENT] Here is my code: [CODE]#include <iostream> #include <cmath> #include <iomanip> #include <fstream> using namespace std; void printStock(int,int); double Sales(int,int,double); int main () …

Member Avatar for caltech
0
127
Member Avatar for Ksadler818

Below is my home work problem. I don't want the answer, I am just looking for an example of how I can count the occurance of each number in the array numbers and assign that value to the count array. Thanks for your help!!!!!! *---------------------------------------… * Sample Output: *** start …

Member Avatar for WaltP
0
184
Member Avatar for PaulBird

[IMG]http://i1187.photobucket.com/albums/z394/crazythang/photo-1.jpg[/IMG] i try to compile a simple c++ hello world, and i get this, PLZ HELP i compile with g++...

Member Avatar for rubberman
0
304
Member Avatar for taumang

[ICODE]please forward the function to calculate the smallest and largest without using (if,while else) statements Input three different integers: 13 27 14 Sum Average Product Smallest Largest 54 18 4914 13 #include<iostream> using namespace std; int main() { int x,y,z; cin>>x>>y>>z; cout<<"the sum is ="<<x+y+z<<endl; cout<<" average is ="<<(x+y+z)/3<<endl; cout<<" …

Member Avatar for madifemo
-1
234
Member Avatar for iamthesgt

I am working on a VideoServer for my company, and in making the cgi files for the Web interface, I came across the following error: " invalid conversion from ‘int’ to ‘VideoOutputMode‘ " This was from line 4 of the below code, in the WebInterface file: [CODE]form_iterator vout_mode = formData.getElement("DisplaySettingsVOutMode"); …

Member Avatar for iamthesgt
0
3K
Member Avatar for manofhouse

Trying to convert from binary to hex but for some reason it keeps bringing up the error instead of the output [CODE] #include<iostream> #include<string> #include<cmath> using namespace std; void BintoHex (int[]); bool CheckBin (int[], bool); void Hexadecimal (int[]); string hexadecimal; void main() { int bin[4]; int binary; bool reentry = …

Member Avatar for Narue
0
230
Member Avatar for lauw0203

Hello :) I'm creating a license plate recognition system for my coursework at University. We need to use Binary trees, which I've done but the information needs to be stored in a file to read and write to. I've created some text files with XML tags in for Cars, Lorries, …

Member Avatar for lauw0203
0
177
Member Avatar for emreozpalamutcu

I found this code on the internet which is an good keylogger only issue it always types capitals how to make the keylogger recognise if its capital or not? ///////////////////////////////////////////////////////////////////////////////////////// [CODE]#include <iostream> using namespace std; #include <windows.h> #include <winuser.h> int Save (int key_stroke, char *file); void Stealth(); int main() { …

Member Avatar for Narue
0
124
Member Avatar for MarvelWolverine

Hi, I am writing a program to solve the 8puzzle, but for some reason i am having more difficulty with the structure than the algorithm.... I have two classes, a tree and node class. My main problem is to put the nodes in an array in the tree class. Second, …

Member Avatar for Narue
0
307
Member Avatar for lauw0203

Hello :) I'm having a couple of errors that i just can't get my head around so please help! [U]Error 1[/U] [B]warning C4018: '<' : signed/unsigned mismatch[/B] [CODE] for (int i=0; i<numVehicles; ++i) [/CODE] [U]Error 2[/U] [B]error LNK2019: unresolved external symbol _main referenced in function "int __cdecl console_main(int,char * * …

Member Avatar for lauw0203
0
188
Member Avatar for gladtoplay5

I am currently working on a program that takes one measurement of a circle and then gives the rest although i came across a problem while trying to make it loop back if you input an invalid number and my compiler keeps saying i have an error with were my …

Member Avatar for Fbody
0
277
Member Avatar for tomtetlaw

For some reason my resource file isn't getting compiled when I compile in VC++ 2010 express. Even when I make changes to the .rc file. This is the contents of it: [code=c++] #include <windows.h> #include <commctrl.h> #include "resource.h" LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US IDD_ASSERT DIALOGEX 150, 100, 180, 180 STYLE DS_MODALFRAME | …

Member Avatar for tomtetlaw
0
203
Member Avatar for amna masood

[CODE]#include<stdio.h> #include<iostream> #include<string> #include<conio.h> #include<fstream> using namespace std; class TESTnonteaching { private: string oname; string osir_name; int oid; public: int count3; void TESTadd(); void TESTsearching(); //void editing(); void TESTdisplay3(); void TESTsetcount3() { count3=0 ; } }; //ADDING STAFF// void TESTnonteaching::TESTadd() { if(count3>=3) {cout<<"NO SPACE LEFT"; return; } cout<<"ENTER YOUR NAME …

Member Avatar for ninjatalon
0
435
Member Avatar for arthurav

I want to use hash_map with struct values. The code is the following: [CODE]#include<stdio.h> #include<string.h> #include<hash_map> using namespace std; using namespace __gnu_cxx; struct row { int number; char type; }; struct eqstr { bool operator()(const char* s1, const char* s2) const { return (strcmp(s1,s2)); } }; int main() { hash_map<const …

Member Avatar for thekashyap
0
288
Member Avatar for HASHMI007

[CODE] /*i want to overloaded operator in my program. but i dnt know how to add overloaded + operator in this prgram. plzzzzzzzzz help me to solve this problem*/ #include<iostream.h> class rational{ private : int numerator, dnomenator ; void reduction(); public : rational () //default contructer { numerator=dnomenator=1; } rational …

Member Avatar for HASHMI007
1
174
Member Avatar for ispeakbinary

I am trying to create a class for doing number factorization on a random number, so I need to create a pointer to store the factors of the number. But when I compiled it, I got an error. My question is 1)What did I do wrong? I have a feeling …

Member Avatar for csurfer
0
156
Member Avatar for Ahmed sunny

i am a student of software. i need some help regarding this. am just a beginner so plz help me out....

Member Avatar for Adak
0
2K
Member Avatar for Kadence

I'm having issues because I am using the Boost library, but another library I am using for this project is #define'ing the term 'thread' as well. And addressing the boost thread as boost::thread in my code doesn't help. Here is what the other library's definitino is: [CODE]#if defined(_MSC_VER) # define …

Member Avatar for Kadence
0
285
Member Avatar for zero44

Could someone please explain what this does in the code above? [code] for (; num; num /= base) { // Note: abs() is done on each digit instead of the whole num // to preserve the full range of int result.insert(result.begin(), digits[abs(num % base)]); } [/code]

Member Avatar for daviddoria
0
99
Member Avatar for gladtoplay5

For an exercise we are supposed to: Write a C++ program that uses three user-defined functions (counting main () as one) and produces the following output: Three blind mice Three blind mice See how they run See how they run One function, called two times, should produce the first two …

Member Avatar for gladtoplay5
0
277
Member Avatar for Tenjou

Hello everyone, I'm trying to solve a problem in C++ using visual studio. The problem asks to write a program that asks the user for a positive integer no greater than 15, and that the program should then display a square on the screen using the character "X", and that …

Member Avatar for sergent
0
2K
Member Avatar for computerdude87

Hi, I am trying to calculate how many rooms a hotel has, how many are occupied, and the percentage of rooms that are occupied. It is suppose to do this after a loop iterates once for each floor while skipping the 13th floor. I am new to this, any suggestions? …

Member Avatar for jonsca
0
107
Member Avatar for Labdabeta

I am having trouble with a program that I am writing. I cannot seem to be able to destroy a window. I know the DestroyWindow function but it only works on windows that my application owns. Is there any way to destroy a window that is not owned by my …

Member Avatar for Labdabeta
0
123
Member Avatar for Narril

I am having problems compiling this code for cpu synchronization using threads. An error says that the "ou_thread" directory does not exist [CODE]#include <STRING> using namespace std; #include "ou_thread.h" using namespace openutils; class MyThread : public Thread { private: int m_nCount; public: MyThread(int n,const char* nm) { Thread::setName(nm); m_nCount = …

Member Avatar for Kanoisa
0
175
Member Avatar for triumphost

I have the following code which finds a window by a partial name given.. I've tested it and it doesnt work in Dev c++ but it definitely works in visual studio 2008.. So I decided to make a form with nothing on it and implement this code to see if …

Member Avatar for triumphost
0
320
Member Avatar for SSully

So simple problem. I need to have a division by zero validation in my constructor in this class. It is painfully simple, but I am just starting to learn classes and I just cannot figure out what I have to do. Would it be easier to just put the validation …

Member Avatar for Kanoisa
0
257
Member Avatar for stereomatching

Sorry I don't know how to express it in English, so I use some codes to show what I am trying to say [code] template<typename strategyOne, typename strategyTwo, typename strategyThree> void someCode(strategyOne stOne, strategyTwo stTwo, strategyThree stThree) { //some codes stOne(some args); //some codes stTwo(some args); //some codes stThree(some args); …

Member Avatar for stereomatching
0
119
Member Avatar for HitnBooks

Hello everyone. I'm teaching myself C++ and I've found this lesson online on passing pointers. I've got most of it down, but two of the functions for the program aren't displaying right. Would you wise (experienced) ones have a moment to look at just these functions? Are they looking wrong …

Member Avatar for venomxxl
0
144
Member Avatar for Kanoisa

Hi all, I'm currently thinking about how to make a thread safe queue. Specified as such: [LIST] [*]Single reader [*]Multiple writers [*]Dynamically sized [*]Suitable for both a reader sleeping on a queue or as a polled queue [/LIST] So what I'm looking at so far (pseudo)code wise is the following …

Member Avatar for Kanoisa
0
639

The End.