Today I had the rare 'pleasure' of dealing with some C++;. To start, the first thing I had to do was get a compiler. For this I ran to my usual engine and typed in "free c c++ compiler". The first hit said "Borland C++ Compiler version 5.5 Free Download Is Here !!!", to which I responded with a HUGE , as I used Borland compilers before in my undergrad yrs.
Sad to say however, to get that free 8.7MB product, released on 08/24/2000 it told me I had to register and fill out a form. Some of the required fields for this form were: first name, last name, telephone, address, city and country. Now, I'm not one for giving out easy personaL info esp just for a quick dabble in C++, so I pushed the Back button a couple times and returned to my engine. After about 20mins, that too proved to be a waste.
I then found an old Visual C++ cd from MS lying around the place and installed that (this is version 1.52). That installed great and took about 155MBs (stupse) but I didn't care as I got my compiler! To test, I put in some code and click Build. Immediately I get an "iostream : No such file" error... again, "stupse!". So I rushed to claim back my hd space and get rid of that prog however, no uninstall file, not even from Add/Remove programs. By now, I'm not the happiest guy around as one can imagine!
FINALLY, something tells me to check VS 2005 and in the Project Types side-pane in the New Project window, there is the heading "Visual C++". <- he reappears here.
So I go to creat a new project but for some reason I've found it a bit difficult, it not as simple as I would have thought at all. Ways, for ones who just want to use VS 2005 to play around with standard Windows C++ (cpp) files follow the following steps (PS, of course this is under the pretense that you've installed Visual C++ component when you installed your version of VS 2005):
One last thing, remember in using C++ to include the "using namespace std;" to enable you to just put 'cout << "blah blah";' instead of 'std::cout << "blah blah";'. Oh and if you want VS 2005 C++ specific help, pop the string "visual studio 2005 c++" into your search and hopefully that gives you some good info. Usually a nice MS link should be up there with some samples and even a team blog. Enjoy!;
tagged: professional // Comments [2]
Related posts:Select a random row in MS SQL...Regular expressionsVS2005, ASP.NET 2 & DLLs, DLLs..MS's ASP.NET and.. PHP2-way databinding cascading drop down lists within a FormViewApplicationName Property when customising providers
Disclaimer The posts on this blog are provided "AS IS" with no warranties. The opinions expressed herein are my own personal opinions and do not represent any other person's views in anyway.