General C++ Programming - March 2009 (Page 6)

Copying contents of one file to another.
 
Hi guys. Just wondering if anyone could help me with a problem I am having with some code. I am trying to get the contents of one file to be copied to anoth...
[2 replies] Last: Got it working , Thanks alot :) . (by mat1989)
by madi09
sortFunction_for_std::vector_in_UserDefinedClass
 
I have this class: class QSweep{ public: QSweep(const vector< vector<double> >& myPoints, const vector< vector<int> >&myEdges); void intersection(vect...
[1 reply] : The compiler error does not match the code you've posted. Can you pos... (by jsmith)
Overloading += operator
 
I have string class that I have been working on for a while and I don't know how to attack the += operator. I have completed the + operator with no trouble but...
[1 reply] : *this = *this + rhs; (by jsmith)
by MyRedz
i got some error on this code from allegro please
 
hello i am unstuck at this question because i dont know how to call it..and random animation is something confusing here here's my question and here's my cod...
[no replies]
How can I get "total" to work with my "commission" code?
 
Hi people. Basically, I've got this coursework that's due in for this Thursday. It's pretty much finished, but I can't seem to get this last bit working. ...
[3 replies] Last: writetonsharma - personalTotal is declared at the top of the code. But... (by Spawn Of Yallop)
Vector Iterator Trouble
 
This code tells me that there is no member variable named _number. I have tried using an -> but that doesn't work either. #include<vector> #include<iostre...
[3 replies] Last: thank you very much! (by fatalgrace)
Article on Pointers
 
Hi, I'm looking for an article I read on the internet a few months ago on pointers and all I can remember about the page is the purple background and that it...
[3 replies] Last: Found it. http://eternallyconfuzzled.com/jsw_home.aspx Finally I can r... (by kenshin)
{} errors, not sure why!
 
Okay people, basically this is coursework which has to be in on this Thursday. It's nearly finished, but I keep getting errors with my "{}"'s. I really don't ...
[7 replies] Last: but gcc doesnt give error if you define your functions in main. :) (by writetonsharma)
Sending data to a .dat file
 
First of all, I am a beginner, so use the most basic language possible please. I am using C++, and we have a dataset, and we have to split up the even and od...
[no replies]
problem with c++ program?
 
for (int count = 0; count < typesOfSalsa; count++) { cout<< "Enter the number of " <<salsa <<" salsa jars sold in the past month: "; cin>> numOfJarsSold ...
[3 replies] Last: if you want to delete the number, you can modify the sentence. cout... (by higasijoe)
glibc detected
 
I have been trying for hours to figure out why I get this error, or how to fix it. The class seems very simple, but I cannot figure this out. Any help is appr...
[6 replies] Last: Thanks for the help i made the copy constructor the same without the r... (by aab1990)
Program I cant figure out
 
A voltage source supplies a load through a resistor. The voltage source has a rating of 1000 volts and a power rating of 10000 watts. The resistor is 5 ohm...
[no replies]
by arius
Storing a file as DWORD?
 
Hello, I'm currently trying to store a files data as a DWORD array. But I seem to be having problems, the output does not seem correct. As you can see in the...
[no replies]
Linked Lists
 
There are two codes, a header and a .cpp #ifndef LINKEDLIST_H #define LINKEDLIST_H //****************************************************************** /...
[4 replies] Last: Actually in the private class members you need to add another pointer ... (by outsid3r)
by ramone
Multi Dimensional Arrays
 
Hi all, I need to create double arrays in 3 dimensions. The 3 dimensions are height and width of an image, with the 3rd containing rgb data for each pixel. U...
[1 reply] : see this, a double pointer implementation using malloc: //allocati... (by writetonsharma)
by urite
Video, Audio and MCI
 
I need to create a project in C++ that will play a video track and 4 audio tracks at random, but I'm completely stumped. I understand that I need to use the MCI...
[1 reply] : use the media player control on a dialog and write event handlers for ... (by writetonsharma)
Sending data to an array
 
First of all, I am a C++ beginner, so please keep your responses VERY basic. I am working on a project that calls a dataset, reads each value, and then dete...
[1 reply] : read fopen, fwrite, fread and fclose if you want to do it in C. other... (by writetonsharma)
typedef
 
Included in a class template def, what is the typedef line for? ... template <typename T> class TVector { public: // scope TVector<T>:: type definit...
[3 replies] Last: Consider iter_swap: iter_swap takes two iterators and swaps the val... (by jsmith)
Expression evaluation order?
 
Hello, Somehow I was unable to find about which operators in C/C++ can be used with confidence about their sequential evaluation order. If you know for sure, p...
[3 replies] Last: Look up "operator precedence" (by jsmith)
Backspace being printed as a character.. why?
 
i have a program, which uses a password inputation but when i made the password encrypted. when inputting my password which now appear as star(***) due to encry...
[1 reply] : getch returns a char (or two) for any key that is pressed, including n... (by jdd)
March 2009 Pages: 1... 45678... 21
  Archived months: [feb2009] [apr2009]

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