48,985 Topics

Member Avatar for
Member Avatar for ross_player1

im a beginner in C++ and require help in developing a program that converts the price of a list of items from a text file from £ to euros. i am supposed to be able to edit this program so that there is a). GBP/Euro conversion rate. b). Data to …

Member Avatar for ross_player1
0
131
Member Avatar for Scuuba

ok, so I'm supposed to write a program which allows the user to input 5 candidate names and the number of votes they receive. The program should the spit out the names, number of votes, percentage of votes received, the total votes, and the winner of the election. This is …

Member Avatar for Scuuba
0
167
Member Avatar for Mr.

Hello, I have a small app that uses pipes to do some basic client / server communication, just for testing purposes. Well, when the server is run before the client, it works fine. However, if the client is run before the server, there are problems. To solve this I wanted …

Member Avatar for Mr.
0
204
Member Avatar for Wenshere

I would like to design a program to implement a string of operation, such as: 1+3/4+5*5-(454*23-34) Then, it returns a correct answer. And what's the exact algorithms?

Member Avatar for vegaseat
0
106
Member Avatar for krayek

Hello, I am new here looking for some advice. I belong to a programming group that intends to simulate hearing loss via software that we are creating. At the moment, we are looking to see how are we able to obtain sound from sound cards. What we intend to do …

Member Avatar for vegaseat
0
109
Member Avatar for Sam Lehman

hi, I need to find a way to get a list of all of the files in the current folder, so i thought i could have my program execute the 'dir' command into the command prompt and then parse what is returened. would anyone have any ideas on how I …

Member Avatar for Sam Lehman
0
269
Member Avatar for Wenshere

I declare a array of pointers: [CODE]char *a[13];[/CODE] And how can I allocate memory for it using "new"? (I'm a Chinese student,so my expression may be not so exact~)

Member Avatar for Dogtree
0
109
Member Avatar for Wenshere

1, who can tell me the defference between "cerr" and "cout"? 2, if I will handle these operations, how can I do? [CODE]cout << 7/2 << " " << 7/0<<" " << 7/3;[/CODE] 7/0 is wrong,but I will let the codes continue, that is , let the result of 7/3 …

Member Avatar for Dogtree
0
135
Member Avatar for curly3top

please help...when case 2, 3, or 4 are chosen the program goes into an infinite loop except for case 1 which works fine.... [code] //this program performs addition (grades 1,2,3,4), subtraction (grades 2,3,4), multiplication (grades 3,4), and division(grade 4) #include <cstdlib> #include <ctime> #include <iostream> using namespace std; int main() …

Member Avatar for admdvv
0
211
Member Avatar for admdvv

At runtime I obtain an instance of descendant of TObject (for example its name is TGoodForm). The definition of TGoodForm is unknown at compile time (I know that it is TGoodForm from TObject::ClassName()). [B]The question: how to create new instance of TGoodForm ?[/B] In another words, can I get address …

Member Avatar for admdvv
0
224
Member Avatar for TogeBB

LNK2022: Metadata Operation Failed (8013118D) Using MFC and meet with this error (__POSITION) Error ? In MSDN ,it says that ,"This behavior occurs because the compiler generated incorrect metadata for these anonymous structures. " and the Resolution is "To resolve this problem, add unique identifiers when you use Managed Extensions …

Member Avatar for Narue
0
120
Member Avatar for Scuuba

Please help, I am writing a program to take in 3 values and return the shape of a triangle. The program runs, but not quite right. Instead of returning the shape of a triangle, it returns a smiley face....which really surprised me. Can anybody help? The code I have is: …

Member Avatar for Scuuba
0
194
Member Avatar for CompiConQuiso

Hi I'm writing a program that is designed to have a user input the degree and coefficients for a polynomial with two variables, x and y, and i'm having trouble figureing out how to output the degree for the y, and tryin to ignore the term if the coefficient is …

Member Avatar for Narue
0
202
Member Avatar for apcxpc

It's easy enough in Java. How is it done in C++? for e.g. I have a class called Relation, that has a name field (just a string) and then a vector of strings. I want to specify that wherever I type (for example): Relation* r = new Relation(...); cout << …

Member Avatar for Narue
0
3K
Member Avatar for some one

please help me to write this program Ihave make one closed to it but I could not do it as what it says here is the problem and my solution: This is the program Write a program that outputs a telephone bill, given information on telephone calls made by the …

Member Avatar for Narue
0
243
Member Avatar for SquirrelProdigy

Here soon, I was hoping to buy an IDE for C++. However, I'm not sure which is the best to buy. I only know of Borland and Microsoft's as popular IDEs. Are there any other popular IDE's that are worth purchasing. I'll be heading off to college here soon, and …

Member Avatar for Narue
0
178
Member Avatar for kittie

[code]//final.cpp //Creates an array with 2 players' batting avg //Read in hits and atbats for each player //1) one player get data in main //2) other get data in battingavg function //battingavg function figures out battingavg for both players // and puts them in array (not hits & abats), print …

Member Avatar for Narue
0
175
Member Avatar for souphmars

can yall help me-i need to be able to output in preorder (root, left, right) and in post order (left, right, root)- when i output now it is in order (left, root, right)- how come it does this automatically, just wondering about that-but i need help with preorder and postorder, …

Member Avatar for Sarburtho
0
134
Member Avatar for b.rajapandian

Hi everybody I am asked to develop a search utility in C++. That should search words inside files like pdf, chm, word, excel and txt. The user will provide the directory to be searched and some keywords. Based on the keywords, I have to search these files for the keywords. …

0
70
Member Avatar for Acidburn

[code] int hangman::checkstatus() { for ( int i = 0; i < 5; i++ ) { if (encryption[i] == '*' ) { return i; cout << i; break; } } if ( i == 4 ) { cout<<"You win!"<<endl; } return 0; } [/code] Hello guys, this function always returns …

Member Avatar for Dave Sinkula
0
180
Member Avatar for raghavendrak

Hi Friends, I want to write a MP3 player with minimum GUI for Linux (Fedora) I dont know where to start with I have knowledge of C/C++ programming, but not much knowledge of creating a GUI. I use Eclipse. I want to write for KDE. Can you please guide me …

Member Avatar for subtronic
0
263
Member Avatar for SquirrelProdigy

[CODE]if(cmd=="new"){ string name,desc; cout<<"Name? "; cin>>name; Setcursor(Conloc); cout<<"Desc? "; cin>>desc; Setcursor(Bodyloc); Invitem Item(name,desc);[/CODE] When the values of the string desc is set through cin, if a space is used, all text after that space isn't used. Also, If two words are used when setting name, it will give the second …

Member Avatar for subtronic
0
268
Member Avatar for winbatch

Hi, I'm trying to use the STL map class to be able to store keys and associated values. I started out using it with keys of pre-existing data types like int, string, etc. and was working fine. I was also able to use it with values of custom classes. I'm …

Member Avatar for Narue
0
447
Member Avatar for kittie

[code]//project.cpp compiles //Need to create an input file of recently shipped music CD's. //The file should consist of the name of the album, quantity shipped and price. // Since we do not know how many CD's have been shipped, keep reading the file //until all CD's have been read in. …

Member Avatar for alc6379
0
218
Member Avatar for silicon

Hello everyone, my code is finally complete thanks to all of your help. One questions I have is regarding the reslts. I thought that Merge was faster than a heap sort. In my results however (when run on Borland c++) Heap comes out with a faster sorting time. The functions …

Member Avatar for subtronic
0
146
Member Avatar for bsrivastava

[I][COLOR=Red]Moderator edit: This response and its replies have been split from the C and C++ Timesaving Tips sticky because they do not add relevant material, and they are long enough to distract from the intended purpose of the thread. Further replies on this topic may be posted in this thread, …

Member Avatar for Narue
0
215
Member Avatar for hasan2003

hi, can any one tell me where can i get a idl compiler? i know about [B]idlc[/B] but i cant find any link ... help please ...

0
98
Member Avatar for the b

Here is a quick question that should be easy to answer. Is there a cubed root function in the C++ library?

Member Avatar for Narue
0
208
Member Avatar for winbatch

As seen in another thread, I'm working on a Log class. I'm running into an issue that if I delete the file that's being written to, the Log class doesn't detect it and continues to 'think' it's writing even though the file is gone... (Note that this is on sun …

Member Avatar for subtronic
0
2K
Member Avatar for nizar4445

hello all can any body help me to correct this code please :cry: :cry: i want it so it can print whats n is in these different cases. this is my code and thanks alot for your help #include <stdio.h> #include <iostream.h> #include <stdlib.h> void main() { int ave, 1st, …

Member Avatar for sinrtb
0
304

The End.