English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Is there any web site where I can search any C/C++ program????

2006-10-27 19:04:17 · 4 answers · asked by Milan S 1 in Computers & Internet Programming & Design

4 answers

Search existing programs? Google Code Search. If you're asking about learning, that's a different question.

2006-10-27 19:14:46 · answer #1 · answered by geofft 3 · 0 0

Some very smart optimizing compilers will not compile the classes cerror, clog, etc.... because the compiler detects that the symbols are not used. is just a header file though, their is an actual compiled binary that is linked too, and the linker cannot remove the code in that compiled binary (I guess it could, and some compilers / linkers might even do that).... Then their is also the fact that iostream exists for input and output operations. It stands to reason that if you are outputting information to a console, that you might need to get input as well, and so the inclusion of input, output and error objects makes sense. It's not like it's including objects that define linked lists or other data structures which are not necessarily relevant to input and output. I think your issue is less with C++'s design, and more with the design of its iostream library. It is not impossible to split up the contents of iostream so that each piece is in its own package, but then most developers would be including several header files instead of one, they would complain that this is unnecessary. Having the compiler and linker double check all symbols used in an attempt to prune unused code would increase compile times, which can be very large for big projects with millions of symbols. Python and Java might do this, but when was the last time you saw an operating system written in Python or Java? Or a Python or Java program that amounted to over a million code statements?

2016-05-22 02:30:23 · answer #2 · answered by Anonymous · 0 0

I have observed in yahoo answers that there are people who are in need of such basic programs. For those I am going to create a blog with the simple c, c++ programs written in TurboC. The blog will be up within one week. Keep in touch.

2006-10-27 19:50:47 · answer #3 · answered by manoj Ransing 3 · 0 0

cplusplus.com or google it

2006-10-27 19:12:40 · answer #4 · answered by lilykiss8 2 · 0 0

fedest.com, questions and answers