473,385 Members | 1,588 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Is STL a part of C++ programming language?

Hello all,
I know STL is part of the standard.
Is STL a part of C++ language?

I heard scanf function is not a part of C.

Best regards.

Apr 28 '06 #1
3 1987
blackswift wrote:
I know STL is part of the standard.
Is STL a part of C++ language?

I heard scanf function is not a part of C.


STL is written in C++, and scanf() is written in C and portable to C++.

Here's why you heard these things. In a language like BASIC, the command
PRINT is a keyword. You can't write PRINT in BASIC, and it does magic things
(such as tricks with the ; delimiter, IIRC) that are beyond the ken of
BASIC's functional abilities.

Keywords are the things that turn blue in your editor. Things like int and
if. Operators are the marks like & and * that are also built-into the
language.

C++ keywords and operators are sufficiently powerful that you can trivially
write the equivalent of PRINT using them. So much of the functions that come
with every C++ implementation are powerful functions and classes written
using the core language's keywords and operators.

Someone might reply "STL is part of the ISO C++ Standard so it's part of
C++". That's mildly correct, and a tautology. Things that are part of a
language's Standard are of course part of the language. But none of the C++
implementations exactly follow the standard (IIRC), so we are really talking
about a de-facto standard here.

Further, the STL is defined so you can invent your own containers,
iterators, and algorithms, and you can mix and match these with the Standard
ones. Heaven for people mired in PRINT!

--
Phlip
http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!!!
Apr 28 '06 #2
blackswift wrote:
I know STL is part of the standard.
Is STL a part of C++ language?
No, if you want to be precise. There is _language_proper_ and then
there is library. The library is based on the language definition
and provides additional facilities that make life easier. Chapters
1 through 16 of the Standard define the language proper, chapters
17 through 27 define the library.
I heard scanf function is not a part of C.


That you'd have to ask in comp.lang.c.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Apr 28 '06 #3
blackswift wrote:
Hello all,
I know STL is part of the standard.
Well, a development of the STL is indeed part. The original STL still
exists and is separate from the standard.
Is STL a part of C++ language?


No, not if you define the C++ language as it is defined in clause 1.5/1
of the C++ standard.

Tom
Apr 28 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: BigDaDDY | last post by:
Um yeah....In case you haven't figured it out, Microsoft sucks. I'm going to be kicked back in my chair eating popcorn and watching football 10 years from now, while all you clowns are scrambling...
2
by: maxw_cc | last post by:
Hi to all of you, I was wondering what the Semantics part in C standard is really for? What should be on the constraints part and what should be on the semantics part? Is the implementation...
3
by: user | last post by:
Hi all, At the outset, I regret having to post this slightly OT post here. However, I strongly feel that people in this group would be the best to advise me on my predicament. I am working as...
6
by: ~neil~ | last post by:
Hello I was asked to try another group in an earlier post, I was writing the program in C inside a DOS window. Software of choice -> (Borland Turbo C++ 1.0). Nobody uses DOS anymore?...I'm I...
50
by: Romeo Colacitti | last post by:
Is the C library of most OSes (i.e, unix type OSes) implemented at the very low kernel or just outside kernel level? Looking through the source tree of Linux/BSDs it seems like the C library is...
14
by: Samy K | last post by:
I'm having a bit of problems entering a new row to an access database and what I would like to know is do I have to assign certain values in my INSERT INTO SQL statement. I have read about the...
97
by: Master Programmer | last post by:
Thinking of learning VB.NET? New programmer? Thinking of Moving over from VB 6.0? Read on friend, let me help you make a more informed decision......... Microsoft are a pathetic company,...
17
by: CoreyWhite | last post by:
I bought this book years ago, when I was just learning C++. Since then I've gone through every math course offered at my college, taken courses on coding C & thinking in terms how how to make the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.