General C++ Programming - November 2011 (Page 21)

using template with operator overloading (inheritence)
 
I've been scratching my head ever since. Please advice if anyone can! My operator overloading works, but if i use it with templates than it dosent see Class B ...
[14 replies] Last: hey jim, thanks for the reply, i have already got it working! thanks s... (by dupdupdup)
Try out my calculator!
 
Just completed my 3rd c++ project, and by far the biggest. Anyways it is a calculator that has the main functions; 1.) finds the zeroes of a "ax^2 + bx +c" p...
[9 replies] Last: if (line != 0) { if (divi > abs (line )) ... (by realfuzzhead)
Large Integer Arithmetic Assignemt: Lost, HELP!!
 
This program is supposed to read in an integer that defines how many digits two more numbers can be, and then adds those numbers. The code is as follows, but I ...
[1 reply] : hi, I'm not realy shore what your program is supposed to do, however I... (by codekiddy)
Digikey's DKC3 problems from 2011
 
I have this homework due not sure how to do it. You are on an epic quest to save the Princess (and grab the treasure) who is locked in a tower (T). To ...
[1 reply] : I would like (and others too I suppose) to see some code on wich you ... (by codekiddy)
help me with preprocessor #if #else #endif
 
hi, whatever language I define result is same (ENGLISH) #define LANGUAGE DEUTSCH #if LANGUAGE == ENGLISH const wchar_t* Hello = L"Do you speak English?"...
[2 replies] Last: thanks alot helios!, I get it now. (by codekiddy)
by MaiPie
Logical Error?
 
Hi, so the code below is an assignment my professor recently gave me. I turned it in and have received the grade back. It was a 25/30 due to a logical error app...
[1 reply] : Maybe because it doesn't handle failure to open the file? (by helios)
Resize/resample yuv image
 
Hi! We have a project that involves image processing and the output of our camera is in yuv format. We are having a hard time on resizing the image. Can someone...
[no replies]
Displaying .txt file contents on the console
 
I have a program that extracts data from a file, does calculations, and then outputs the original contents plus some new data in an output file. Both files are ...
[4 replies] Last: Your code just prints E:\classtestavg.txt to the screen. You have to... (by tfityo)
Pointer Out Of Scope
 
Hello, First of all I want to thank you for taking your time to help me out. I am writing a program for class in which I am required to implement my own dynam...
[11 replies] Last: But in your original code, the formal parameter keys was of type 'T ... (by helios)
by razia
stack
 
plz any one give me a simple program of converting 2digit infix expression to postfix by the use of stack. not a single digit expression 2 digit plz supoz 23+4...
[1 reply] : http://scriptasylum.com/tutorials/infix_postfix/algorithms/infix-postf... (by jim80y)
by Desiac
Urgent! Please Help With This Code! Will Not Compile!
 
Hi, I have this program that I am writing to receive input from a file, process the information, and write the results to another file. Everything is fine logi...
[1 reply] : The declarations don't look like they match the functions. (eg ios are... (by joeyjoeyjoejr2)
by cea11b
Bubble sorting question
 
Hello all, I'm having some problems on an assignment where I'm supposed to use a bubble sort to sort through a struct of information. I don't want to post my...
[2 replies] Last: I actually just figured it out. I forgot to change my third variable f... (by cea11b)
HELP!! testscores code
 
hey guys, im pretty much done with this code, i just have one error thats not letting my code compile.. anyhelp would be GREATLY appreciated, im new to programm...
[9 replies] Last: void showAverage(float total, int numScores) { float average; averag... (by jim80y)
array sums and averages
 
Okay, So I have this program that spits out the sum and average of a list of numbers that the user inputs. When ever I run it, though, it gives me crazy numbers...
[1 reply] : @Ricardo R sum = compute_sum(list1, ARRAY_SIZE); average = compute... (by cdlang)
Trouble with avg in array/pointer problem
 
hey guys im doing a program that requires me to: 'The program should keep a list of test scores for a group of students. It should ask the user how many test...
[no replies]
trouble with template class
 
Im building a program that uses a template class called my data and utilizes overloaded operators for my c++ class but for some reason when i implement the def...
[2 replies] Last: thanks for your help it's running smoothly now (by bkoper16)
Output a file with select characters and intigers from input file
 
Hey, I am currently working on a code to analyze my raw data DH 0 26 64 0xe91a41 DH 0 26 65 0xe91a42 DH 0 26 66 0xe91a43 DH 0 26 67 0xe91a44 DH 0 26...
[1 reply] : Can someone please help me because I am really having difficulty with ... (by gshaw2008)
Merge sorting linked list
 
I am taking a data structures course, and I need to merge sort a linked list. Here's the code that I have: void MergeSorter::sortTester() { int testNumber...
[no replies]
by nebula
Beginner C++ Book
 
Hello guys. I would like to hear recomendations on beginner's books on C++. I was looking for 'C++ Primer Plus', but I don't know if theres anything else better...
[1 reply] : One of the books I'm currently reading is called C++ Dimistified by... (by PopEye)
strange problem with global string object
 
This might be something simple, but I just didn't get what. GCC 4.5 outputs "error: ā€˜s’ does not name a type" for this code (line 4): #include <string>...
[4 replies] Last: I can't say why the compiler is talking about types, It's because ... (by Moschops)
November 2011 Pages: 1... 1920212223... 47
  Archived months: [oct2011] [dec2011]

This is an archived page. To post a new message, go to the current page.