49,761 Topics

Member Avatar for
Member Avatar for Talguy

Can anyone point me in the direction on how to develop a plug in system for my application. so that the user can extend the functionality of the program by including more hardware to it. Evan

Member Avatar for Talguy
0
104
Member Avatar for CPPRULZ

It is my understanding that in C++ objects of derived classes invoke the derived class' constructor but before the body is executed the base class' constructor is invoked and takes effect and then the derived class' constructor's body is executed. If this knowledge is correct, then what happens if the …

Member Avatar for ArkM
0
96
Member Avatar for 18jainabhishek

plz solve this problem Consider the ADT set that represents a collection of integers. The ADT should support standard set operations: S = init(); /* Initialize S to the empty set */ isEmpty(S); /* Return true if and only if S is the empty set */ isSingleton(S); /* Return true …

Member Avatar for vmanes
0
90
Member Avatar for samdajam

You are a member of CIA. And your duty is to decrypt encrypted data sent by the spy of Iraq. They send four strings. 2nd one is a subsequence of 1st one and 4th one is reverse subsequence of 3rd one. To decrypt the message you need to replace each …

Member Avatar for vmanes
0
99
Member Avatar for Mostafa Adel

Please, I need an active solution for 2-Dim dynamic array, the code I have written is that: int x , y; // size of the the array (Array) char* array = new char [x][y]; // Decleration of the Dymamic array There is syntax error in the decleration of the array, …

Member Avatar for MosaicFuneral
0
210
Member Avatar for Duki

Hey guys, Can anyone tell me why this doesn't work in VS2008? I've commented out the #includes and whatnot so you can paste it into a single .cpp file and run it. Here are my errors: [quote]1>test.obj : error LNK2028: unresolved token (0A000320) "int __cdecl eval(class Tree<struct InfoNode> &)" (?eval@@$$FYAHAAV?$Tree@UInfoNode@@@@@Z) …

Member Avatar for Duki
0
405
Member Avatar for rahul8590

Hey every one , well i was writing program which inputs "[B][U]Statistical data for example x 1 2 3 4 5 y 1 4 9 16 25 and analysing the data my program must suggest a suitable algebraic equations like looking at this one it should tell me the equation …

Member Avatar for rahul8590
0
142
Member Avatar for clutchkiller

[code=c++] #include <wx/wx.h> class Hello : public wxApp { public: virtual bool OnInit(); }; IMPLEMENT_APP(Hello) bool Hello::OnInit() { wxFrame *frame = new wxFrame(NULL, -1, _T("Hello"), wxPoint(60, 70), wxSize(500, 600)); frame -> show(true); SetTopWindow(frame); return true; } [/code] C:\Documents and Settings\Levi\Desktop\C+++\Makefile.win [Build Error] exe: *** [Output/MingW/Project1.exe] Error 1 Why do i …

Member Avatar for clutchkiller
0
83
Member Avatar for DanielB2

Here is my code [url]http://rafb.net/p/noi06840.html[/url] Now I will paste a list of errors that I keep getting, Any help appreciated 1>c:\users\vypr\documents\project0809\Board2.h(19) : error C2061: syntax error : identifier 'boolean' 1>c:\users\vypr\documents\project0809\Board2.h(28) : error C2079: 'RandomPlayer::moves' uses undefined class 'MoveList' 1>c:\users\vypr\documents\project0809\Board2.h(29) : error C2079: 'RandomPlayer::cm' uses undefined class 'CheckerMove' 1>c:\users\vypr\documents\project0809\Board2.h(33) : error …

Member Avatar for Ancient Dragon
0
214
Member Avatar for Willco

Hi, Is it possible (using VC++6) to change background and forground text colors when builing a simple console application?

Member Avatar for NicAx64
0
166
Member Avatar for 1newguy

[code]#include <iostream> using namespace std; int foreign(int x); int x; int main() { x=10; int i, j; i = 2 * x; if (i > 10) j = x / 2; return j - 1; cout << foreign(x) << endl; } [/code]

Member Avatar for daviddoria
0
80
Member Avatar for man4ish

I have one file with the following tab separated records with four columns.Now I am trying to convert the file into fixed length binary file. How it is possible. in C++. rs149915 29103059 A/G + rs149932 29116347 C/G - rs149933 29123223 C/G - rs149934 29084753 C/T - rs150082 29117038 A/C …

Member Avatar for Danny_501
0
127
Member Avatar for YingKang

After user choose ticket type(first class, business, or economy) and desired seat, for example row 2 A, the program will output the form: A B C D E F row 1 * * * * * * row 2 X * * * * * // now user chooses row …

Member Avatar for YingKang
0
3K
Member Avatar for AnGuRuSO

I've looked around and it turns out there isn't a C++ version of the java instanceof operator. I've also found out that using instanceof is supposed to be bad, for some reason. So let me tell you why I want to use this instanceof operator so badly. I've got a …

Member Avatar for AnGuRuSO
0
836
Member Avatar for zach175

I have a C++ app that uses the CInternetSession API to try and download a file across the internet. I want to authenticate before allowing any file downloads. Right now, the application should be passing the username and password using: CHttpFile->pFile->SetOption(INTERNET_OPTION_USERNAME) AND INTERNET_OPTION_USERNAME(INTERNET_OPTION_PASSWORD) Is there any way to connect this …

0
47
Member Avatar for psankisa

hi all , i have two arrays say : a[] = {"abc" , "def" , "ghi"}; b[] = {"abc" , "def" }; now i would like to find out the difference i.e "ghi" ..without using nested for loops.

Member Avatar for Intrade
0
123
Member Avatar for austinslik

please help me in finding what is wrong with my array... its not sorting thanks, thanks. [code=c] int main(){ int i,j,x,y; int unsort[10] = { 34, 76, 12, 1, 56, 23, 65, 9089, 45, 63 }; //int sort[10]; for (i = 0; i < 10; i++){ cout<<unsort[i]<<" "; } for …

Member Avatar for austinslik
0
120
Member Avatar for danielle23

I am working on a code focusing on Inheritance in C++. I am getting some errors regarding the lines that read: [icode]void bat :: double travel_time (double distance, terrain_type t)[/icode] (lines 56, 68, 113, 125 in animal.h file) The others that begin with void penguin, mammal, and bird have the …

Member Avatar for danielle23
0
233
Member Avatar for CPPRULZ

I have been trying to make a program that uses derived classes but have run into a problem. I get the error type: " error C2440: '=' : cannot convert from 'const char [16]' to 'char' " when I try and intialize a char array of 255 to "Name Unknown" …

Member Avatar for Ancient Dragon
0
126
Member Avatar for free radical

Hello, I need to prompt the user if they want to actually execute the program or not. Like, "Do you want to run the program, y=yes and n=no" Then user enters y or n and the program either runs or quits. I was thinking that would be like: [code] char …

Member Avatar for free radical
0
189
Member Avatar for pandey

I am trying to run one program using GNU compiler GCC 3.2.3. *i am seding u *partial code of my program and the compilation error i am getting. [code=cplusplus] #include <iostream.h> #include <fstream> #include <iomanip> #include <stdio.h> void fileinput(); int m,n, k, r; * main() {} void fileinput() { *int …

Member Avatar for Ancient Dragon
0
115
Member Avatar for shevy24

hello again, can somebody explain to me how I can use c++ idea to make my own DLL DRIVERS or a better tutorial link on that,it's very urgent...i have to submit before this thursday......please make it snapy

Member Avatar for shevy24
0
48
Member Avatar for I-R

hello ppl im new to C++ i was making a small newbie math quiz.. and was wandering how can i make it that at the end it says how much u got out of 10 or watever this is my code so far [CODE]#include <iostream> #include <cstdlib> using namespace std; …

Member Avatar for tux4life
0
119
Member Avatar for tux4life

Can someone please take a look at my code to ensure there aren't any memory leaks or (array) overrides or anything else which could be a bad practice in my code ... Here's my code: [CODE=C++] #include <iostream> using namespace std; template <typename T> void create2DMatrix(int rows, int cols, T …

Member Avatar for tux4life
0
227
Member Avatar for songweaver

Hey guys, I need help with this program which I have a function that calculates this formula for total house cost and then have an instruction function that asks for the input, then in main has the output. Can anyone tell me waht I am doing wrong, I think I …

Member Avatar for zalezog
0
155
Member Avatar for DanielB2

Hello there people, I'm trying to create a backgammon game using C++ and I am getting an annoying error error C2228: left of '.length' must have class/struct/union Here is the code it is refering to diceArray = new int[4]; for(int i = 0;i<diceArray.length;i++) diceArray = d1; I have declared diceArray …

Member Avatar for VernonDozier
0
140
Member Avatar for opposition

Hey was just wondering if there was a way I could share the private data with another class, without including it as a object of that class, for example, i have 2 classes, class A and blass B. class 'A' reads in from a txt file and stores its data …

Member Avatar for daviddoria
0
169
Member Avatar for vijaysoft1

Help me to implement file concept in this problem , i want to save the structure data to a file and Display from file.Please help me. [CODE] #include<iostream.h> #include<string.h> #include<iomanip.h> #include<dos.h> #include<conio.h> #include<stdio.h> #define max 20 struct employee { char name[20]; long int code; char designation[20]; int exp; int age; …

Member Avatar for Lerner
0
103
Member Avatar for CPPRULZ

I was testing which constructors are called in when a derived and then base class objects are created. My program couted 0 if it was the base class and 1 if it was the base class. I ran it and it returned 01 for the derived class and 0 for …

Member Avatar for ArkM
0
100
Member Avatar for bocabomb85

Hello, I am reaally green to C++ 1. I am trying to create a code that calculates and then produces a small invoice. Input: Company Name Input: Account Number Input: Opening Balance Input: Account Type: I=invoiceReceived P=invoicePayment #endTransaction Input: Amount Invoiced Input: Amount Paid If someone with experience were to …

Member Avatar for mitrmkar
0
220

The End.