General C++ Programming - January 2009 (Page 8)

by Tomas
Calling an inherited template member function
 
Hi. I've come across some template code, and just to clarify myself, I've written the following example: #include <iostream> using namespace std; templ...
[5 replies] Last: This is just a simplyfied example of code I came across, seymore15074.... (by Tomas)
by trster
Casting unsigned int to pointer
 
I have class attribute that saves a pointer to an unknown object. Instead of saving it as a void *, it is saved as an unsigned int. Suppose I reach an operati...
[18 replies] Last: You are right indeed, I had forgotten about that one :). Typecastin... (by cheif)
Rot13
 
ok so I'm having a few complications, Yes I am new. So here are a list of the complications 1) Having trouble figuring out where my void rot13 should go in t...
[9 replies] Last: my bad here is firstHalf I have it in the program but its too long to ... (by ctrechter)
by mzd72
Locking tskmanager
 
how can i lock taskmanager with Microsoft Vishual C++ in windows vista
[1 reply] : http://www.cplusplus.com/forum/articles/1295/ (by Zaita)
by erico
Array List
 
I was making a array list in an assignment, so at the 'typedef int ITEMTYPE' part, I am supposed to change the 'int' with 'string, but it produces the following...
[2 replies] Last: Remember that " string " is in the std namespace (Edit: Too slow ... (by Bazzy)
exception handling
 
Which of the following statements describe correct methods of handling C++ exceptions? A. In a hierarchy of exception classes, the order of handling exceptio...
[1 reply] : E is related to A. The reference to a 'concrete class of exception' m... (by Faldrax)
bitset type error
 
I have an exiting project that I am trying to use to learn c++. The project was originally created in VS6.0 I am using VS8.0 Just trying to build project I...
[1 reply] : It's a bit difficult from your code snippet to see the context how it ... (by anders43)
Sync Time With System Clock
 
So basically i am trying to sync my time class i made so that it adds 1 to the seconds as the system clock adds seconds. I am kind of lost on this concept at th...
[3 replies] Last: *sigh* Why do you want to do this? That only works if the CPU ... (by jsmith)
by noize
problem with list ;/
 
Hi, i really don't know what to do, can you help me ? here is the code : kosz.h // Class automatically generated by Dev-C++ New Class wizard #ifnd...
[2 replies] Last: thanks a lot, it's easy to forget about such a thing :D (by noize)
by roblf
Trying to override streambuf to use with cout
 
Hi, I'm trying to grab all the input sent to cout to modify and redirect it. I used the example from http://www.dreamincode.net/code/snippet2499.htm, which ...
[8 replies] Last: Thanks Zaita! (by roblf)
Modifying Variables Within Boost Threads
 
I'm working on a multithreaded project using the boost::thread library, and I've hit a snag. I set up the threads with a few variables passed through the constr...
[4 replies] Last: Thanks a lot, Zaita! That really sheds some light on the subject, I'll... (by GenTiradentes)
air hockey
 
i am making an air hockey game in c++ . but i am stuck at a problem i want the player mallet to be under the control of the player simultaneous to the moveme...
[3 replies] Last: You haven't provided us with enough information about the libraries yo... (by Zaita)
plz.. some one do that for me .. before thursday :'(
 
write a program that reads a set of positive integers numbers into array x , and then reads another set of positive integer numbers into array y . for both arra...
[3 replies] Last: Hello dude, I hate to tell you this, but usually users read the rules... (by hannad)
by Zurswe
Program showing splitter
 
Hey, I need help with a program to do this: Write a program that loads an integer and print out all numbers that is a splitter to the integer. Example: E...
[1 reply] : You should try to do it by yourself, ask if you have problems with it.... (by Bazzy)
Caesar cipher
 
ok so no lies this is for an assignment. I am sooo lost and freaking out about this program. So I had to switch my major from comp science cause I'm finding o...
[2 replies] Last: ok So I got this far and it compiles. I know that just because it com... (by ctrechter)
Questions!
 
1.Does a const data member have to be initialized in the constructor/initialization list? 2.And where are static const data members defined (get a value)? ...
[7 replies] Last: Thanks for the help :) (by Tom Backton)
constant data members
 
Can data members be constant (with const) so that they are given a value by the constructor and them cannot be changed? If yes, can a data member be static cons...
[19 replies] Last: Thanks. Now I understand :) (by Tom Backton)
by jorijo
Store objec to vector in another class
 
I create the object Inicia in main function and have there a vector<frete> fretes and I want to store there frete objects but they are created in another func...
[2 replies] Last: If this 'i' is declared in main you can't access it with other functio... (by Malachi)
Opening a file for appending and binary
 
I have a file I am trying to append to and have the data stream be binary. From reading on this website's documentation, I found this: These constants are d...
[1 reply] : Scratch that. By force of habit I added parenthesis to the flag call. ... (by jwoolsto)
2 buffers to record audio
 
Hello to everybody: I am writing a c++ command-line program that picks up the samples of the audio card using the API. In order to this, I use the "waveIn" f...
[1 reply] : i've never done any work recording audio, but I did a little searching... (by Mal Reynolds)
January 2009 Pages: 1... 67891011
  Archived months: [dec2008] [feb2009]

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