I read that vectors and arrays are almost the same. Could you explain this to me?
krnekhelesh
16
Junior Poster
Recommended Answers
Jump to Postvectors are much like arrays
#include <vector> int main() { //standard way to create an array int myarray[someconstsize] = { 0 }; //assigns all values to default zero //vector declaration vector<int> myvec;//declares an int type vector //adding data to them myarray[0] = 4; myvec.push_back(4); //adds four to …
Jump to PostI'm not even sure you can use stl stuff in turbo c. (old one that it).
When you finish your edjumacation and if you want to learn proper c++, get dev-cpp from bloodshed.
Jump to PostI have dev-c++ but I didn't use it because it didn't support graphics
could always work with Visual Studio
i happen to find this environment quite fun and easy to work in.
Jump to PostDev is better for pure c++, VS tends to convolute what is standard c++. Such as when killer typo mistook
for each
As standard c++.
All 23 Replies
iamthwee
krnekhelesh
16
Junior Poster
Killer_Typo
82
Master Poster
iamthwee
commented:
You explanations are sooo cute!
+12
iamthwee
krnekhelesh
16
Junior Poster
Killer_Typo
82
Master Poster
iamthwee
Killer_Typo
82
Master Poster
iamthwee
krnekhelesh
16
Junior Poster
Killer_Typo
82
Master Poster
~s.o.s~
2,560
Failure as a human
Team Colleague
Featured Poster
iamthwee
krnekhelesh
16
Junior Poster
iamthwee
krnekhelesh
16
Junior Poster
krnekhelesh
16
Junior Poster
Bench
212
Posting Pro
krnekhelesh
16
Junior Poster
krnekhelesh
16
Junior Poster
iamthwee
Killer_Typo
82
Master Poster
JRM
107
Practically a Master Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.