48,983 Topics

Member Avatar for
Member Avatar for dal4488

I'm trying to write a code that calculates a cell phone bill. There are two different services: a regular service that is $10.00 and the first 50 minutes are free and charges over 50 minutes are $.20 per minute and the other a premium service that's $25 and the first …

Member Avatar for Narue
0
146
Member Avatar for loki73

I need an explanation of Auxiliary operators. I understand that they are not members of a given class. But how do you use them? Particularly in overloading operators situations.

Member Avatar for Narue
0
128
Member Avatar for tantomushi

Hi! I'm really new to all this so please excuse me if I'm not providing enough information for anyone to answer my question. I'm getting this error: [code] error C2079: 'Playlist::PLarray::playlists' uses undefined class Playlist [/code] and it's referencing a line in my PLarray.hpp file-> see *** PLarray.hpp: [code] #include …

Member Avatar for OurNation
0
424
Member Avatar for Asif_NSU

I have to write a program where the input is a Boolean Expression and the ouput is the corresponding sum of minterms for that particular expression. My idea is that i need to convert the infix boolean expression to a postfix expression. From there I need to construct the truth-table …

Member Avatar for Asif_NSU
0
716
Member Avatar for syphyr_0707

:eek: I have been working on this for hours now... I am trying to enter a string and then count the words in the string. Only problem is my book is no more than a paper weight, and other online areas are kinda confusing. Can someone point me in the …

Member Avatar for syphyr_0707
0
90
Member Avatar for evilsilver

(for reference i am in c++, windows, borland 3 compiler)hey guys here is what i want to do, i am trying to save a file using <fstream> but want the player to pick a name to save the file as, so to do that i have to modify the string …

Member Avatar for Narue
0
179
Member Avatar for FireNet

[code] Mode13h The Beginning of 3D/2D Graphics [/code] [B]Intro[/B] Lots of people want to know how to do graphics but find most APIs like OpenGL, DirectX etc too complex for a beginner, especially as they involve GUI code which follows a different approach from the simple dos programming Here, I …

Member Avatar for 1o0oBhP
0
2K
Member Avatar for dal4488

I'm trying to write a program that mimics a calculator where the user inputs two integers and the operation to be performed. Then I want it to output the numbers, the operator, and the result. I need to use a switch statement and I'm very confused on what to do …

Member Avatar for Narue
0
318
Member Avatar for sutty8303

We have a homework problem that we had to modify. we had to make the user input their name and a radius to compute the area. The program was supposed to ask the name before it asked the radius. I have two problems i can not get the program to …

Member Avatar for Index
0
119
Member Avatar for christi

hi-i hope someone can help me.. I am creating a linked list of nodes, I am trying to insert a new node alphabetically by strcmp the name field. I keep crashing at this point... you will see in my code below, I can add to the front of the list …

Member Avatar for 1o0oBhP
0
98
Member Avatar for evilsilver

ok here is my question, i use borland c++ builder 3 and in a book i found an example for a graphics.h program which is supposed to work but i have heard that this only works in dos mode not in windows (which i am running in) is there another …

Member Avatar for 1o0oBhP
0
119
Member Avatar for billy-student

I am new at programming and need help: #include <iostream> #include <cmath> using namespace std; int main() { int a, b, c, area, tri_area; area = tri_area(a, b, c); if area (area>0); cout << "Area is "<<area<<"!"<<endl; cout << " Those values tri_angle " <<endl; } double tri_area (double a, …

Member Avatar for Fasola
0
184
Member Avatar for jonnie83

I am having a problem with inputs. I can get the input using the cin command but i want to use the input to open a file with the inputs name ie the user types in FRED. cin>>name i want to open a file called fred.txt ifstream in("name.txt"); the above …

Member Avatar for vegaseat
0
106
Member Avatar for Foxtildawn

i keep getting error messages when i try to build my program: EmpType.obj : error LNK2001: unresolved external symbol "public: __thiscall SortedType::SortedType(void)" (??0SortedType@@QAE@XZ) EmpType.obj : error LNK2001: unresolved external symbol "public: void __thiscall SortedType::ResetList(void)" (?ResetList@SortedType@@QAEXXZ) I also get the same error for InsertItem,GetNextItem,DeleteItem,RetrieveItem,LengthIs any help in understanding this would be …

Member Avatar for Narue
0
159
Member Avatar for ianwaters

Hello all, im writing a c++ program to interact with an SQLServer database. my code will run a query and retrieve data fine. for example SELECT data FROM TestTable returns all strings from the data column. but when i run the following statement INSERT INTO TestTable (data) VALUES ('HELP') i …

Member Avatar for ianwaters
0
266
Member Avatar for tenoran

The assignment is to read and keep records and perform statistical analysis for a class of students. This is what I have done so far,then the codes can show the information(Id,4quizes,exam) of each students on screen. But I need to show 3 more things (The Highest ,The Lowest,The Average of …

Member Avatar for tenoran
0
129
Member Avatar for kpfannenstein

I have a fairly simple C++ program problem. This program is suppose to read in two sets of coordinates (x,y) and report the magnitude, distance, and where on the plane the points lies. Here is my code so far the whole thing works except for the location function. We haven't …

Member Avatar for Dave Sinkula
0
126
Member Avatar for Foxtildawn

I keep getting this error message and I cant figure out how to fix it. Im not sure whether I have been trying to fix it for to long or somehting that maybe im not seeing the problem: ItemType::ItemType' : error in function definition or declaration; function not called it …

Member Avatar for Narue
0
162
Member Avatar for compshooter

I have a couple of questions about the main function. Do you need to put the ; after the last }? Do you need to put a return statement before the last }? If so, what number do you put in the (), i.e. return (0), return (1), etc. What …

Member Avatar for vegaseat
0
148
Member Avatar for ap39769

I am a new member of the free Unix sdf.lonestar.org. I tried to compile and run a C++ program I wrote, but it would not let me compile. I wonder if it's because I haven't paid the $36. Arpa membership fee yet. Does anyone know if this is the problem??? …

Member Avatar for Narue
0
70
Member Avatar for steosaur(oWn)

i can't for the life of me figure out how to write int num; num = rand() %. ... i need a range of 0 to 1 I want to store either zero or one to num. That is my goal. plz help (i'm a noob obviously)

Member Avatar for steosaur(oWn)
0
81
Member Avatar for evilsilver

hey i am making a game and decided that i want to put a load/save option in it and was wondering if anyone here knew how to do this, (the program has to be able to close, open again and load the progress from before). I am running in windows …

Member Avatar for vegaseat
0
179
Member Avatar for pmorones

My homework assignment is to implement a class that represents a set of integers. Each set object may contain up to 100 integers. The main program will allow the user to create up to 10 different Set objects and perform actions on them. Actions such as return the interaction, union, …

Member Avatar for Fasola
0
168
Member Avatar for maizen

Okay, I'm trying to do my homework, but my code isn't doing what I want it to. What I'm trying to do is have the user enter a file name and then the program will output the number of words in the file. It works fine the first time through …

Member Avatar for Dave Sinkula
0
347
Member Avatar for hopeolicious

[CODE][#include <iostream.h> void initialize(int& coke, int& pepsi, int& dry, int& hires); void sales_type(char& sale_type, int& brand, int& quantity, int& coke, int& pepsi, int& dry, int& hires); //void clearline(); void purchased(int& brand, int& quantity, int& coke, int& pepsi, int& dry, int& hires); void sell(int& brand, int& quantity, int& coke, int& pepsi, …

Member Avatar for Narue
0
114
Member Avatar for flory

Hi, guys I needs someone to help me.I do have difficulties to understand functions in c++. If you can help with more tutorials.I will saved.. Please,even some good web sites where I can practice. Thanking you in advance

Member Avatar for Pmaster
1
192
Member Avatar for klmbrt

:?: I am attempting to write a C++ program that has the results of a T/F test. It takes the information from a data file and then it compares the students answers to the correct answers. I have two problems. First the data file has the first 8 characters as …

Member Avatar for Tight_Coder_Ex
1
101
Member Avatar for Dani

[b]Declaring Objects[/b] When one works with classes, each instance of the class which is defined is known as an object. C++ is an extremely object oriented language (perhaps not so much so as Java, however). In OOP, or Object Oriented Programming, one can easily perform multiple tasks on objects which …

Member Avatar for Pmaster
0
143
Member Avatar for computerages

Hello everyone! I am planning to build a database application for my school to maintain school lockers. However, I have a few questions regarding that application: [list=1] [*]Is it possible to use access databse with C++? [*]Is there anyway to authenicate a user with C++? [*]How shoud I go about …

Member Avatar for Narue
0
155
Member Avatar for chanz

[FONT=Comic Sans MS][SIZE=2][COLOR=Magenta]Write a program which reads a text from a file declared by the user. If the file does not exist a message should state this and the program should be terminated. If the file opens with success the program should read the text and then output the uppercase …

Member Avatar for BountyX
1
225

The End.