General C++ Programming - April 2008

typedef problems
 
i think the problem lies in the way i was using my typedef this is how it was explained to me and i ...
[6 replies] Last: No worries :) (by Zaita)
Problem with reading in values for calculations
 
Hi everyone! I'm working on a code to read information from a text file, calculate averages, and nam...
[3 replies] Last: No worries. (by Zaita)
ORDER IN WHICH OBJECTS ARE DESTROYED
 
class a{--------- ---------}; int main(){ {a q,w,e; } } doubt:in the above pro...
[1 reply] : class A { A() { }; ~A() { cout << "A Is being destroyed" << end... (by Zaita)
If I need a paid tutor...
 
If I need a paid tutor, where would be the best place to find one?
[2 replies] Last: Or just ask here. but if you want formal tuition, your best bet wou... (by closed account z05DSL3A)
How do I read chars from a file into an array?
 
I need to input 100 characters from a 10x10 grid into an array. How would I go about inputting the f...
[1 reply] : Here's an example of how to read, character by character, a single lin... (by jsmith)
by ky619
Append function in a class.
 
I am working on a project and am having problems with the append function. I am not sure how to fini...
[7 replies] Last: As I don't know anything about the internal of you class, you could tr... (by closed account z05DSL3A)
saving bitmap file
 
Hey guys i have a header file and now i am writing the implementation file and defining the construc...
[6 replies] Last: Hmm... @shotjase I had posted a reply to your other copy of this... (by closed account z05DSL3A)
need help deperately pls!!
 
Suppose that I have to write a program where a mark out of 100 is entered end then the corresponding...
[4 replies] Last: Thanks grey wolf that help me loads!! This damn university is shit in... (by bdeklerk)
by ky619
C++ Project.
 
Hey, I am confused on what exactly I am doing on this project. I am given 3 files; mystring.h, mystr...
[1 reply] : It looks like that's what you're supposed to do. An excerpt from mystr... (by rpgfan3233)
by gospes
dynamic array
 
i'm writing a prog in C++ and having trouble with the array of pointers. i got a fragmentation fault...
[4 replies] Last: thanks Rpgfan, that was it. (by gospes)
by SMILE
how to separate integers into four digists
 
I only know that (% and /) can be used but i don't know how e.g separating this numbers 145623982569...
[2 replies] Last: what you could try is to take your integer 14562398256921452365 and di... (by bdeklerk)
by Tarch
Get type of a pointer to member
 
Hi all, can someone tell me if there is a better way than the following to get the type of a pointe...
[3 replies] Last: Ok, thank you very much. Bye! (by Tarch)
ORDER IN WHICH OBJECTS ARE DESTROYED
 
class a{--------- ---------}; int main(){ {a q,w,e; } } doubt:in the above pro...
[2 replies] Last: Yeah something like this should work: #include <string> #include <i... (by rpgfan3233)
Variable of class member
 
If I call the addSong function in the main(), the songHead pointer variable changes every single tim...
[2 replies] Last: The problem is that you don't create deep copies of the input string, ... (by ropez)
what does this mean
 
error C2061: syntax error : identifier 'st2'
[1 reply] : The compiler found an identifier where it wasn't expected. Make sure t... (by closed account z05DSL3A)
this is ridiculous easy
 
It's been awhile and I seem to have forgotten some of the simplest things... le sigh char handle...
[9 replies] Last: trying to stick with old school char * (by soldstatic)
by TriTz
Void* or Template for Linked List
 
Hi! guys! I have a question about generic linked list. I made one using C. typedef struct lis...
[1 reply] : Polymorphic containers are not an easy problem. There are a couple of... (by jsmith)
by black
Global Pointers
 
hey.... i want to use a pointer that i can access in my class as well as in the main()....can anybo...
[1 reply] : Make the pointer static in the class (make sure it is public), and the... (by rpgfan3233)
VIRTUAL?
 
in inheritance we can declare base class as virtual base class and as normal base class. what advan...
[1 reply] : I asume you are talking about virtual inheritance. http://en.wikiped... (by closed account z05DSL3A)
hash function help
 
I am a beginner at c++ and i need help for writing a hash function code for this piece of code can a...
[1 reply] : What kind of problem u r facing? Please state the same.\, so that it ... (by DiptenduDas)
April 2008 Pages: 123... 11
  Archived months: [mar2008] [may2008]

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