49,756 Topics
![]() | |
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 … | |
[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 … | |
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 … | |
Hi, Is it possible (using VC++6) to change background and forground text colors when builing a simple console application? | |
[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] | |
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 … | |
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 … | |
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 … | |
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 … | |
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. | |
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 … | |
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 … | |
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" … | |
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 … | |
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 … | |
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 | |
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; … | |
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 … | |
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 … | |
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 … | |
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 … | |
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; … | |
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 … | |
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 … | |
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 … | |
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. … | |
how do i exicute python scripts in a c++ program? and what uses would it have? | |
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 … | |
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: … | |
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--) … |
The End.