48,985 Topics

Member Avatar for
Member Avatar for blackdove

I have to define a class for equilateral triangles. The triangle should be defined by a center point (x, y) and the length of the sides. The class should have a constructor which allows defining the triangle, a constructor with no arguments, and member functions for the x coordinate, y …

Member Avatar for blackdove
0
154
Member Avatar for os008

Hi, I have the following problem [url]http://www.ahmedosama.com/buildlog.htm[/url] it's strange cause it's in the built in "include" files of the VC++ (2003), can u please help me out.

Member Avatar for os008
1
234
Member Avatar for evilsilver

ok guys lets see if you can see what's wrong with my program i have so far. it is for a role playing game but when you choose to "attack" in the program, when i play it, it won't let me attack now. the problem would be in the gameplaychoice …

Member Avatar for evilsilver
0
94
Member Avatar for hopeolicious

I have to write a program to compute the class's average and standard deviation from a file which contains a collection of student idds and corresponding scores for my computer class. I am to assign each stedent a letter grade as follows: 100-90 = A 89-80 = B 79-70 = …

0
80
Member Avatar for jonnie83

How do I use use a string that has been entered by the operator to search an input file for the same string to appear? i think i use string find but not sure

Member Avatar for Narue
0
63
Member Avatar for compshooter

Ok, I have three queueus, MM, FP & TXT. Each of them contain objects which have variables associated with them. How do I access any of the variables that the front of my Queue points to? For example, I am trying to print out the name of the item that …

Member Avatar for compshooter
0
141
Member Avatar for stackOverflow

Hello everyone, I'm doing my bca 4th semester. I have to do a small project in c. I'm supposed to develop an editor using c. I need help. I've no idea how i can do this. I just have one month time. It can be anything like text editor...etc..etc. All …

Member Avatar for alc6379
0
137
Member Avatar for roscioeak@direc

This is my first post here and so far I have been doing fine in my last C++ class but right now I am stuck. I have to make a program using an array that is initialized dynamically. You have to make a program that will input the rooms of …

Member Avatar for alc6379
0
96
Member Avatar for odee

Need help on assembly in Dev C++. i know that Dev C++ uses AT&T instead of Intel. but i need to know how to use int 10h in Dev C++. can anyone show give me the code?

Member Avatar for odee
0
151
Member Avatar for F50

HI guys, This code dosn't compile, I think it is right but it gives an error when i use the -> to access the members of my struct. #include <stdio.h> #include <stddef.h> #define MAX_EVENTS 100 //Structure for Queue Elements struct Event { int event_type; int time_value; int bus_num; int bus_stop; …

Member Avatar for Intel
0
190
Member Avatar for hopeolicious

I downloaded borland compiler but I dont know how to use it can someone help me

Member Avatar for evilsilver
0
105
Member Avatar for seeplusplus

i need to create a class named rational, and i need to have the integer variables denominator and numerator in private. The i need to provide a constructor that enables an object of the class to be initialized when it is declared. then it says the constructor should contain default …

Member Avatar for Dave Sinkula
0
83
Member Avatar for firebird

hi, i am very new to C++, i know almost nothing, how do i get the compiler to accept time as an input from a user.?????? I have to write a program to calculate the time distace given 2 times

Member Avatar for Dave Sinkula
0
100
Member Avatar for evilsilver

ok is there a way to play a music file in c++. and are you able to display a .jpg image in c++ instead of just bitmap files? any help would be greatly apreciated.

Member Avatar for evilsilver
0
96
Member Avatar for paoloSCG

ciao, please i need a help. do you have some program, or some advice where to find it, to traslate by C++ a EXCEL file(full of EXCEL functions) in a file (.txt) with the functions ready to be used in C++ (i need C++ sintax! no EXCEL sintax...). i thank …

Member Avatar for 1o0oBhP
0
200
Member Avatar for seeplusplus

alright, this program i wrote pops a menu up letting me choose one of the four options, after i choose an option, and it does that function, how do i get the menu to pop back up again so the user can choose another option? instead, my program does the …

Member Avatar for Intel
0
244
Member Avatar for tad73831

First, let me say I am NOT asking for someone to write this program for me. I have to see how functions and operations are used in programs to learn to use them in my own program. And I need help understanding how to use rand() in the program I …

Member Avatar for evilsilver
0
332
Member Avatar for Tester2

I am one of the many people trying to grasp something new in this forum. I come here, because it seems to frequented by C++ experts, who actually try to respond. I am trying to learn how to program an HTTP protocol based text file download. I have searched far …

0
82
Member Avatar for Guppy25

Ok, so i changed the "/" to a '/' but i can't get my calculate decimal function for work. I want to call a private function calculateDecimalValue() that computes a floating decimal of the fraction inside the enterFractionValue() function after the num and den are filled. I'm not understanding how …

Member Avatar for murschech
0
139
Member Avatar for Sam Lehman

i was wondering if its possible to use visual studio C++ and have the programs work on linux? i just started C++ and want to clear some things up

Member Avatar for Siersan
0
81
Member Avatar for dr.danno

I am looking for ideas for a program that I am trying to build. I need to have two pictures, one blurred and one clear. The blurred picture will cover the clear picture so it appears blurred. I need the mouse to appear as a sight glass so when the …

Member Avatar for 1o0oBhP
0
124
Member Avatar for helmica

i before asked for help in my c++ problem and every one told me i have to do more effort so that might help me with it. please guys here is what i have reached and note that i dont have the visual studio 6 on my pc. i wrote …

Member Avatar for 1o0oBhP
0
178
Member Avatar for Guppy25

I've created a class Fraction, and declared a private static character to hold the slash for displaying the fraction in fraction form later on. I can't seem to get the static char to compile and I need to figure out what I've done wrong, thank you for the help, jennie …

Member Avatar for Dave Sinkula
0
112
Member Avatar for Sukiebaby

I am having a problem getting the execution screen to stay in order for me to view the program. Can someone tell me what is wrong with my program please? // /* A parking garage charges a $2.00 miniumum fee to pack for up to three hours. The garage charges …

Member Avatar for evilsilver
0
235
Member Avatar for Acidburn

Hello, I've managed to get linux installed on my box. Using fedora core 3 with a full installation........ Man all those games :eek: Anyway I'm left with a question I completed a working code in nedit and saved it has a cpp file. I open but a konsole find the …

Member Avatar for Intel
0
111
Member Avatar for helmica

hi all am having hard times since yesterday trying to solve this problem. Declare the following two integer lists: int a[] = {5, 8, 4, 1, 7}, b[] = {12, 3, 15, 6, 23, 1, 2}; int sizeA = sizeof(a)/sizeof(int), sizeB = sizeof(b)/sizeof(int); list<int> list1(a, a+sizeA), list2(b, b+sizeB); Use the …

Member Avatar for vegaseat
0
156
Member Avatar for Khishin

I have a PvP TicTacToe program running, and everything is working fine, except for one thing: when a text character (q,w,e,etc) is entered the loop goes wild. Here's the portion of the code the loop is in, and if a text character is input instead of a digit, the loop …

Member Avatar for 1o0oBhP
0
109
Member Avatar for hopeolicious

I have to write a program to read N data items into two arrays, X and Y, of size 25. Calculate and store the products of corresponding pairs of elements of X and Y in a third array, Z, also of size 25. Also, compute and print the square root …

Member Avatar for Dave Sinkula
0
109
Member Avatar for Sam Lehman

hi, i've got a bit of a roadbump in my work. I need to set all of the money values to have two decimal points on the end, but my current program only adds two places if there are more than one. right now, i am multiplying the value by …

Member Avatar for Sam Lehman
0
196
Member Avatar for supersonic

I am now trying to add 2 strings together. But I dont understand where my compiler is pulling the reference to an int from. This is my code [code] #include <iostream> using namespace std; class String { char *str; //pointer to character block public: String(); //default constructor String (char *s); …

Member Avatar for Siersan
0
102

The End.