Блог пользователя agarwaen

Автор agarwaen, 11 лет назад, По-английски

I used G++ for a long time, now I decided to migrate to Visual C++ but codeforces don't has support for Visual Studio 2012. That is a trouble cause the C++ 11 standard is under implementation for VS and we can find many differences between VS2010 and VS2012. I wonder if would be to risky to write code in my VS2012 and send it for the VS2010 compiler. Any experience will be welcome. Thanks.

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

»
11 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

BTW If you'll write code in exactly the same way as you did using g++ you may submit under g++ even if you write it in VS

  • »
    »
    11 лет назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    you are right, i can use the same code style as always but you don't know when a new feature would be useful and those compilers aren't 100% compatible. One reason is that both implement only one part of the c++11 standard, so if i want to use some new feature available in VS2012 compiler, is not easy to know during a contest if that feature is available in VS2012 or g++. I believe that adding support for the VS2012 compiler is a good idea.

    • »
      »
      »
      11 лет назад, # ^ |
        Проголосовать: нравится +3 Проголосовать: не нравится

      Better idea is to add support for VS2013 compiler when it will be released (probably in this October), because it almost completely supports C++11 standard and STL in contradistinction to VS2012 even with November compiler pack.