General C++ Programming - June 2009 (Page 7)

how can father make friend with son's friend
 
class Box{ friend ostream& operator<<(ostream& output, const Box& b); friend Container&...
[7 replies] Last: Then implement operator<< as a member function. Or, better yet, imp... (by jsmith)
use list in class
 
class Box{ ... } ... class Container:public Box{ friend ostream& operator<<(ostream& out...
[4 replies] Last: Thanks Bazzy I slove it! =) happy now (by hjtuhh2009)
by kayo
*** was not declared in this scope
 
A little old fashion error, maybe. But I've googled it and found nothing. I really hope someone co...
[6 replies] Last: I read all the temp.dep references in the standard, but couldn't see h... (by kbw)
by sdbala
continiously listen to the file location
 
Hi guys i have been asked to write a program that would listen to a disk location in linux/solari...
[5 replies] Last: I would consider it an impractical use case and a horrible hack. It... (by PanGalactic)
Strange STL bug
 
Apparently I am managing to screw up the STL (lol) I have this code: istream& operator >> (is...
[16 replies] Last: I thought it was rather odd to be calling vector's reserve function in... (by kempofighter)
Calling function referencing?
 
Hi, all: As my login name shows, I am more familiar with Java then C++, but am currently in a C++...
[2 replies] Last: This might be what you're looking for. #include <iostream> ... (by Hammurabi)
STL for hash tables
 
Is there an STL implementation available for hash tables? If so, what is the name of the library? ...
[15 replies] Last: Right click on the project in solution explorer . Select properties ... (by closed account z05DSL3A)
physical data with different logical views, back and forth
 
Dear forum, I have the following problem. In a simulator I have a physical data type, a mail. Dep...
[1 reply] : You may want to use inheritance. I've left all your data fields as int... (by Hammurabi)
Passing a string to another function
 
I'm trying to pass a string as a pointer to another function and getting some errors. I need a templ...
[1 reply] : Here's a fixed version with the changes noted. #include <iostrea... (by Hammurabi)
Dev-C++
 
As I've always said and some of you have seen me say, I don't recommend Dev-C++ because it has poten...
[4 replies] Last: Code::Blocks uses multiple compilers and though it's a great option an... (by closed account S6k9GNh0)
remove \0 from char *
 
the book i began reading taught me to use char* variable; to store strings, this may not be what i'm...
[6 replies] Last: std::string is the other alternative. I see that you are including C+... (by kempofighter)
Problem with forward declarations
 
In class filter.h, I have the following forward declaration #include "nonlinear.h" template<cl...
[1 reply] : I already responded to this thread in the other forum. Please don't c... (by Disch)
File input - receive bad alloc message
 
I have written a small program designed to read file input and put this information into a multidime...
[4 replies] Last: Try inserting a line like std::cerr << "File size: " << size << std::... (by closed account z05DSL3A)
by Null
How to detect seg. faults?
 
How can i detect segmentation faults in my program without debugger (like dev-c++ does)? Thanks.
[6 replies] Last: Thank you Duoas! I also found example here: http://msdn.microsoft.com... (by Null)
Private constructor/destructor
 
Can constructors and destructors be private?
[5 replies] Last: A class with only non-public constructors cannot be constructed dir... (by jsmith)
by CMV123
Problem when trying to decryp encryped file with CryptoPP
 
Hi all, I have a problem. Someone I know encrypted a text file using AES128 by using binary ke...
[2 replies] Last: No he only gave me one key, but he works with this key for a long time... (by CMV123)
Repetitive Zero Terms
 
Hi, I'm trying to write a simple C++ program to display the 1st 4 terms of a series as follows: ...
[8 replies] Last: Thanks for the help everyone (by learner82)
by argh
C++ Choose Your Own Adventure
 
Hey, I haven't been on these boards in a LONG time so forgive me if this is out of context here. ...
[6 replies] Last: Hello, "But what is the point of this program, what is it getting t... (by EverBeginner)
STLport
 
So, what I've learned today is that each compiler or even delopment groups such as SGI and HP, all h...
[3 replies] Last: One advantage of STLport: - Allows and even uses 64bit std::streamoff... (by bnolsen)
plz chek this program
 
My all Dear friends. I want to calculate the Semester Gpa. i am taking the subject grade individua...
[5 replies] Last: Notice: Calculus1 + Intro to Information Technology + Physics ->ok ... (by tition)
June 2009 Pages: 1... 56789... 13
  Archived months: [may2009] [jul2009]

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