This question already has answers here:
Difference between iostream and iostream.h
(3 answers)
Closed 4 years ago.
In my old computer (nearly 15years), I use MsDos and Borland C++ compiler.
The problem is,
#include <iostream.h>
works but
#include <iostream>
using namespace std
This doesn't works here.
Is there any way to use modern IDE on MsDos
Borland is so old that it was made before the C++ Standard Library existed.
At that time the effective standard for C++ was the ARM, the Annotated Reference Manual by Bjarne Stroustrup and Margaret Ellis, and it was named <iostream.h>.
With the first standardisation in 1998 <iostream.h> was dropped, and replaced with just <iostream>.
I don't know what to say. Just use <iostream.h>, or a newer compiler.
Related
This question already has answers here:
How can I add C++11 support to Code::Blocks compiler?
(4 answers)
Closed 3 years ago.
Recently I have tried to use some Advance c++ functions in CodeBlocks but all the time it throw errors like " according to c++ 98....... ".
If CodeBlocks uses an old version of c++ can I update it to c++11 or c++14.
I am just a new learner and cordially requesting you to help if you know the answer.
You can set compiler version and language standart in settings.
See this How can I add C++11 support to Code::Blocks compiler?
This question already has answers here:
Is the backslash acceptable in C and C++ #include directives?
(6 answers)
Closed 5 years ago.
I had always used <bits/stdc++> library for my codes, however, I noticed that <bits\stdc++.h> works as well on CodeBlocks 16.01 on GNU GCC compiler, Windows 7/10 environment.
My question is Which of those is right, and if not both, why is one wrong?
I have successfully compiled code with that include in more than one computer.
Which of them is right, if the both are not, why is one of them right and the other one not?
Only the forward slash / is right. Compilers under Windows systems use an extension that can handle both.
This question already has answers here:
Conio.h not working in codeblocks (Undefined reference to ..)
(5 answers)
Closed 7 years ago.
I am making a record entry system in C++. In this system, I need to use commands like gotoxy,clrscr,sound,nosound,etc. I work in Code::Blocks IDE and use a GNU GCC compiler. For the gotoxy command, I even downloaded the header file but still it does not work. Can anyone give me the code or the duplicate of these functions.Thanks!
The problem is that <conio.h> does not work on modern compilers . It only works on old IDE's ones like TurboC++ and DevC++ ( They are very old, TurboC++ was used in the 20th century, no one hardly uses it anymore ). So, in short, it won't work unless you get an old compiler ( which is not a good idea ).
<conio.h> is ancient.
<conio.h> was commonly used in Turbo C, to manipulate the console input/output. This was prominent in the old DOS age, where most of the things were command-line.
As for now, <conio.h> is not supported in gcc.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
The community reviewed whether to reopen this question 1 year ago and left it closed:
Not suitable for this site
Improve this question
I have some questions about C++:
Is C++ an open-source project like Linux, Qt, ... or not?
Which community maintains C++ and develops new versions?
If it is open-source where can one access the source code for C++
implementations?
C++ itself is only a description what the language should be,
without a definite implementation.
Anyone can make his own implementations (compiler etc, runtime library, ...)
and call it C++ if it fits to the description.
http://www.open-std.org/jtc1/sc22/wg21/
And if a implementation is open source depends on the creator.
Examples of implementation (parts):
GCC/G++, libc/libc++, clang (++ too), Visual studio and MSĀ“ runtime...
C++ is developed by an ISO standard committee. There's also a C++ foundation that runs a web site you might want to read.
C++ itself is a language, not a specific implementation, so there's no source code available for the standard/language itself.
Some C++ implementations are open source (e.g., Gnu and Clang).
C++ is a code standard defined by the International Organization of Standardization (ISO). There are many different implementations of the language, but they all tend to conform to C++11. Unlike Linux or Qt, C++ is just a standard, and to use any code written in the language you'll need a compiler. The major compilers (list from Wikipedia) are LLVM Clang, GCC, Microsoft Visual C++, and the Intel C++ Compiler.
C++ revisions are dealt with by ISO, and are influenced primarily by the maintainers of the above four implementations.
Clang and GCC are both open-source, I'm sure if you poke around you can find other conforming compilers but those are the two most used.
C++ is an ISO standard. There are many implementation of compilers (and linkers). GCC is an open source project of many compilers one of which is the C++ compiler, g++:
http://gcc.gnu.org/projects/cxx0x.html
I saw someone use stlport in visual c++, but I think standard c++ library is included with visual c++ already? what's the advantage to use stlport? is stlport free?
Most likely either the code was written before visual c++ had a full implementation (for example in VC6) or the code is cross platform and the author wanted to make sure the same library was there on each platform. (That's not so much of an issue recently but even 2 or 3 years ago there were much more substantial differences from the standard in each implementation)