51,593 Topics
![]() | |
Hi guys, having a little problem with my first c++ course and I'm hoping someone can help me out abit here. Write a program that asks the user for a positive integer value. The program should use a loop to get the sum of all the integers from 1 up … | |
how can i make the program display * in password entery i tried [B] while(getch()) { cout<<"*"; } [/B] but it didnt work plz tell me how | |
hi all specially Alex Cavnar friend i have done alot of programming , my earlier problem with lines has not been solved by any1 as yet y don't u try it i will be posting it again. As per the rectangle the inputs are only the lenght , breadth , … | |
I have to display this prrogram 3 different times using a FOR LOOP but he never showed us how it goes or where it goes I read it in my book and try many different things but nothing works its like it has to display three different people's name and … | |
Hi! I need to develop a client application that will run on Soaris and call VB application running on WINN2K3 server. VB application uses an ActiveX component to access custom database and retrieve a recordset. This recordset details should be returned back to the Solaris application running on Sun Sparc. … | |
I need help with designing and interface that will search keys.language of choice is C++,use of avl trees ,b-trees,The interface should allow fields to enter variables.it should be linked to a database and allow searching. :sad: | |
hi all, i have to make a rectangle in c++. The inputs are length,breadth,center point and the aspect angle. The rectangle should be tilted at that angle | |
i have been asked to write a program that compute the area of a triangle using the formula Area=sqrt(s*(s-a)*(a-b)*(s-c)) where a,b,c, are the lengths of sides and 's' is the is the semi perimeter. s=(a+b+c)/2 and to compute that perimeter. | |
// Program 2.25: Declares distance of an object // given speed in MPH and time in hours and minutes // Author: Eric Martin // Date: 10/1/2004 #include <string> #include <iostream> #include <getch> using namespace std; float main () { // Declare speed in MPH // Declare time in hours and … | |
Hi, I'm working on a program that will allow the user to input an integer between 1 and 999 and display the numbers as shown by the example of inputing 3 which would result in the output below. 000 001 002 003 I've already written the part of the program … | |
I am storing the address of an Object in more than one entry in a vector; At the time of Deallocating the memory, I am retriving the Pointers one by one and Deleting it; The problem is that say &Obj is stored at indexes 1, 3; delete works first time; … | |
C++ Help Please!!!!!!!!!!! The Question is: Write a program that asks a user to enter one of the following state abbreviations: NC, SC, GA, FL, or AL. The program should then display the name of the state that cooresponds with the abbreviation entered ( North Carolina, South Carolina, Georgia, Florida, … | |
Hello there, My program is supposed to read data from a txt file, and put this data in a 2 dimension array. All I have is the last line of data in my text file. My teacher said that I have to update the array in my loop. I have … | |
Hi, everyone, i am newbie to c++, but good in java, is there a way to access files in c++, i dont mean known you write in the program or write it as commnd line args. something like getAbsolutePath() in java that can show any file. thanx 4 u r … | |
Ive written all of the code out and it works fine for Am times.....but when i type in a time(in military time) that is after 12 noon, the output still reads AM and not PM. Heres the code that i wrote out if someone could help me see where i … | |
First off.. I want to say that I cannot believe that it took me this long to find such a cool site that is so well put together and informative. I am fairly n00bish to everthing PC with only a couple of years experience under my belt. I have taken … | |
: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. … | |
hi all i need help i have to make path along a line with minimum 4 coordinates in c++ the problem arise when the angle is very acute. the problem is that i have given 4 coordinate points and the width of the path . Along the line which i'll … | |
hello.... i am currently using MS VISUAL STUDIO 6.O to complete my c++ assignment. i have my source code and the header file so that i can attempt to run my program. My question is what exact steps do i use to link my source code and header file together … | |
The population of rabbits on a small island in Poole harbour is being monitored. there are curently 495 rabbits on the island. It is estimated that the population will grow by 20 % a year until the population exceed 1000, after which the growth ratewill be 10 % a year.write … |
The End.