Solved

Question for Axter   (about basic_ios)

Posted on 2002-06-06
5
288 Views
Last Modified: 2010-04-02
Axter,

Thank you for your explanation for my last question
http://www.experts-exchange.com/jsp/qManageQuestion.jsp?qid=20308360

I want to know a little more:)

>According to the C++ standard, you're not allow to pass by value.

What is a C++ standard? Do I have that :-)

>private:
>basic_ios(const basic_ios& ); // not defined
>basic_ios& operator=(const basic_ios&); // not defined
>istream and istringstream both derive from basic_ios.  
>The standard defines basic_ios copy constructor
>and assignment operator as both private and not defined.

You mean 'private' shoul avoid basic_ios to be copied by me in compiling time?

And how do I know what belong to basic_ios ?
0
Comment
Question by:learn
  • 2
  • 2
5 Comments
 
LVL 30

Accepted Solution

by:
Axter earned 60 total points
ID: 7060449
>>What is a C++ standard? Do I have that :-)
More then likely not.  It's not free, and it doesn't come with any of the major compilers.

You can get a draft copy free from the following link:
http://cs.calvin.edu/c++/C++Standard-Nov97/

You can purchase the C++ standard via the following link:
http://webstore.ansi.org/ansidocstore/product.asp?sku=ISO%2FIEC+14882%2D1998
0
 
LVL 30

Expert Comment

by:Axter
ID: 7060451
>>You mean 'private' shoul avoid basic_ios to be copied by
>>me in compiling time?

Yes.


>>And how do I know what belong to basic_ios ?
The C++ standard states that it's a decendent of basic_ios.
0
 
LVL 22

Expert Comment

by:nietod
ID: 7060453
>> What is a C++ standard? Do I have that :-)
The C++ standard is the set of rules that define the C++ language.  The define the sytax of the C++ language (i.e. ";" ends a statement, "::" is the scope resolution operator), how language constructs are to behave (i.e. what does a for loop do) how memory is to be organized (memory is stored by bytes of at least 8 bits.  Each byte must be large enough to store a character of the host's character set.  Each byte is stored at unique addresses....).   Amazingly about 1/2 of the standard does not deal with the Langauge proper, but with the STL library, which is really a library written in the C++ language, and not (in many ways) part of the language.

The standard was developed by a joint committee of ANSI (American National standards Institute) and ISO (International standards Organization (In English)).   If you are interested in its development I strongly suggest you read Bjarne Stroustrup's The Design and Evolution of C++.   It takes you form the Roots of C++ to nearly the end of its standarization.   Its entertaining reading and of some (not a lot) value to a programmer.
0
 

Author Comment

by:learn
ID: 7060482
To nietod,

Thanks a lot for your interesting explanation :-)
0
 

Author Comment

by:learn
ID: 7060484
Thanks for your help.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now