// proccessing_args.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <vector>
#include <string>
#include <iostream>
#include <conio.h>
usingnamespace std;
int _tmain(int argc, _TCHAR* argv[])
{
vector<string> cities;
cities.push_back("Seattle");
cities.push_back("Los Angeles");
// Use C++ "for each" construct syntax
// to iterate over "cities" vector
for each(string& city in cities)
{
cout << city << endl;
}
_getch();
return 0;
}
C++Visual studio 2010 Express was released in 2010. Final version of C++11 standard was released in 2011. Do the math.
I suggest you to upgrade to VS 2013 Express. There is littke reason to not upgrade to newer version when it is avaiable.
It is possible, but unsupported. VS2010 is outdated and today most people on this site uses C++11 so you are won't be able to use majority of answers here with it.
May I ask you how much it takes disk space?
MS lists space reqirement for
Express 2013 for Windows Desktop as 5 GB of disc space.
I have updated the program, but I cannot find where it has been installed. It is suspicious. The installation took just few seconds and they did not ask me where I want to install it!
Did you download installer from http://www.visualstudio.com ?
It will be a net installer which downloads and installs required elements itself.
Instalation routine would be same as for 2010 version
They written I need 5 GB of available hard disk space but my system disk space is only 300Mb. And Programs disk space is 10Gb free. But if they need 5 GB so some proccess should take at least minutes and not seconds. The file I installed was: vcredist_x86.exe having 6.3 Mb
It is not Visual Studio. It is a bunch of libraries which are required by some programs.
I have posted links to the actual installation.
As Visual Studio deeply integrates with OS, it requires some libraries to be installed on system disc. You should have most of them installed already, like .NET4 (if not, it is another 1 GB).
Express versions of VS are free and does not require a key
You might swithc compiler say to code::blocks or Orwell Dev C++. Which have C++11 support and more lightweight.
By the way 300 mb on system disc is too little: simple NVidia drivers update requires at least 1.4 GB to be free
I am trying to install it. Gray window with title "Express 2013 for Windows Desktop" appeared. But nothing happens. I wait some time. My cpu performance is at cca3-4%. Nothing happens. I try to click on the Window but nothing happens. Only button that works is the minimize button. I cannot focus close button or arrow image. This is how the window looks but it does not have any text or buttons under the title:
One of the possibilities: You downloaded VS for windows, not Windows Desktop
Second: You are using either XP of windows 7 without 1st service pack
If you are ussing win XP, only thing you can do is to get alternative compiler.
Configuring C++ 11 Programs for Windows XP
Visual Studio 2013
Other Versions
2 out of 7 rated this helpful - Rate this topic
By installing Visual Studio 2012 Update 1, you can use the C++11 language enhancements, compilers, libraries, and other features of Visual Studio 2012 to create apps that target Windows XP and Windows Server 2003, in addition to the operating systems that are already supported.