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
  UNAVOIDABLE situation for the use of vector<T>::value_type         


Author: subramanian100in
Date: Mar 3, 2008 21:56

For a type T, consider vector::value_type. When is this member
'value_type' useful; in other words, when is the use of value_type
unavoidable?

Kindly clarify.

The reason for asking this question is the following:

For a particular type T, say std::string, Suppose I use,
vector::value_type obj;
But, to initialize or assign a value to 'obj', we have to know the
actual type T. So we can simply declare
string obj;

In this example, the need for value_type is AVOIDABLE.

But there should be some genuine situation wherein the use of
value_type is UNAVOIDABLE. I am unable to come up with an example for
this unavoidable situation. Please clarify.

Thanks
V.Subramanian
2 Comments
  download students tutorials,ebooks,softwares here for Free!!!!         


Author: priya4u
Date: Mar 3, 2008 20:24

download students tutorials,ebooks,softwares here for Free!!!!

Download Softwares Ebooks Students tutorials Games Ring tones
Wallpapers and Lots of fun everything for FREE only at www.studentshangout.com
1 Comment
  Help splitting a simple date string         


Author: yogi_bear_79
Date: Mar 3, 2008 17:49

I have a simple string (i.e. February 27, 2008) that I need to split
into three parts. The month, day, and year. Splitting into a string
array would work, and I could convert day and years to integers
later. I've bene looking around, and everything I see seems more
complicated than it should be! Help!
7 Comments
  Latest XML parsing and memory usage benchmark         


Author: jimmy Zhang
Date: Mar 3, 2008 13:02

The latest benchmark results are now available using the latest Intel Core2
Duo processor. In summary, VTD-XML using JDK 1.6's server JVM achieved an
astonishing 120MB/sec sustained throughput per core on a Core2 Duo 2.5GHz
processor.

* Parsing and Memory Usage:
http://www.ximpleware.com/2.3/benchmark_2.3_parsing_only.html

* XPath : http://www.ximpleware.com/2.3/benchmark_2.3_xpath.html

* Parsing/XPath/Update:
http://www.ximpleware.com/2.3/benchmark_2.3_update.html

* Indexing/XPath/Update:
http://www.ximpleware.com/2.3/benchmark_2.3_indexing.html
no comments
  Best advanced books         


Author: Tomás Ó hÉilidhe
Date: Mar 3, 2008 10:33

What's the best book for reading up on the standard library, with
sample usages and the like? I read a book a few years ago by a guy
called "Andrei" that was pretty good, but I just want to check if it's
been surpassed in recent years.

Is there any book that includes the new stuff that's coming in with
the next C++ Standard?

Is Bjarne Stroustrup's book still the main book for the language
itself?
5 Comments
  C++ interview questions         


Author:
Date: Mar 3, 2008 09:53

After1 month from now, I will start giving job interviews. Searchign at
Google led me to several common questions asked in interviewers looking
for C++ based programmers. I have titled it "C++ interview questions - 1
(technical)" as, after sometime, I will start another thread titled "C++
interview questions (general)":

I searched for the archives too but didn ot get answers:

1.) Why array index start at 0 (zero) ?

I got these results but I can't know which one is right:

http://groups.google.com/group/comp.lang.c/browse_thread/
thread/73497fc628da3bf5/69c1e93404e86b5c?q=why+array+index+start+at+zero&lnk=ol&
http://groups.google.com/group/comp.lang.c/browse_thread/thread/6aadd2ee93c4283e
/675769f6aa2315ce?lnk=gst&q=why+array+index+start+at+zero#675769f6aa2315ce
http://groups.google.com/group/comp.lang.c++/browse_thread/thread/3323640c835dd4.../
e0972682186dcdd9?lnk=gst&q=why+array+index+start+at+zero#e0972682186dcdd9

2.) What is RTTI and What is the difference between dynamic_cast and
static_cast ?

RTTI means "Run-Time Type Information" and I have no idea about its
definition :(.
Show full article (3.97Kb)
21 Comments
  Re: Reading console output and writing to console         


Author: fabio.mazzarino
Date: Mar 3, 2008 09:18

James:

I have exactly the deadlock problem you have just described.

I have two pipes for reading and writing. After 20KB the pipe buffer
is full. Every reading from the pipe returns errno 11 (EAGAIN), and
the child process stop writing due to the buffer overflow.

The parent keeps waiting for the son to finish, while the son keeps
waiting for the parent to empty the buffer.

How can I solve this?

Fabio A. Mazzarino

James Kanze escreveu:
> On Jan 26, 9:11 am, FNX fnxweb.no.junk.please.com> wrote:
>> Around about 26/01/08 07:39, Rolf Magnus scribbled ...
>
>>> Not possible with the system() function. You need to use operating...
Show full article (1.56Kb)
1 Comment
  error C2440 grrrrrrrr         


Author: carmelo
Date: Mar 3, 2008 09:08

Hi! I wrote this function that shoul read dinamically a string, but
the compiler gimes me this error:
error C2440: '=' : cannot convert from 'void *' to 'char *'
Why?

char *read_string(void)
{
int i=1;
char *string, c;
Show full article (0.50Kb)
5 Comments
  Linker Error         


Author: siddhu
Date: Mar 3, 2008 08:43

Dear Experts,

I am getting a linker error in VC7.

I have written a singleton

//SysInfoFileManager.h

namespace SysInfo
{
class SysInfoFileManager
{
SysInfoFileManager(){}
SysInfoFileManager(const SysInfoFileManager&);
~SysInfoFileManager(){}
SysInfoFileManager& operator=(const SysInfoFileManager&);
static SysInfoFileManager* _pinstance;
public:
static SysInfoFileManager* instance();
//void trim(std::string& str);
};
}
Show full article (1.33Kb)
3 Comments
  please I want to know what does this mean??         


Author: mohamed azaz
Date: Mar 3, 2008 08:01

hi
please can one tell me what does this code mean

HDC b=::GetDC(this->GetSafeHwnd());

thank you

bye
2 Comments
1 2