General C++ Programming - May 2009 (Page 13)

constant class variable
 
Is this declaration legal in a class header file (with it's missing an initial value)? const unsi...
[4 replies] Last: I don't think this method does what you're expecting. Yes this make... (by Disch)
Multithreading Test Programm
 
hey There... i had a small break^^... and now im trying on multithreading and something is going...
[3 replies] Last: I just wanted to test something with threads and a kbhit()-loop. It... (by Incubbus)
by vijkrr
How to create array of pointers to object
 
Hi all, I want to create an array of pointer objects to my class. Here it comes myclass.hpp: ...
[3 replies] Last: It can get messy quickly if you manage arrays directly. Why not use a... (by kbw)
Tabulated Format Table
 
I was wandering if someone could give me guidance to my program. I have to display (logx, sqrt, pow(...
[3 replies] Last: Aww thank you so much buffbill...thats all i wanted was a table to dis... (by cookiedianne)
What are these programs?
 
This should be pretty simple for you guys. I found 2 .cpp files on a floppy disc and I want to know ...
[11 replies] Last: Oh noes he posted top secretz codez!! (by Mythios)
Segmentation Fault in singly linked list quicksort
 
I get a seg fault with this code. int MyList::Partition(Node *temp, int start, int end) { int...
[6 replies] Last: Well now I have this and this is supposed to work. I got it from my te... (by daman371)
Trouble with Linking C file to C++ file
 
Hey, I have a program that has 5 files, 2 header files called: console.h screen.h and 3 ...
[10 replies] Last: The variables are used extensively in the console.c file but I used th... (by kenshin)
Is this code look weird?
 
I wrote a class and use the vector<> container as members of this class. I have never see this code ...
[5 replies] Last: Yeah, it's odd. The OP will have to mess around with it to find out wh... (by Duthomhas)
Segmentation Fault
 
My program compiles successfully although if I set one object equal to another, "segmentation fault"...
[2 replies] Last: Thanks a lot Hammurabi! No more Segmentation Fault and I can't beli... (by gnewfenix)
User color change
 
Hey I am trying to get a submenu where the user is able to simply input a character or two and chang...
[6 replies] Last: Don't give up. It is confusing at first. Everything following a lab... (by Duthomhas)
Array of Pointers to Object in a Class
 
** This is a repost, I posted in Beginners section but got no response, yet... Hi All, I'm try...
[2 replies] Last: I'm only a C++ novice, but I would say that since you are not declarin... (by DaveMortimer)
Spotting memory leaks
 
Hello All. A few weeks ago I threw out my C++ IDE's (KDevelop and MSVC++) and started using qmake...
[3 replies] Last: Thank you very much for your time helios. I had a surf around the w... (by DaveMortimer)
random number generation to text file
 
Hi all! I've posted a similar topic in the beginner forums, I need to generate random numbers, an...
[2 replies] Last: Thank you a lot, remove checked, and it works nicely ;-) (by Sycrupol)
by Muidem
Cannont convert 'this' pointer
 
#ifndef DAYOFYEAR_H #define DAYOFYEAR_H #include <string> class DayOfYear { private: //M...
[3 replies] Last: Aww man, I should have seen that. Makes perfect sense now that I think... (by Muidem)
by tjinx
Trouble with Private int
 
I know I can't access a private member of a class but I don't know what I should be using instead. H...
[3 replies] Last: If pixeldata is a data member of ShapeDrawer, then you don't need to p... (by Hammurabi)
Troubles with C++ list class template!
 
...
[4 replies] Last: Figured out my problem. Thanks guys! =D (by imadude1990)
list
 
Hi, I started writing a program in C++ which uses a list (not doubly-linked) but a problem occured a...
[5 replies] Last: OK, here goes. Line 34 should read p = start; Line 44 should rea... (by Duthomhas)
by jfq722
Another banking question...wow..weird
 
Obviously, I've been away from class designing for a while ;) Trying to shake the rust off by des...
[1 reply] : That's one way. Is it therefore safe to say that only INVESTMENT_AC... (by jsmith)
by wretch
value for member of non-instantiated class?
 
I was sort of expecting this code to blow up, but it doesn't. What does accessing a class member do...
[6 replies] Last: OSs (at least x86 OSs) implement memory protection at the CPU level. I... (by helios)
changing a structure to a class
 
hello, I am trying to change my current code to include the following class definition. class s...
[2 replies] Last: you have given the solution yourself.. what help you want. you have... (by writetonsharma)
May 2009 Pages: 1... 1112131415... 17
  Archived months: [apr2009] [jun2009]

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