49,761 Topics
| |
:eek: I have revised my program and am getting a run time heap error. Any ideas on what I need to fix? [code] #include <iostream> #include <assert.h> #include "rectangle.h" using namespace std; CRectangle::CRectangle() { size = 0; pointArray = new CPoint[size]; } CRectangle::CRectangle(CRectangle& R1) { size = R1.getSize(); pointArray = … | |
I have a problem that I need help with. My fiancĂ© was placed in the hospital recently and I missed the entire first two weeks of my C++ programming class. I was given an assignment that has to be completed by tonight, October 3. If anyone could help me out, … | |
I'm having trouble with this program the objective is to Prompt the for a int. from 0-999, then split the int into three digits, then output the three digits from 000 through number entered using 3 nested for loops. I can get the second and last digits to work but … | |
:?: Tell me how to create a C++ program using ADT to represent the (X) player in a tac tic toe game. The computer programs opponent would be the (0) player. The Program must be created representing (x) player should never loose. | |
What is the difference between a method and an object? Isn't this a method? void Standard::print_results() What denotes an object?? CONFUSED! | |
* ** *** **** ***** i need to make a triangle like this for a homework assignment heres what i have so far im stuck on this i must use for loops...when i compile it all it does is end the program #include <iostream> using namespace std; int main () … | |
i need help..my grade is on the line.... plss help.. i have a project.. a c banking program which consist of two programs... one is a administrator that adds, edit,delete and show the accounts and the other program is for bankers...in that program you can deposit,withdraw,and check your balance.... this … | |
hi guys i am newbie at programming as well. I have a problem in applying reference parameters.I underastand that they are aliases for other variables and they can modify variables in the original called function where as call by value parameters are just copies and cnnot modify the original variable … | |
[COLOR=Red]red[/COLOR] i have problem with execute the program with the various interrupt in funtion int86() & int86x() please tell me short how his work? | |
// Program 2.25: Distance an object travels in miles // and time it takes to travel that distance // Author: Eric Martin // Date: 9/30/2004 #include <iostream.h> using namespace std; int main() { int distanceInMiles; int speedInMPH; int timeInMinutes; cout << "Computes time to travel given distance and speed" << … | |
Hi, I am Subhasish,a newly joined member of this forum. I have problem, with series60 developer platform for symbian,using C++ API. Here it is in details. I wants to develop a DLL using C++ bluetooth API.And also a suitable GUI for it,for Symbian.But i am new in it.So anybody who … | |
C++ - deals with list Assginment given: Consider a slight variation of the pointer-based implementation of the queue ADT. In this variation, the queue uses a circular linked list to represent the items in the queue. You must use only a single tail pointer. Construct the implementation of such queue … | |
I'm very new at this but I'm getting some weird error: unexpected end of file while looking for precompiled header directive I don't have much yet but here it is: #ifndef RECTANGLE_H #define RECTANGLE_H #include <iostream> using namespace std; class Rectangle { public: Rectangle(); //constructor ~Rectangle(); //destructor Rectangle(); //copy constructor … | |
I have to build a C++ code that accepts 4 separate Hexadecimal inputs and returns in English the human readable for a set of machine code instructions. I can either get my program to accept characters or integers. At this time I have my program set to work on integers … | |
Hi, as I posted earlier, what I need to do is get a user to input the temperature in celsius (and if input in farenheit, convert it to celsius first) and the windspeed, and have the program calculate the windchill. I have one error in line 88 of the program … | |
C ++ reading a textfile into linked list text file: Humpty Dumpty sat on the wall Humpty Dumpty had a great fall all the kings horses and all the kings men could not put Humpty Dumpty back together again --------------------------------------------------- the idea is to read in this sentence into a … | |
how do you read in a text file char by char a store in a string? | |
Hi all Need some help... I want to get started with SDL, but I can't get it to work There's what I got: [COLOR=Red]- Dev-C++ version 4.9.9.0[/COLOR] From [url]www.libsdl.org[/url] I clicked on "SDL 1.2" and under runtime libraries I downloaded: [COLOR=Red]- SDL-1.2.7-win32.zip[/COLOR] ...and under developpement libraries I picked: [COLOR=Red]- SDL-devel-1.2.7-VC6.zip[/COLOR] … | |
difference between c and c++ languages difference between templates and class,structures in c language and class and structures and templates difference between java and c++ | |
Respected Sir, I'm a student of class XII in a school in Roorkee,India, and we have to do projects on C++. I chose the Medicine Store as my topic. I 've divided it basically in 2 parts- 1. a database maintaning the records of medcines and other details regarding each … | |
I have to write a program that takes temperature in celsius (if in farenheit, it converts it to celsius) along with the windspeed and calculates the windchill. I have the program written but I can't figure out what I'm doing wrong in lines 63 and 75. Any help would be … | |
I want to break the loop if the user does not enter any value. How do I do that. [CODE] #include<iostream> using namespace std; int main() { int a=1; while(a!=NULL) //how do i phrase this. When the user does not enter any input //I want the loop to exit cin>>a; … | |
Ok I wrote this program a while ago and it just counts the line, now I need to modify it to these requirements: Count the total program LOC, the total LOC in each object the program contains, and the number of methods in each object. Produce a single LOC count … | |
I asked this before but didn't get an answer so I went to talk to my "professor" and he just about made me want to quit programming :( . So a little help would go great lenghs to salvaging this day. Basically I have to right a program that reads … | |
New to C++ programming. I am supposed to write a program that will ask the user if they want to print an ascending or a descending triangle. Based on user input, print the triangle on the screen. Only one cout statment may be used and it has to read: cout … | |
I'm using Xp. I wan2 kno wat function in cpp 2 use 2 [SIZE=4]HIBERNATE NOT SHUTDOWN[/SIZE] | |
Hello, when i try to compile this program (it has three parts) I receive an error message that confuses me. Below are the code and error message. [code] #include <iostream> using std::cout; using std::endl; #include "Complex.h" int main() { Complex x(2, 3), y(4, 5), z; x.printComplex(); cout << " + … | |
I can't get SDL to work with Dev-C++ Here's what I've got: - Dev-C++ version 4.9.9.0 I downloaded SDL from [url]www.libsdl.org:[/url] (SDL 1.2) Under runtime libraries I picked: - SDL-1.2.7-win32.zip Under developement libraries I picked 2: - SDL-devel-1.2.7-VC6.zip - SDL-devel-1.2.7-mingw32.tar.gz After copying both "include" and "library" files into Dev-C++'s "include" … | |
Hello all....I can't seem to figure out why the min value won't display correctly. Could someone please critique my program with out actually giving me the code. I am so happy that I finally got my loop to work! I've been working on this all evening. It is a great … | |
Hi, I need to write a program that asks for a series of numbers, and when 0 is entered I need it to display the following: the number of integers in the series the average of the integers the largest and smallest integer the difference between the largest and smallest. … |
The End.