48,983 Topics

Member Avatar for
Member Avatar for thiodre26

Greetings: I am taking my first C++ class and am a little stuck. I keep receiving three compiler errors, but I can't seem to figure them out. Can someone please point me in the right direction. The assignment is: Write a C++ program having a recursive function recursiveMinimum that takes …

Member Avatar for Chainsaw
0
89
Member Avatar for slavic1

How would I create a method like toString() within the SHA-1 class to convert a message digest to a C++ string, each representing a hexadecimal digit. Also, how could specify whether a file should be read as a text file or binary file? Thanks

Member Avatar for Narue
0
105
Member Avatar for paynekiller

hey all, what would be the calculations needed for making a simple sprite opject point towards the cursor position? ta

Member Avatar for vegaseat
0
133
Member Avatar for ravit

Which file supposed to replace the file crtdbg.h in embedded c++? Is it possible that I don't have it in the embedded c++ environment? I'm trying to convert a project that wrote in visual c++ to Embedded visual c++?

Member Avatar for frrossk
0
291
Member Avatar for BSaltturk

I'm about to kill myself... This is very elementary stuff, yet I still can't do it. Let me first give you the code and then explain my problem : [CODE] wordListIterator = wordList.begin(); list<string>::iterator wordListNextIterator = wordList.begin(); wordListNextIterator++; while(wordListIterator != wordList.end()) { /* Counting duplicates */ int count = 1; …

Member Avatar for Narue
0
88
Member Avatar for N3wbi3C0d3r

[CODE] //Program to collect and hold data on CD's #include <iostream> #include <fstream> using std::cout; using std::cin; using std::endl; using std::ifstream; int main() { int QA; cout << "To veiw file press v, to add a new CD press a:\n"; cin.get(QA); if (QA == v) { while (CDs.get(ch)) cout.put(ch); } …

Member Avatar for jwenting
0
136
Member Avatar for missy

i don't know how to get some of the codes. how do u load an array code //C++ Program to demonstrate basic array function operations #include<iostream.h> const int ARRAY_SIZE = 5; void LoadArray(int a[ ], int size); void DisplayFirstToLast(int a[ ], int size); void DisplayLastToFirst(int a[ ], int size); int …

Member Avatar for Dave Sinkula
0
97
Member Avatar for Faramba

How can we print the output of the program(which is in the black environment, dos form)in the c++ visual studio 6 compiler?

Member Avatar for Extreme
0
92
Member Avatar for mendrif

I'm not sure how to get started with this. Here's the assignment and what i've done so far, but I'm not sure if i'm going the right direction with this. The assignment says to have the user enter input one character at a time. That means one letter or space …

Member Avatar for mendrif
0
157
Member Avatar for elum

Here is my problem. My code consist of two edit boxes: IDC_BOX_1 and IDC_BOX_2. and one button to Execute. The idea is for someone to enter a number in the first edit box, IDC_BOX_1, and after pushing the Execution button, the number in IDC_BOX_1, gets multiplied by two and displayed …

Member Avatar for elum
-1
109
Member Avatar for ryan_qut

Hi, i wanted to overload a + operator to add two objects..i have an error which states "invalid operands `employee *' and `employee *' to binary `operator +'".. i do not know what is wrong with that statement, can anyone pls point out my mistake?? Thanks. the problem lies with …

Member Avatar for Dani
0
162
Member Avatar for fivetoesonefoot

hey i was wondering if someone could help me with this problem. i am so incredibly and utterly confused. here it is... write a simple phone directory program that looks up phone numbers in a file containing a list of names and phone numbers (called input.txt). the user should be …

Member Avatar for Tresa
0
197
Member Avatar for old lady

I've written programs for averaging lists of exam grades but throwing in the percent is throwing me for a loop. I don't know how to handle this information. Any help will be greatly appreciated. > //Write a program that asks the user to enter a student's midterm > //and final …

Member Avatar for jwenting
0
158
Member Avatar for bajanstar

Hi, I am very new to this forum and i have a problem with my C assignment. Im using Borland C++ 4.52 and i keep getting an error saying: General Protection Exception 0x241F:0X41C1 NONAME02(1)0X241F:0X41C1 Processor Fault It not the computer its the code at least thats what i figured because …

Member Avatar for bajanstar
0
121
Member Avatar for Xnoudas

I would like to get all the elements of a string array and I just get the last one followed by a "zero" element. void DrawFonts(int num, int x, int y) { Char Buffer [20]; CString ss; num = 15; //or whatever more than 2 elements itoa( num, Buffer, 10 …

Member Avatar for Xnoudas
-1
124
Member Avatar for Der_sed

the typical question which ask user to display THIS * ** *** **** ***** ****** ******* ******** ********* ********** using a single cout<<"*" & cout " " with the help of [B]for loops ONLY[/B]. :) ive come to this this prgram but can anyone tell me where i am going …

Member Avatar for Der_sed
0
107
Member Avatar for Young Teck 06

I need some help, what would everybody out there recommend for a C++ Compiler. I am thinking about paying $110 for Visual C++ "Standard". Does anybody know if this software is great and what are the best features of it. Other recommendations are also welcome.

Member Avatar for vegaseat
0
351
Member Avatar for suma2411

:D can you please help me in writing a program(c++) for finding factorial of a number using * operator overloading?

Member Avatar for jwenting
0
77
Member Avatar for SelArom

Hi I'm Josh and I'm new to these forums, and new to c++. I hope that I can get some great hints and help from the community. thank you in advance! I'm trying to create and use a hashtable class that uses a linked list for separate chaining. I've completed …

Member Avatar for SelArom
0
207
Member Avatar for slavic1

Hi, I'm a new member who is fairly new to C++ and need a little help getting some bugs out of an assigned matrix project. I am running VC++ 6.0 and have no compiler errors. Also, I have managed to run the program successfully for small matrices. My probelm occurs …

Member Avatar for Narue
-1
153
Member Avatar for JoBe

Hi guys, Just wanted to ask you're opinions about this program I had to write for evening school, the idea is when you enter a phrase wich isn't longer then 80 letters, the programm will count the amount of each letter wich is written :!: It doesn't have to keep …

Member Avatar for JoBe
-2
373
Member Avatar for dontcare

I would really like to learn how to debug my programs. The book I'm using does not have much info on debugging and my instructor hasn't said much on the topic either. I ended up re-writing my source code because of seg fault error. The program works fine now, but …

Member Avatar for Chainsaw
0
116
Member Avatar for boujibabe

I have a problem which states that good people all have last names that be begin with the letters G through L; all the others are bad. The program must differentiate the good people from the bad. Does neone have any design ideas? output:Name? Farley Farley is a bad person

Member Avatar for boujibabe
0
140
Member Avatar for jamievmi2

Hello, this is my first post, so i'm sure i'll fumble it a little bit. I'm writing a program that has a switch, a nested if, and an output choice of console or new file on a:. I feel like all my switch and nest is good, but i'm missing …

Member Avatar for jamievmi2
0
313
Member Avatar for Intro2Prog

1) Read an integer # from the file [I]balance.dat[/I] that represents the balance on your checkbook (Assume integer #'s only) 2)let the user enter an amount to write a check. 3)If there is enough balance to write teh check then display the message ([B]OK to write check[/B]) if the check …

Member Avatar for Narue
0
109
Member Avatar for skeet123

I am having a very hard time trying to solve this problem.Here are the instructions to the assignment: Implement a Priority Queue using a heap. The heap should be implemented as a class that has a private member which is an array. The array is statically allocated and the size …

Member Avatar for skeet123
0
154
Member Avatar for phr0stbyt3

this program is supposed to create a box with a horizontal line of the limit that a user inputs from 2-9... for example a limit of 5 would create: 5$$$$ $5$$$ $$5$$ $$$5$ $$$$5 an input of 4 would create: 4$$$ $4$$ $$4$ $$$4 and so on... i cant seem …

Member Avatar for iumair
0
121
Member Avatar for dontcare

The program is supposed to pen and read a file with student’s scores for a semester.  Display a chart with the average and median scores for each section and each lab. Example: CS 111 this semester has 7 sections and 10 labs.  The output will be a chart with 7 …

Member Avatar for jasweb2002
0
109
Member Avatar for dkm30

I'm new to C++, and I'm trying to solve a problem to compute an exponent of an integer to a float. The following is the psuedo code: Declare x as a float Declare y as an integer Declare i as an integer Declare result as a float Input x //any …

Member Avatar for frrossk
-1
106
Member Avatar for missy

hi guys i ask for help but know one responded, so i figured i will ask again. this is the first problem and why i can't print out a rectangle, triangle and diamond. i need know what am i doing wrong with both of these questions. someone please help me. …

Member Avatar for Narue
-1
85

The End.