difask's blog

By difask, 10 years ago, In English

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!

  • Vote: I like it
  • +4
  • Vote: I do not like it

| Write comment?
»
10 years ago, # |
  Vote: I like it 0 Vote: I do not like it

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.

  • »
    »
    10 years ago, # ^ |
    Rev. 3   Vote: I like it 0 Vote: I do not like it

    sorry. Made a mistake. Done. Thanks!

    • »
      »
      »
      10 years ago, # ^ |
        Vote: I like it +9 Vote: I do not like it

      i think you can submit with g++ compiler

    • »
      »
      »
      10 years ago, # ^ |
        Vote: I like it +1 Vote: I do not like it

      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. :)