comp.lang.c++
  Home FAQ Contact Sign in
comp.lang.c++ only
 
Advanced search
March 2008
motuwethfrsasuw
     12 9
3456789 10
10111213141516 11
17181920212223 12
24252627282930 13
31       14
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
comp.lang.c++ Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  ===Welcome to comp.lang.c++! Read this first.         


Author: Shiva
Date: Mar 29, 2008 21:29

Welcome to comp.lang.c++! Read this first.

This post is intended to give the new reader an introduction to reading
and posting in this newsgroup. We respectfully request that you read
all the way through this post, as it helps make for a more pleasant
and useful group for everyone.

First of all, please keep in mind that comp.lang.c++ is a group for discussion
of general issues of the C++ programming language, as defined by the ANSI/ISO
language standard. If you have a problem that is specific to a particular system
or compiler, you are much more likely to get complete and accurate answers in a
group that specializes in your platform. A listing of some newsgroups is given
at the end of this post.

The FAQ (Frequently Asked Question) list has a wealth of information for
both the new and veteran C++ programmer. No matter what your experience
level, you are encouraged to read the entire list, if only to familiarize
yourself with what answers are available to minimize redundant replies.
The comp.lang.c++ FAQ is available at http://www.parashift.com/c++-faq-lite/

If the FAQ list does not help, then many regular readers of this group
are happy to assist with problems of standard C++. We have only a few
requests that we ask be adhered to, for the benefit of all:
Show full article (4.94Kb)
no comments
  Could you give me some good websites about CPP IO programming?         


Author: 322322
Date: Mar 29, 2008 21:07

Could you give me some good website about CPP IO programming?
Thanks a lot !
3 Comments
  parse tree help         


Author: uche
Date: Mar 29, 2008 19:43

Hi Guys,
I am trying to build a Parse Tree with the following grammar. I have
implemented my insertions using a standard binary tree inserting
algorithm. With the psuedocode below, can you guys provide any helpful
feedback to placing insert statements into building nodes of the tree.
Any suggestions on how to build the tree will be appreciated.
I hope to build the tree to look like that
5+4
Show full article (1.51Kb)
1 Comment
  FRIENDS YESTERDAY I MAKE $2,000BY TAKE SIMPLE ONLINE SURVEYS. YOU         


Author: book243
Date: Mar 29, 2008 18:43

FRIENDS YESTERDAY I MAKE $2,000BY TAKE SIMPLE ONLINE SURVEYS. YOU
JUST NEED TO JOIN THEIR COMMUNITY AND THEY GIVES YOU PLENTY OF
SURVEYS.YOU MAY CHOOSE BEST RATED SURVEY FROM THE LIST.EACH
SURVEYRATE
BEGINS WITH $200. THE LINK IS BELOW

http://jeevaraj.MYSURVEYPR.hop.clickbank.net

YOUR LIFE SHOULD BE CHANGE BY THIS LINK
no comments
  cut a string in file         


Author: June Lee
Date: Mar 29, 2008 18:12

I have a big text file (about 10MB)

is there fast way to delete the string

xmlns='urn:TMSWebServices'

from the file quick?

the string will be some where in the first 20 line of the big text
file.
1 Comment
  Madam,Lactation DX11         


Author: izurewakaru
Date: Mar 29, 2008 17:42

For all fetish maniacs all over the world.
This is a new tiltle of our movies.

"Lactating Lesbian"

Maria and Riri are so young and cute girl that you can't believe they
are mother.She is small but she jets a lot of milk from her breast
beyond your imagination.Miyuri is a gril who wants to drink such a
Milk.This is a movie of such 3 lesbian women.Massaging their breasts
each other, rubbing, and drinking.They hug so tight and kiss , drink
ther milk mouth to mouth.Maria and Miyuri love each other like
lovers.Miyuri wants milk like a child and Maria gives her milk.Miyuri
feels so nice and sucks and sucks their brests.Wet in the Milk,
rubbing ther nipples each other, 3 women in the milk shower.Non stop
milk from Maria and Riri and Miyuri drinks it.

Watch this play that you will want to drink their sweet milk.

http://www.musha-burui.com/member/content/title.php?conid=110519

Thanks,

www.musha-burui.com
no comments
  assigmnet operator when class data members are immutable         


Author: chuck
Date: Mar 29, 2008 17:20

Hello,
I have a class whose data members are constant. So, default
assignment will not happen. I am trying to write and assignment
operator method that will allow assignment.

I think my assignment with the swap might be the right direction but I
am currrently stumped.
Can anyone help with this assignment operator?

Thanks,
Chuck

incase formating is messed up
http://pastebin.ca/962759

#include // assert
#include // cout, endl
#include // vector
#include

struct A {
const int i;

A (int i) : i (i)
{}
Show full article (1.30Kb)
3 Comments
  The purpose of references to functions         


Author: Irfy
Date: Mar 29, 2008 17:16

Could someone elaborate on the purpose and concrete usage scenarios of
references to functions. What can references to functions do that
pointers to functions cannot. Why are they in C++?

A swap function with two reference parameters of the same type is a
typical example to explain the purpose of references to objects in C++
and the way they can be used, but since functions cannot be
"changed" (in the sense "exchange the bodies of functions foo and
bar"), I cannot think of an example making the purpose of references
to functions obvious. I guess I must be missing something.

I found a comment by Rob Williscroft in the Thread
http://groups.google.com/group/comp.lang.c++/browse_thread/thread/9be1aaffa928bb24/6c736d2133cf30dc...#6c736d2133cf30dc
saying:
> Yes, but you could also ask another question, why are references to
> functions part of C++ since they don't provide any utility that
> isn't provided by function pointers. I think the answer is that
> it allows a simple function to behave like a 'functor', particularly
> a 'reference to a functor', more efficiently. This is important for
> the standard library algorithms.
Show full article (1.31Kb)
1 Comment
  Re: cut a string in file         


Author: Ian Collins
Date: Mar 29, 2008 17:16

June Lee wrote:
> I have a big text file (about 10MB)
>
> is there fast way to delete the string
>
> xmlns='urn:TMSWebServices'
>
> from the file quick?
>
> the string will be some where in the first 20 line of the big text
> file.

Use a command line stream editor like sed.

--
Ian Collins.
2 Comments
  Compiler optimizations of copying PODs         


Author: tommy.hinks
Date: Mar 29, 2008 16:32

I am wondering if anyone knows how compilers auto-generate copy
constructors for PODs. Let me explain what I mean with an example:

struct A
{
int u;
int v;
};

If I were to write the copy constructor for the POD myself, I would
write it like this:

A::A(const A rhs)
: u(rhs.u), v(rhs.v) {}

the main point being that the member variables are initialized upon
creation, and not created and then assigned a value, like this:

A::A(const A rhs)
{
u = rhs.u;
v = rhs.v;
}
Show full article (0.63Kb)
2 Comments
1 2 3