ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello everyone. I have a assignment need to be done with using STDC++ library in linux.
I don't know what is STDC++ . And I don't know where to start ? Is if different from C++ ?
Can you tell me sth about StdC++ library , and please demo a simple Program using StdC++ to me.!!!!
STD C++ is just C++ using standard libraries. If the header file is in your include directory such as /usr/include/c++/3.3.1 this it is part of srd C++. Example header files would be:
ctime.h
iostream
iofstream
cstdlib
Basically if this is for school, the teacher/professor doesn't want to to get on the internet and download a library that does everything for you. Sort of like in math class when you aren't allow to use a calculator.
Write a program in Linux , using StdC++ library to add ,subtract , multiply , divide two polynomials . The polynomials must be implemented using Pointer or sth like that.
I have no Idea about what to do , could you help me , give me some code
Originally posted by calble STD C++ is just C++ using standard libraries. If the header file is in your include directory such as /usr/include/c++/3.3.1 this it is part of srd C++. Example header files would be:
ctime.h
iostream
iofstream
cstdlib
}
are all the header file in /usr/include/3.3.1 part of STD C++ ?
This, in reality, is a lot of libraries and a lot of functionality you just don't need for your assignment. What you will need looks like <iostream> (input/output of your data) and that is about it. The math you need is simple so there is no need to use the cmath library. Given this is a school assignment, I doubt you are going to get anyone to actually write any code for you. If you are still completely lost I recommend consulting the class textbook or perhaps your teacher.
Also note.. if you are used to C programming, that there are no .h's. The use of .h in an include is depreciated in newer versions of G++.
Hmm... so you're saying you want us to do your homework assignment for you?
That's a big no.
You won't learn much that way.
My advice, read a C++ tutorial, (like on cplusplus.com, for example... here, I'll make it easy for you, since you're obviously into doing things the easy way and having others do your work for you... click here, you lazy weasel)
Next, go to some place like The Wikipedia and look up with a polynomial is... I don't expect you to know what one is as others have obviously done all of your work for you your entire academic life.
That's it. No more freebies. You should get your ass kicked for publicly trawling for free homework answers... I don't like physically weak people, and I have no respect for the mentally weak, either... most decent programmers don't have time for it, either, as they have all put in time learning everything for themselves, whether in class or on their own.
Its not that hard.
Last edited by TheGiantPotato; 08-28-2005 at 05:46 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.