| | |
What are vectors?
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
vectors are much like arrays
this is in no ways the end all be all deffination, but a somewhat decent look at em
C++ Syntax (Toggle Plain Text)
#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 the end
this is in no ways the end all be all deffination, but a somewhat decent look at em
Dont forget to spread the reputation to those that deserve!
Dev is better for pure c++, VS tends to convolute what is standard c++. Such as when killer typo mistook
As standard c++.
C++ Syntax (Toggle Plain Text)
for each
As standard c++.
*Voted best profile in the world*
•
•
•
•
Dev is better for pure c++, VS tends to convolute what is standard c++. Such as when killer typo mistook
C++ Syntax (Toggle Plain Text)
for each
As standard c++.

dont try and set the standard with my mistake that would be a mistake in itself

i've asked a couple professionals (30+ years experience in software/hardware..etc development, one of which is currently head of product research development) and when i asked about the compiler they use, they replied that they use microsofts products.
when i asked about other compilers, like borland, turbo, bloodshed they just laughed them off.
Last edited by Killer_Typo; Jul 11th, 2007 at 6:23 am.
Dont forget to spread the reputation to those that deserve!
Nah, VS is too bloated and c++.net is horrible.
For pure c++. i.e no windows GUI crap, you don't need Visual Studio.
And anyway, if you are writing code it is best to test it with different compilers and operating systems to ensure portability.
For pure c++. i.e no windows GUI crap, you don't need Visual Studio.
And anyway, if you are writing code it is best to test it with different compilers and operating systems to ensure portability.
Last edited by iamthwee; Jul 11th, 2007 at 6:27 am.
*Voted best profile in the world*
![]() |
Similar Threads
- Vectors Versus Arrays (Java)
- Using Vectors and Arrays with fstream (C++)
- minor problem with vectors and OOP (C++)
- Help with vectors and structs (C++)
- help with vectors (C)
- Alphabetically Order Vectors Elements (Java)
- Vectors, Functions, and Sorting... oh my! (C++)
Other Threads in the C++ Forum
- Previous Thread: Help with 'for' loops and formatting using printf
- Next Thread: Reading multiple lines from a txt file
| Thread Tools | Search this Thread |
api application array arrays based beginner binary c++ c/c++ calculator char char* class classes code compile compiler console conversion count delete deploy desktop directshow dll download dynamic dynamiccharacterarray encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp iamthwee ifstream input int java lib library linkedlist linker list loop looping loops map math matrix memory newbie news number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg simple sorting string strings studio temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets






