C++ Programming
04-24-2010, 12:13 AM
http://www.barakasoft.com/script/Forums/Images/smiley_confused.gif The Visual Studio help has the following snippet under vector.front:
// vector_front.cpp
// compile with: /EHsc
#include
#include
int main( )
{
using namespace std;
vector v1;
v1.push_back( 10 );
v1.push_back( 11 );
int& i = v1.front( );
const int& ii = v1.front( );
cout
// vector_front.cpp
// compile with: /EHsc
#include
#include
int main( )
{
using namespace std;
vector v1;
v1.push_back( 10 );
v1.push_back( 11 );
int& i = v1.front( );
const int& ii = v1.front( );
cout