General C++ Programming - May 2008 (Page 7)

by reqium
Specialised data in derived class
 
I'm newish to c++ and am trying to modify an existing c program that has been partially converted to c++. I want to create a derived class with some extra data...
[6 replies] Last: Thanks, yeh I totally don't like using hacks like casting etc, but I g... (by reqium)
How to find out if a file exists
 
How do I find out if a file exists?
[3 replies] Last: Typically you only check if the file exists when you want to read from... (by ropez)
by jobuny
Is anybody here good with COOKIES?
 
I gotta write this C++ program to receive / store cookies.....so far I'm completely lost and I can't find much when I search
[1 reply] : Study the HTTP Protocol. (by Zaita)
by inso85
Question about multimap
 
Hi everyone :) I want to display the contents of a complex multimap. Here is part of the code: class CPlane { public: string brand; unsigned hours; ...
[no replies]
DirectShow:The getCurrentbuffer didn't retreive a buffer?
 
Hi, I am using the ISampleGrabber and the function GetCurrentBuffer didn't retreive nothing and i don't know where is the problem my code didn't cause no e...
[no replies]
by inso85
Function that returns list of objects
 
Hi all, I am a new member here and I am glad to be a part of this great community :) I want to discuss with you some problems that I have with my course proj...
[5 replies] Last: Here is a working variant of info() function: void info() { ... (by inso85)
binary to ASCII and visa versa
 
hi, i want to write a program that takes in an input containing ASCII text, and converts it to binary in an output file. is this possible? can this be done u...
[2 replies] Last: i meant more along the lines of converting text into its binary repres... (by akimatsu123)
bitmap
 
i have a file here with all my constructors but i sitll have a problem..it wont compile and i have no idea y.. using namespace std; bitmap::bitmap() { ...
[no replies]
by slaris
I am using TC 3, and I want to know how to get the current working path.
 
Hey, I am a new comer to C and do a exercise( I want to program a little C app just like DOS Command 'dir' ). As the first step I must know how to get the cur...
[no replies]
find endpoints of a curve
 
my graduate paper on finding the two endpoints of a helix curve ,i'll be very grateful for all talents help!
[1 reply] : Hi, You have not asked a question. Simply stated your intention. Pl... (by Zaita)
C++ problem pls help
 
I got a problem with the following program and dont know where to start to be honest. write a program where the main function inputs two integers, namely the...
[1 reply] : You best bet would be to start by writing some pseudo-code. This is a ... (by Zaita)
An exercise in Stroustrup's book
 
The C++ programming language(Special edition) p.86-6: what is the longest local name you can use in a C++ program on your system? what is teh longest exter...
[1 reply] : These should be compiler specific settings. You should consult your Co... (by Zaita)
implement a priority queue
 
A(n) _______ is often used to implement a priority queue. a. array b. heap c. linked list d. stack e. none of the above I have found text to support a...
[1 reply] : heap (by ropez)
how to find a set of numbers in an array?
 
let say i have 20 numbers in an array, i need to find 8 numbers that is smaller than the first element. how do i find those 8 numbers in the array? Thanks
[3 replies] Last: lets say the first element is 15, i need to find 8 numbers that is sma... (by xTremeUser)
Mathy program
 
#include <iostream> #include <string> #include <sstream> #include <windows.h> using namespace std; int main() { double velocity, frequency, lamder...
[1 reply] : You should tell your users to input something like 3.00E2 instead of... (by XIII)
Why is while( cin ) valid?
 
cin is defines as: extern istream cin; which means cin is an object, but while( ? ), here the type of the ? should be bool, right? So how does an object be tra...
[1 reply] : a stream object can be casted to a void* (ios's member operator void*)... (by Pepsi Boom)
pdcurses / ncurses?
 
How do I use the PDCurses/ncurses library in a portable way with C++? The problem I have is that <curses.h> (at least the pdcurses one) seems to define a lot of...
[1 reply] : Nevermind. In case anyone wonders, I put a couple of ugly #undef's aft... (by humpolec)
templates with systemc
 
Hi, Can you guys help me with this template issue? Please look at my example and error below. Here is the error: g++ -o amba -Wall -g ./bin/sc_mai...
[2 replies] Last: WOOHOO, sorry for this post guys, I have figured it out. I had to put... (by teeforb)
Nested 'if' calculator - division problems
 
Here's the problem: we have to program a calculator that can take all sorts of input (M, m, or * for multiply, for example). Everything works perfectly, except ...
[2 replies] Last: oops stupid mistake right-o man thanks (by gameguru007)
C++ Templet qustion....
 
Can you please help me with following c++ Templet question ? But when you try to use the two together: the compiler gives a lot of rather indecipherable er...
[4 replies] Last: The following code compiles fine for me using g++ (GCC) 4.1.1 2007010... (by jsmith)
May 2008 Pages: 1... 5678
  Archived months: [apr2008] [jun2008]

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