Re: Quick question about streams...?
- From: Robby <Robby@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 5 May 2006 22:07:02 -0700
Thankyou Carl....!
Okay, I don't mind learning all there is to learn, but wait a minute...
All the commands that I am doing in Charles Petzold's book (for loops,
structures, malloc, and Create file.... isn't that all "C" language)
And isn't the API a bunch of C functions?
I was always confused on this.... For once and for all...............Can I
confirm something.
Our processor right runs binary code... right....
which in turn they developped assembler on top of binary code right.....
In which then they invented C which runs on assembler right.....
Then they developped DOS on C right...... or wrong?
Whereby they made Windows out of C language right..... coupled with C
functions as the API right or wrong... or am I way off?????
And then how does C++ and VC++ tie into all of this????
And I guess mfc is built to run on the API right....
And what about atl... what is that? and .net runs on the API also or on C++?
And what's a Frameworks?
Anyways.... I always wanted to know concretely where all this stuff really
comes from???? I hope some can clear this for me...
All educational comments are *very* *very* appreciated!
Thanks!
--
Best regards
Robert
"Carl Daniel [VC++ MVP]" wrote:
Robby wrote:.
Hello,
I am reviewing C++ and if I may say so I prefer C++ instead of C. So
I am gearing myself towards programming my future programs using
classes, objects, inheritance and so forth.
However, I see the need to do some saving of information on my hard
drive and the way to do this is (I believe) is using I/O streams.
I have a very interesting chapter in one of my C books thats shows
all of this! However, can I then apply what I would learn in C (IO
streams) to C++ or is C++ I/O streams far more different?
Quite different, although C++ IOStreams is typically implemented as a layer
atop the C stream functions, that's not a requirement and the programming
interfaces for the two are quite different.
My C++ book does not talk about streams. Also Petzold's book talks
about "Create file" in head.c program on p.411, I don't know if this
is the same as what my C book explains! (It doesn't seem like it!)
No, that's Win32 file I/O - the actual OS-level functions that C stream I/O
is built on (when running on Windows, that is).
I am a little confused about what to learn in order to do some file
saving operations!
Can someone guide me to what I should be learning.... C-I/O streams
or C++ I/O streams?
Ideally, all of the above.
I hope my question makes sence!
Yep, perfect sense.
All suggestions appreciated.
If you're serious about C++ <iostream> streams, the de-facto standard
reference is "C++ IOStreams and Locales" by Angelika Langer and Klaus Kreft.
"The C++ Standard Library" by Nicolai Josuttis has a lot of coverage of I/O
streams as well.
-cd
- Follow-Ups:
- Re: Quick question about streams...?
- From: Tim Roberts
- Re: Quick question about streams...?
- From: David Wilkinson
- Re: Quick question about streams...?
- References:
- Re: Quick question about streams...?
- From: Carl Daniel [VC++ MVP]
- Re: Quick question about streams...?
- Prev by Date: Re: Quick question about streams...?
- Next by Date: Re: Confirm this please - Access Specifiers
- Previous by thread: Re: Quick question about streams...?
- Next by thread: Re: Quick question about streams...?
- Index(es):
Relevant Pages
|