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

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

Hello! Is it possible to use something like "bits/stdc++.h" in Visual Studio? For those who mightn't know, "bits\stdc++.h" includes many headers, like iostream,algorithm,cstdio,cstdlib,vector and much more. Thank you!

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

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

yup, sure you can do this with little trick. Just copy "bits" Folder to this location "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include". This "bits" folder can be taken from MinGW Compiler.

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

    sorry. Made a mistake. Done. Thanks!

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

      i think you can submit with g++ compiler

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

      Submit with g++ compiler, and use Visual Studio as IDE with its MSVC++ for compiling and testing codes on your system. So to make MSVC++ include "bits/stdc++.h" do as mentioned in above comment and remember to submit the codes in g++ and not in MSVC++ in Online Judges. Sorry for Late reply, I was kind of busy. :)