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 (I call it real camera) my cameraManager holds a list of c...
[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 that there can be some problems with doing this. In partic...
[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 and countSent is 2 then the program stops!!! Help! #in...
[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 programming so i can start to code some simple games. To giv...
[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 using Turbo C++, the problem is that it does compile with no err...
[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 "unrecognized command line option fsave memoized " can anyone pleas...
[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 a message, separating each line with the enter key. They th...
[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 function fun2() and unlockin it will the lock still holds g...
[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> #include <iostream> using namespace std; class Bookstore...
[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. Everything goes fine, but when I want to change the contents of...
[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 letter to count in the sentence. The function will serarch the...
[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 string class object that end in either a period, exclamation po...
[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 as: typedef BOOL WINAPI PrototypeOfTargetFunction ( D...
[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 system. Have a better one? Please share. timeGetTime() re...
[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. Myfunc::Myfunc (char *parent) : sample(parent, w...
[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.get(c); The basic file input as listed in the tutorial w...
[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 (array of chars) from a file. Thanks for any suggestions.
[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 some basic oop concepts pls help me out to find out a nice t...
[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's not a homework). Since my mother tongue is not English, b...
[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.