473,792 Members | 3,005 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Does c++ have an uniform class library?

JTL
I have learnt java before and now begin to learn c++

what puzzle me is that seem that different SDKs(c++builder , vs.net,
gcc..) has its own class library
we know that in java there are only one uniform class library
so that the codes I written in JBuilder can just copy to JCreator or
Eclipse
and they all run well

does c++ have such an uniform class library so that I could just learn
only one time
and then I can use it in c++builder or vs.net or gcc, just the same
codes
what's this uniform class library's name?

if they(c++builder , vs.net,gcc) use different librarys, what class
library do they use?
which library is most usefully or most common ?

Thank you very much in advance.

Dec 1 '06 #1
38 2449
JTL wrote:
I have learnt java before and now begin to learn c++

what puzzle me is that seem that different SDKs(c++builder , vs.net,
gcc..) has its own class library
we know that in java there are only one uniform class library
so that the codes I written in JBuilder can just copy to JCreator or
Eclipse
and they all run well

does c++ have such an uniform class library so that I could just learn
only one time
and then I can use it in c++builder or vs.net or gcc, just the same
codes
what's this uniform class library's name?
Yes, the language standard (ISO/IEC 14882) describes a number library
facilities that every C++ compiler is supposed to provide. These
libraries are sometimes called "the Standard C++ library", or "standard
template library, STL" (they are not 100% identical, STL is older).
if they(c++builder , vs.net,gcc) use different librarys, what class
library do they use?
which library is most usefully or most common ?
The standard library is the common subset of them all.

D.
Dec 1 '06 #2
* JTL:
I have learnt java before and now begin to learn c++

what puzzle me is that seem that different SDKs(c++builder , vs.net,
gcc..) has its own class library
In addition to the C++ standand library, yes.

we know that in java there are only one uniform class library
so that the codes I written in JBuilder can just copy to JCreator or
Eclipse
No, we don't know that. Java has a more extensive "standard" library
than C++, except that (nit-picking my own statement) Sun chickened out
from the standardization process so that Java isn't standardized.
Still, Java isn't so poor a language that there aren't any third-party
libraries.

and they all run well
That might seem to be the case for simple applications, yes.

does c++ have such an uniform class library so that I could just learn
only one time
and then I can use it in c++builder or vs.net or gcc, just the same
codes
what's this uniform class library's name?
That's the C++ standard library. But the standard library intentionally
covers only functionality that is very general and platform-independent.
The C++ model is that instead of one huge standard library you can
choose the third-party library you want, or make your own (and that's
why Java's platform-independence is founded on a virtual machine and
platform-specific adaptions of its libraries, written in C and C++).

if they(c++builder , vs.net,gcc) use different librarys, what class
library do they use?
which library is most usefully or most common ?
Undoubtedly the C++ standard library.

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Dec 1 '06 #3
On 2006-12-01 18:59, JTL wrote:
I have learnt java before and now begin to learn c++

what puzzle me is that seem that different SDKs(c++builder , vs.net,
gcc..) has its own class library we know that in java there are only
one uniform class library so that the codes I written in JBuilder can
just copy to JCreator or Eclipse and they all run well

does c++ have such an uniform class library so that I could just
learn only one time and then I can use it in c++builder or vs.net or
gcc, just the same codes what's this uniform class library's name?

if they(c++builder , vs.net,gcc) use different librarys, what class
library do they use? which library is most usefully or most common ?
There is something called STL (Standard Template Library) which is a
very powerful library, though it's nowhere near as comprehensive as
those of Java or .Net or most others. However depending on what you
want to do with your application they can be more than enough. STL is
part of the C++ standard so you can expect it to work with any decent
C++ compiler.

STL does not include any GUI-features so if you're out to make
applications with a GUI you'll have to find some third-party library to
use, there are a couple of third-party libraries/frameworks providing
GUI-classes and more that try to be platform-independent, meaning that
the code should just work when going from Linux to Windows or such. Qt
and GTK are examples of such libraries/frameworks.

--
Erik Wikström
Dec 1 '06 #4
Apart from STL there are many libraries. Boost is the most popular, but
I think you might like this one:
http://appinf.com/poco/docs/
Looks quite similar, doesn't it?

Dec 1 '06 #5
JTL
Thank you very much for your help

I get more clearly now
different SDK have its own library
but all of they can use the Standard C++ library
so now I plan to begin with the STL
and use MFC to make UI

Dec 3 '06 #6
IR
JTL wrote:
and use MFC to make UI
You'd really better use wxWidgets or Qt. Or if you *have* to use
something Microsoft specific, their WTL. If you have access to Borland
C++ Builder, their VCL is not that bad for RAD (and it is very easy to
learn and use).

But the MFC is one of the worst pieces of code I ever saw, and is
really outdated by now. Unless you have legacy MFC code to maintain
(which, according to your post, I doubt), don't even bother learning
it.

Just my thoughts though.

--
IR
Dec 3 '06 #7
JTL
do you means wxWidgets or Qt is better than MFC in making windows UI?
but I haven't heard them before......
I think as I want to make UI in MS windows,it's better to choose MS's
MFC....

Dec 4 '06 #8

JTL wrote in message <11************ ********@80g200 0cwy.googlegrou ps.com>...
>do you means wxWidgets or Qt is better than MFC in making windows UI?
but I haven't heard them before......
I think as I want to make UI in MS windows,it's better to choose MS's
MFC....
wxWidgets URL: http://www.wxwidgets.org

--
Bob R
POVrookie
Dec 4 '06 #9
On 2006-12-04 16:03, JTL wrote:
do you means wxWidgets or Qt is better than MFC in making windows UI?
but I haven't heard them before......
I think as I want to make UI in MS windows,it's better to choose MS's
MFC....
Just because you've heard a lot about MFC does not make it good, rather
you might have heard about it because many consider it not good :-)
And besides, MFC is on it's way out, if you want to learn something, go
for something that will last a few years, if you still want to go the MS
way take a look at .Net. If not you might want to take a look at Qt,
which is quite well known (along with others).

--
Erik Wikström
Dec 4 '06 #10

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

Similar topics

1
1705
by: Robert Oschler | last post by:
Is there a Javascript function, or library, that will take a URL and make it uniform/consistent? Something that will resolve all relative pathing and the current domain and protocol and return a uniform URL? Like the realpath() function in PHP? Thanks.
4
2211
by: Curious | last post by:
Hi, I am writing a class Distribution that inherits from Random class public class Distribution : System.Random { public int Uniform(int min, int max) { return this.Uniform(min, max); }
8
25482
by: kiranchahar | last post by:
Hey all, How do I generate random numbers with Uniform distribution Uniform(a,b) using C-programming? I want to generate uniform random numbers which have mean following Uniform(p,q) and also variance as Uniform(s,t)? any suggestion would be really appreciated. Thanks, Kay
55
6249
by: Zytan | last post by:
I see that static is more restricted in C# than in C++. It appears usable only on classes and methods, and data members, but cannot be created within a method itself. Surely this is possible in C# in some way? Or maybe no, because it is similar to a global variable (with its scope restricted) which C# is dead against? Zytan
4
2435
by: Alex Vinokur | last post by:
Here is some tuple (triple in this case) with uniform types (for instance, double): boost::tuple<double, double, doublet; Is there any way (in boost::tuple) to define such tuples something like uniform_tuple <3, doublet; ? Alex Vinokur
0
10430
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10211
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10159
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10000
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9033
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7538
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6776
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5560
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3719
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.