General C++ Programming - August 2010 (Page 4)

Functions with variable arguments
 
va_start takes two arguments, the va_list and the name of the last specified argument. Is it poss...
[12 replies] Last: A struct is for C what a class is for C++ except that the contents of ... (by buffbill)
Programming Problem?
 
I have a repeat assignment due in a few days and can't get my program to compile. The assignment que...
[6 replies] Last: scanf ("%d",choice); should be scanf ("%d",&choice); ... (by pyschoder)
Port Controlling
 
I was wondering how to have the program take input from a port, for example the mic.
[1 reply] : I wasn't sure whether you wanted a port or microphone, so I googled mi... (by LB)
Referencing Problem
 
An object of type std::string is to call its size() method and reference the returned variable: ...
[6 replies] Last: except that outputs it as text, and not as binary. The iostream ver... (by Disch)
Audio In Game
 
Recently I've been mulling around the idea of making a Guitar Hero-esque game/trainer that will take...
[8 replies] Last: OK. I got it to compile and run as expected after I copied all of the ... (by spikebarnett)
Does Anybody know where are int float types residing?
 
I would like to clarify their definition amongst. I have been looking every .h file extension but t...
[1 reply] : They are language built-in types (by Bazzy)
by kerlon
quick question.. problem with complex<double>
 
53: error: no match for 'operator+' in '1 + std::operator* [with _Tp = double](((const std::complex...
[4 replies] Last: sorry, what I meant in my previous post was that you fixed my problem!... (by kerlon)
What am I doing wrong
 
1. I am using VS 8 2. The program I use is #include <LEDA/system/basic.h> #include <LEDA/numbers/...
[3 replies] Last: This isn't a 24/7 live helpline. It's a web forum. You posted it a... (by Disch)
having problem with making a programm hellp me!! please!
 
this code runes fine until i enter in the values. it crashes for some reason. I get something like ...
[2 replies] Last: Are you trying to declare num twice? (by HughLafferty)
fseek may be unsafe?
 
Hello, I tried to use fseek function in my code: Here's the code: char sLine ; FILE *fpt; if ((f...
[2 replies] Last: inf.seekg( -2 , ios::end); // move 15 bytes before end of file ?... (by helios)
"Pressing Keys"
 
I was wondering how to have your program hit keys for you, like it would automatically hit ctrl+c. O...
[1 reply] : Hmmm... It depends what OS you are working on... ### Warning: Mos... (by attaboy)
by onur
atomic streaming to cout
 
Hi, I'm trying to implement an atomic ostream class. It streams the data into an internal ostrings...
[8 replies] Last: At least in the 100.000+ lines of logs I produced, I didn't find a sin... (by onur)
Switch Statements
 
Hi! I am still a student and I am having problems making a solution to the problem that was given by...
[5 replies] Last: Just a last note, using the conditional operator for this is not reall... (by Kyon)
vector Deallocation
 
A class of mine has this member: std::vector<Foo*> foo; where Foo is a class. Then somewhere ...
[2 replies] Last: It will _not_ call Foo's destructor, nor will it delete the pointer (f... (by jsmith)
by aba
Linker error: "LNK 2019"
 
I have looked at some of the other topics regarding this error, but I haven't found any that help my...
[8 replies] Last: I find it a bit clumsy too, not to mention it "pollutes" header files.... (by filipe)
STL Function???
 
Does anyone know if there is a STL function that will return a set of data? I would like to do what ...
[7 replies] Last: remove_if is the most horribly named function ever. It will just chan... (by jsmith)
multiple inherit thing in class
 
I've read about class & multiple inherit in many shitty pages on the internet but they all failed to...
[2 replies] Last: So that means i just use "," between classes. Thank you very much. (by straighttalk)
cast conversion for member pointer
 
The return type for the pointer to member function is void. I want to reassign to the function point...
[1 reply] : You can't. That's like saying "Why can't I change my class that conta... (by firedraco)
Where do i put libraries?
 
I'm currently using Dev-C++ as my compiler, and i downloaded the allegro library. What I need to kno...
[4 replies] Last: For VS, you usually just add the directories you are storing the libra... (by Zhuge)
git question
 
I guess this isn't too c++ related, but if anybody out there uses git for version control... I'm ...
[no replies]
August 2010 Pages: 123456... 20
  Archived months: [jul2010] [sep2010]

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