49,756 Topics

Member Avatar for
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
141
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
165
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
79
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
829
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
46
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
119
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
225
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
118
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
183
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
111
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 mvmalderen
0
117
Member Avatar for mvmalderen

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 mvmalderen
0
226
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
133
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
215
Member Avatar for connoisseurodg

I have been up for 24+ hrs, and am failing to see where I'm getting these junk numbers from? I know it's staring me right in the face, I just can't see it for the life of me!! Keep in mind this code is ugly and may make your eyes …

Member Avatar for adam1122
0
72
Member Avatar for lauren316

Please help me with this code! Here is the assignment. Project Specifications: Each part of this assignment is a piece of the next part--it builds upon itself. You should submit each part as a separate program. But, the final program is a complete program built upon all the other parts. …

Member Avatar for daviddoria
0
181
Member Avatar for tomtetlaw

how do i exicute python scripts in a c++ program? and what uses would it have?

Member Avatar for Duoas
0
107
Member Avatar for eduardocoelho

Hi folks, I tried to read some past threads in this forum but I didn't find one that solves the problem I'm dealing about. I have experience with Java/OO programming and I'm developing a project using C++ (I have some background with C/C++ programming but I'm messing around some issues …

Member Avatar for ArkM
0
228
Member Avatar for daviddoria

I am trying to write a pretty straight forward algorithm (agglomerative clustering), but the details are getting pretty hairy. (A cluster is simply a group of points. The idea is to take a list of points and decide which are "grouped" or "clustered" close together.) Here is the outline: Input: …

Member Avatar for daviddoria
0
113
Member Avatar for sara khan

Hii everyone:) I have written this code to do conversion between decimal to any base between 2 and 26.... But this is not working properly ca any one help me:confused [CODE] #include<iostream.h> #include<conio.h> void conversion(int no,int base) { int arr[10]={0}; int i=0; while(no>0) { arr[i]=no%base; i++; no=no/base; } for(int j=i;j>=0;j--) …

Member Avatar for Sky Diploma
0
128

The End.