hi...very nice tutorial! But i had a problem. I instead i wrote a smaller code, but when i execute it i.e. (press F5) the file takes in values and ends abruptly. Due to this i cannot even see the last cout statement. Please guide me with my code.

Wow, I just checked back on this and there are over 100,000 views that's quite a few...

Would there be interest in me updating the tutorial for VS 2010? I'm not exactly sure how popular the new IDE is and whether or not its in widespread use yet (beyond the usual early adopters). Also, I don't really like having the line'by-line outside of a code block, but at the same time its annoying if you have to constantly scroll.

Yes it is. The code itself is 100% portable to any platform with a standards compliant C++ compiler (so basically anything, as long as you're not rolling your own ), however the compiled executable generated by MSVC++ is *NOT* portable. A large subset of C# is supported under the Mono project for Linux and other platforms, but it is extremely slow. From my own benchmarks, C# and C++ have similar speed on windows 7, but on Linux C++ is nearly three times faster (interestingly, the relationship is the opposite between C++ and Java).

So to answer your question, as long as you're recompiling for the other platform, the code is portable.

Also, thanks for the update on VS 2010. Unfortunately, one needs to put in a credit card to get through the JourneyEd system that MS uses to verify student status for the DreamSpark program, and i'm too paranoid... (last year I somehow got around that requirement), and I really only want one version of VS on my computer (and why get express when you can get pro?), and so on *ramble*

However, if you're using VS for crossplatform development, i'd warn you that the IDE likes to prod you into using features that are not cross-platform (like assembly debug statements and version numbers), because, of course, Microsoft would like to pretend that they are the only platform out there worth developing for. I would seriously consider using Code::Blocks, on which cprogramming.com has a pretty good tutorial at http://www.cprogramm...om/code_blocks/ (though not anywhere near as good as mine ), or if you're into headscratching, EMACS.