I am using DosBox 0.74 and I want to use vectors function, but I can't locate its header file ? its not <vector.h>
nor <vector>
. I tried it with Visual Studio and it was working fine.
It has a different name in DosBox or what ?
Please help me, since I have to submit my work with DOSBox.

- 55
- 7
-
DOSBOX ? are you using TurboC++ ? – Arun A S Mar 29 '15 at 13:39
-
Yes, TurboC++ (DOSBox 0.74) – Syed Rafay Mar 29 '15 at 13:42
-
yeah :D I use Visual Studio most of the time but I have to submit my assignment in University using DOSBox :c – Syed Rafay Mar 29 '15 at 13:59
-
1Erm what? Is that an actual requirement of the source? – Neil Kirk Mar 29 '15 at 14:04
2 Answers
Vectors were implemented in C++ after Turbo C++. In fact, C++ (as the standardised language we know it today) didn't exist until after Turbo C++! It is a truly ancient IDE and anyone would recommend not to use it. It's better to use IDEs of this century.
So, there are no STL libraries like <vector>
in Turbo C++.
Simply put, you can't use vectors in Turbo C++. If you really want to, then you will have to create a library for it yourself (but it won't be worth it).
You said that you have Visual Studio; stick to that. And if you want, you can use Code::Blocks. Just stop using Turbo C++.

- 378,754
- 76
- 643
- 1,055

- 6,421
- 4
- 29
- 43
-
4Ok, I got it. I will request my teacher to allow us working with Visual Studio instead of this old DOSBox. @arun thanks! – Syed Rafay Mar 29 '15 at 13:50
-
I think your best bet would be Open Watcom C/C++. It has STL and it can compile for Dos, which to my knowledge current versions of Visual Studio cannot do. I use it with DOSBox for unit testing embedded software in a 16-bit environment.

- 304
- 2
- 7