51,593 Topics

Member Avatar for
Member Avatar for lida1984

Hi i'd be glad if u help me with write this program. i want to write a polynomial program which it has a class that create 2 obj like this with useing linked list: (Ax^2y^3+Bx^4y^8+....)AND(ax^5y^1+....) and after that multiply these 2 obj to each other and put the answer in …

Member Avatar for 1o0oBhP
0
148
Member Avatar for sherbertmonkey

im having the hardest time with this problem it doesnt like my do while loop it doesnt want to do my loop for spacing and doesnt want to do my day pacing with the if else breaks! #include <iostream.h> /* jake sanders CS115-001 fall 2004 Programing Assignment 3 Program Description: …

Member Avatar for anastacia
0
147
Member Avatar for kellyandtopher

I need to write a program that finds the sum and average of 50 numbers. I am very new to C++, I have learned VB and this is really confusing to me. Please help me with this simple program. I went to another forum and had no responses. Kelly

Member Avatar for kc0arf
0
120
Member Avatar for kellyandtopher

I am in need of some examples of writing functions. The way it is stated in my book is kinda confusing. I dont know if I have to return a value or not. I dont understand if it is necessary to use the general form of a function returning a …

Member Avatar for yb1pls
0
129
Member Avatar for Gersen

howdy all, I'm working on some old apps that require the 16 bit support on MS Visual C++ 1.52. I was told it's been discontinued therefore it's ok to get a copy from someone. If this is true, I would appreciate if anyone could point out a place to download …

Member Avatar for jwenting
0
60
Member Avatar for arjunmukherjee

I want to access a variable that is declared as such class xx { private: CRITICAL_SECTION m_csResponse; } this variable I want to access from a method in another diff class in a different file(the variable being updated).What should I do in the other class?

Member Avatar for prog-bman
0
156
Member Avatar for xinix

Hey! I GUARANTEE that I'm the most junior programmer here! I started programming VB about 2 months ago, and I started Dev-C++ yesturday!!! I actually have a quick question regarding Dev-C++, I would be very grateful for an answer on this ^_^ I have just purchaced the "Beginning C++ Game …

Member Avatar for xinix
0
175
Member Avatar for LAMJAM

I couldn't get in here for a while, my pc was clocking-busy place?! I posted my problem to the wrong forum & didn't get any help-surprise! I just want to know what I'm doing wrong in my code. I can't get rid of the 2 errors or understand what they …

Member Avatar for prog-bman
0
184
Member Avatar for Mahen

Hi, it's me again, i started to learn C++ and I would like to ask your help to create a program. I want to create a program that will open and close my CD-ROM tray, after user input. You know, i press a button, tray opens, press a button, it …

Member Avatar for Extreme
0
163
Member Avatar for LAMJAM

> oh yeah. well it happens sometimes Hi, Can anyone give me a hint of what I'm doing wrong here? not pretty, but here's my code... #include <iostream.h> #include "apstring.h" #include <fstream.h> int main() { apstring user_name; int street_num; apstring street_name; apstring apt_num; apstring city; apstring state; int zip; ofstream …

Member Avatar for tgreer
0
290
Member Avatar for fishdem

Hi guys. I am relatively new to C/C++. I need a C program to print out all the information (stats) of a floppy disk, such as sectors per track,number of file allocation tables,maximum entiries in root directory,sectors per file allocation table and so forth. Additionally the program should also be …

Member Avatar for alc6379
0
87
Member Avatar for Phox

Hi I'm creating a dialog resource in VC++ using the resource editor, I am able to select and copy and paste edit boxes quite happily until I hit 224 in number. Then no further edit boxes can be pasted in the area. Any known issues with edit box restrictions ? …

0
85
Member Avatar for blackbabydoll

I receive to build areas when I want to start my debugging. But the errors do not show up when i just compile. They are: error LNK2001: unresolved external symbol "void __cdecl withdraw(char,double &,double &,class std::basic_ifstream<char,struct std::char_traits<char> > &,struct node * &)" (?withdraw@@$$FYAXDAAN0AAV?$basic_ifstream@DU?$char_traits@D@std@@@std@@AAPAUnode@@@Z) and fatal error LNK1120: 1 unresolved externals. …

Member Avatar for blackbabydoll
0
171
Member Avatar for dowens3rd

I have asked this question before and have not gotten a completely useful answer. I am trying to sort a number of any size. For example: if 643597 is entered, the output should be 345679.

Member Avatar for dowens3rd
0
200
Member Avatar for blacjuice

I have to get the total votes and percent of each vote for this program.I cant figure it out! I have attached input,but this should be output. Johnson 5000 6.2 Miller 4000 7.75 Duffey 6000 5.16 Robinson 2500 12.4 Ashtony 1800 17.22 Adkins 3500 8.85 Walls 5500 5.63 Bills 2700 …

Member Avatar for blacjuice
0
181
Member Avatar for hruzam

I've finally pulled out my old Visual Studio 6.0 and installed C++. I've done some very low level C++ programming years ago, but I've never used this program before. I've loaded the MSDN and searched on how to start a program. However, after about 3 weeks of migrating from one …

Member Avatar for hruzam
0
172
Member Avatar for Pheonix28

hello all, im new here, ok, i have a question, im trying to make a simple program, but keet gettin an error [CODE] //NFL Favorite Team #include <iostream> int main() { int NFL; std::cout << "Who is the best team in the NFL?\n"; std::cout << " (please only use the …

Member Avatar for 1o0oBhP
0
301
Member Avatar for the b

I have written a program that gets a string from the user and puts the characters on a stack, when the NULL terminator is reached it starts to pop the characters off the stack and display them therfore reversing the string. I am having one problem with this program though; …

Member Avatar for Chainsaw
0
114
Member Avatar for vtma71
Member Avatar for 1o0oBhP
0
74
Member Avatar for Xpyder

i try to compile source code from a CD in MSVC++ 6. It is scripted in C++ and uses the Win32 api and Direct X 8.0 SDK - and i have included the ddraw.h, ddrawx.h (i have tried with and without this) and with the .lib files. Whenever i tried …

Member Avatar for Xpyder
0
146
Member Avatar for dello

Hi, i have written a program for my assignment, however i need a little bit of help.. the program is written in c++ and im using the bloodshed compiler - [url]www.bloodshed.net[/url] i need to put some kind of validation in whereby - it calculates the duration of a call in …

Member Avatar for dello
0
165
Member Avatar for LAMJAM

Hi, Here's my code: #include <iostream.h> int main () { int i; cout << "Please enter a number" << endl; cin >> i; if (i < 0) { cout << "The number you entered is negative.\n";} if (i = 0) { cout << "The number you entered is zero.\n";} if …

Member Avatar for yb1pls
0
184
Member Avatar for sweetbaby

hello, i need the help for computer programming in the class. the question is below. i try to write the program, but it comes out a lot of error. please, help me to do this problem. Write a C++ program for the function `f1(x) = 2.6*x^3 - 5.7*x^2 + 4.9x …

Member Avatar for prog-bman
0
105
Member Avatar for coolmel55

I need to create a function that will allow me to print a hash table below is my code. There are 5 files all together: main.cpp, hash.h, hash.cpp, rec.h, rec.cpp. [code] #include <iostream> #include <fstream> #include <sstream> #include <string> #include "Rec.h" #include "Hash.h" using namespace std; int main() { char …

0
91
Member Avatar for neoncoder

HI, I have a question and i have done a lot of reasearch and cant find a answer.I have a source code (Program.c) C++ code and its just a simple program that takes a input as a wav and encodes it into AAC Audio Compression by using Ahead nero AAC …

Member Avatar for jwenting
0
94
Member Avatar for Marauder

I am having a little trouble incorporating a simple password into a voting machine style program. If anybody can see what's wrong with it and point it out, I would be very grateful. [CODE]#include <iostream> #include <iomanip> #include<string> #include<cstdlib> using namespace std; int main() { char choice; string password = …

Member Avatar for vegaseat
0
340
Member Avatar for KittyGirl

OK, here's my problem. This is supposed to print out a list of menu items. You choose from the list, then print the bill. My problem is that I can't seem to get the menu items to print out in a tabular format and my printout won't add the items …

Member Avatar for KittyGirl
0
232
Member Avatar for dustinschiffer

:cry: I am very confused, i am working on a console application and it doesn't seem that my console output codes are working. Can someone tell me whats wrong? cout << "text" << end1;

Member Avatar for vegaseat
0
160
Member Avatar for Israelside

just had a slight problem here with my input file...first off i declared a large class called Book....and then in the main function i have put ifstream inFile. I read from the file and such and it gives me the error inFile' uses undefined class I am not quite sure …

Member Avatar for 1o0oBhP
0
76
Member Avatar for missy

i am trying to do a program but i have two error and i don't know what they mean. can someone please help me. this is the program [code] #include "stdafx.h" #include <iostream> using namespace std; int S1(int x, int& y); int S2(int& m, int n); int main() { int …

Member Avatar for 1o0oBhP
0
79
Member Avatar for jtxay

Hello there, Okay i had to write a program that computes the number of days between two dates, right, and so far i'm just sort of stumped over what to do next to get it all right and functioning correctly. I've written the code and everything else, and It runs, …

Member Avatar for 1o0oBhP
0
159
Member Avatar for sherbertmonkey

ight here is my program or what i need my program to do and my frame work its pretty nasty its got lot of gaps but i just need to figure out how to output the ending to this to have the right start day the right num of days …

Member Avatar for 1o0oBhP
0
107
Member Avatar for PriyaJaiGanesh

Sir, I need ur help in the Following Assignement. I have to write a program to store the Employee details i.e rollno,Department,salary,name,experience etc using the file operation. plz help me! Urs PriyaJaiGanesh

Member Avatar for alc6379
0
89
Member Avatar for shermili

#include <iostream.h> int main() { int ID,Choice,Addition,Subtraction,Multiplication,Division,Exit; char Firstname[10]; char Lastname[10]; cout<<"Enter your Firstname\n"; cin>>Firstname; cout<<"Enter your Lastname\n"; cin>>Lastname; cout<<"Enter your ID\n"; cin>>ID; cout<<"1. Addition\n"; cout<<"2. Subtraction\n"; cout<<"3. Multiplication\n"; cout<<"4. Division\n"; cout<<"5. Exit\n"; cout<<"Enter your Choice:\n"; cin>>Choice; while (Choice != 5) { switch(Choice) { case 1: cout<<"You have selected Addition\n";Addition;break; …

Member Avatar for alc6379
-1
229
Member Avatar for badchick

Hello, I'm back again and i brought my code.. This Program counts upper/ lower case letters, digits, end of sentence markers, intrasentence markers, Blanks, and all other symbols, and then approximate the following statistics on average word and sentence length. But i'm not to sure if this is the right …

Member Avatar for alc6379
0
136
Member Avatar for CPLUSCPLUS

The System () function call is in C and C++, but I can't seem to find out just exactly what it can do. I use "C++ How to Program", by Deitel and Deitel, but it's silent on the application of System(). Any help would be appreciated. Thanks. PS: For example, …

Member Avatar for CPLUSCPLUS
0
119
Member Avatar for mak 23

i am taking a cpsc 140 class and i'm a little confused how to begin my assignment. Write a C++ program that reads in an unknown number of characters from the a text file, count the number of words, and print each word in reverse to the screen. Words are …

Member Avatar for vegaseat
0
151
Member Avatar for dello

hi all, i need urgent help. i am currently learning c++ and i have been given a program to write, I am really struggling with it and as it is an assignment whic needs to be handed in tomorrow i really need help :( - im not lazy its just …

Member Avatar for dello
0
204
Member Avatar for jamir0n

hi eveyone, my first post...:) my second yr in CS and i decided to start working on VC++ while all C++ i learned and practice is on unix systems using gcc compiler. im using Microsoft Visual Studeio.NET academic verson ver 2003. i keep on getting weird error messages although code …

Member Avatar for jwenting
0
78
Member Avatar for LostinCode

Hello... I am writing a C++ program that needs to code division with remainders. My current code does not work. //Division if (num2==0) do {num2 = rand() % 10; cout<<"new number "<<num2<<endl;} //get another number while (num2 == 0); cout << "(10) "; cout<<num1 << " / " << num2 …

Member Avatar for LostinCode
0
197
Member Avatar for peter_budo

Hi my name is Peter and I'm looking for somebody who can help me to understand how to read from external file without "destroing" existing inforamtion inside. whole staff is based on book example which i'm trying to extend. I have a programm which is working with database of 3 …

Member Avatar for peter_budo
0
160
Member Avatar for Nyika

When reading character data from an input stream, what is the difference between using the >> operator and using the `get` function?

Member Avatar for Tresa
0
84
Member Avatar for sangoku22

I am working on a program that asks for 2 number between 1 and 100. Its supposed to say how much even numbers are in between these two numbers. Then I need it to list out all the even numbers between those numbers... So far I got it to calculate …

Member Avatar for sangoku22
0
221
Member Avatar for Nabs

Hi Can anyone tell me what isdigit(cin.peek()) means? Is it the same as isdigit(next_char) where next_char is a character variable? Thx...I'm just a beginner...

Member Avatar for Narue
0
84
Member Avatar for tyalangan

hey everyone. School is finally over (heck yes!) and next semester I'm moving onto C++, kinda nerve recking. I don't have a good C backround yet. So I'm working on some problems from our text book over the holidays. (If anyone has some interesting problems/programs that I could practice they …

Member Avatar for Dave Sinkula
0
138
Member Avatar for Marivel

Yeah, it's your typical homework help topic, but the problem is this is stuff we NEVER COVERED IN CLASS and it was NOT IN OUR BOOK, even our TA can't figure out why our professor assigned this to our 101 class. I have a good chunk of it done, I …

Member Avatar for britt_boy
0
213
Member Avatar for fero45

Hi Integers ahve a range from -32.767 to +32,767. How come I can use the following code: int a = 1000000; int b = 5000000; int c = a + b; cout << c << endl; ... and it works? Thanks Frank

Member Avatar for fero45
0
153
Member Avatar for skeet123

Can someone point me in the right direction on implementing a merge sort. Here is what the main program will look like. THanks. [CODE]int main(void) { int ar[100]; int i, v, len; for (i=0; i<100; i++) { cout << "enter a number (-1 to quit): "; cin >> v; if …

Member Avatar for vegaseat
0
189
Member Avatar for KittyGirl

I'm writing a program that asks the user to input 3 numbers, then outputs the shape of the triangle. This is what I have so far, but it still doesn't work. Can someone help? Thanks! [CODE]#include <iostream> using namespace std; enum triangleType {scalene, isosceles, equilateral, noTriangle}; void triangleShape (int shape); …

Member Avatar for jwenting
0
195
Member Avatar for sridarravi

I am new to C++ and so how do i start my first programs. Can some one tell me what i need to do first. Also can someone send a free online C++ book?

Member Avatar for vegaseat
0
120

The End.