General C++ Programming - August 2008 (Page 2)

Design problem friend member
 
hello Im writing a camera manager(singleton class) and a camera class there is just one camera...
[6 replies] Last: @Zaita Hmm it would be in a different direction. I guess an "is-... (by satm2008)
by g0dwyn
Precautions with a vector of pointers
 
Hey everyone, So I'm looking to implement a vector that contains pointers to objects. I've heard...
[5 replies] Last: Heh, yeah, and remind the experienced programmers to stop passing arou... (by Duthomhas)
finding the average
 
I wrote this program that works great except for when the avg isn't a whole number. If countWords is...
[3 replies] Last: You produced a fence-post error by doing str = ch . Replace it with ... (by helios)
by nim
32 bits
 
32 bits [author deleted content]
[6 replies] Last: @Zaita They're that big it's like working for a government, but with ... (by bnbertha)
by Gus314
Am i ready for Direct-X?
 
Hi. I have a little time on my hands at present and i'm quite keen to get into some DirectX progr...
[3 replies] Last: Yes, that's the way to go if you want some visible results... Otherwi... (by exception)
piano using frequencies doesn't sound
 
Hi: My mechanics waves teacher left an assignment to make a piano using frequencies and I am usin...
[9 replies] Last: Yes, but I've never done it so I don't know how. You need to be able t... (by Duthomhas)
fsave memoized error
 
Hello all, I am using Dev-C++ and while executing a program i get an error which states "unrecogn...
[2 replies] Last: bundle of thanks bro, it worked all right (by yousufrafi)
function prob
 
I am having trouble figure out exactly what i need to write a function that allows the user to input...
[1 reply] : I would use getLine(cin); and then put each line into a vector<stri... (by Zaita)
by vvadan
Using Locks in a function
 
hai plz help me Iam locking an object in a function fun1() and iam using that object in another ...
[1 reply] : Reported. Duplicate Topic. Please keep topics in a single forum. (by Zaita)
switch statement problems..
 
ok so here's my code: Bookstore.h #ifndef BOOKSTORE_H #define BOOKSTORE_H #include <string> ...
[1 reply] : FictionBook->SetBookName(int); and the other set function calls aren... (by mahlerfive)
Runtime error when using delete
 
I have a strange runtime error. I'm trying to make a string by using char* with the command new. Eve...
[8 replies] Last: Problem solved. The problem was that when I allocated memory for my ch... (by ekr3peeK)
code problem
 
I am trying to write a function in which the user enters a sentence in a string. Then specifies a le...
[1 reply] : You have a pretty thoughtful start... I suggest that you stay away ... (by Duthomhas)
Writing a function
 
Having problems writing a function to count the number of sentences that the user enteres into a str...
[1 reply] : Do it on paper first. Then tell the computer how you did it. Exampl... (by Duthomhas)
Function Prototypes
 
Very new to c !! I am confused about these c++ statements. First I define a function protype...
[3 replies] Last: Thank you much for your reply. I have printed it out and will keep ... (by PeterRod)
How do you benchmark code?
 
I wrote my own time system to help me benchmark code. (below) But I'm not sure it is the best sys...
[5 replies] Last: I usually use gprof (with the kprof frontend) and valgrind (callgrind ... (by exception)
Please explain
 
Hello all, I am learning c++ and one of the samples I saw had the following function declaration. ...
[5 replies] Last: name/nomenclature to be used? Initializer List Required for: ... (by exception)
by PWWWWR
Unsigned char IO
 
ifstream in; in.open(filename, ios::binary); unsigned char c; in.ge...
[3 replies] Last: That is a peculiarity of C and C++: char is distinct from both unsi... (by Duthomhas)
by aaf102
Remove char from file
 
Hi, i am doing some work with files in C/C++ and i wonder if there is some way, how to remove a word...
[5 replies] Last: Hmm, huge files... If all you are doing is removing data, then you'v... (by Duthomhas)
suggest a project
 
i need to prepare a project for class XII includeing: classes inheritence data file handling som...
[7 replies] Last: BTW http://www.whois.net/checkdomain/index.php?domain=FindSyntax&tld=c... (by jmc)
Sorting map elements by VALUE
 
Hello everybody! I want to make a program that is able to sort names in alphabetical order(no, it...
[4 replies] Last: Thank you exception, again, the program is working and you have put so... (by HarryGabriel91)
August 2008 Pages: 1234... 9
  Archived months: [jul2008] [sep2008]

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