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

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

hi !

it is a plugin for c++ programmers ! generates source .cpp files for codeforces problems with test cases !

added in version 2 : you can add your own code template (as requested !)

i just tested with visual studio 2012 ,and visual studio 2013 preview i don't know if it works with 2010 or not !

download 'codeforces vs plugin 2.zip' from my skydrive public folder :

https://skydrive.live.com/?cid=04987FA06FF8DD8B&id=4987FA06FF8DD8B%21105

copy 'codeforces_vs_addin.AddIn' and 'codeforces_vs_addin.dll' to :

C:\Users\CURRENT_USER\Documents\Visual Studio 2012\Addins => for visual studio 2012

C:\Users\CURRENT_USER\Documents\Visual Studio 2012\Addins => for visual studio 2013

(CURRENT_USER == your windows account) (note : if the 'Addins' folder dos not exits , create it yourself !) and done !

codeforces plugin is accessable from => options->codeforces_vs_addin

i included photographic tutorial in 'codeforces vs plugin 2.zip'

source : https://github.com/keramer/codeforces-visual-studio-plugin have fun !

edit 2.1: version 2.01 from dear mitstudent ( fix some problems for some users ) :)

http://www.putlocker.com/file/75544024710505A3

edit 3: version 3.0 , download codeforces addin 3.zip from https://skydrive.live.com/?cid=04987FA06FF8DD8B&id=4987FA06FF8DD8B!105 i used #define ONLINE_JUDGE instead of testing=false variable . and fixed code template problem for visual studio 2013 ( works for me now ! )

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

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

new version is available :

download 'codeforces vs plugin 2.zip' from https://skydrive.live.com/?cid=04987FA06FF8DD8B&id=4987FA06FF8DD8B%21105

now you can add your own code template !

have fun !

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

    i can't find the code template option.

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

      1- are you sure you downloaded the version 2 of the plugin ?

      2-the photographic tutorial is outdated( version 1 ) . if you install the plugin there should be two green buttons : '**change your code template**' and 'restore default template!' if you click on the first button a blank text file would be opened by your default text editor ( notepad ) , edit this file and write your own code template :)

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

reminder : as you already know visual studio express editions do not support any kind of extension or plugins . but if you want to give it a shot without spending money $$$ . you can download visual studio 2013 preview ultimate ( its free and you can use it for 138 days ! )

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

If anyone could not get this to work like myself, I had used the source provided on github, complied it and applied some tweaks (added time reference for example). Here it is. The source is included if anyone would like to add tweaks of his own. I hope 000golabi does not mind any of this!

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

    thanks mitstudent :)

    i'm actually kind of busy these days and don't have the time .

    so i really appreciate any help .

    this plugin is open source and free (for installation and reuse and change and ... )

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

    One Question, but how configure VS to run project with many main definitions of different files

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

I modified this plugin create a C# version for anyone who would like to use it: http://codeforces.com/blog/entry/18913

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

How install it in Linux?

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

    This is Visual Studio, not Visual Studio Code. If you are running Visual Studio through Wine, then you should be able to install it the same way.