Giter Club home page Giter Club logo

cpp-competitive-xcode-template's Introduction

C++ Competitive Programming Xcode Template

This repository implements a custom Xcode C++ template for competitive programming. It makes it easy to define input and expected output if you want to.

Options

This template provides the option to add additional targets to read from an input file or write to an output file. The options are:

None

This does not include any targets to handle input or output files. It just provides a starting point for your program.

Input

This defines two targets. The normal target is the target without input and output file handling. A second target redirects the standard input to use an input file (input.txt). These two targets make it easy for you to choose between testing with manual input and input from an input file.

Input and Output

This third option defines an additional target, next to the two targets from the input option. This third target redirects the standard output to a file called output.txt. In the end it runs the diff command on the expected_output.txt file and the generated output.txt file and leaves the output of the diff command in a file called diff.txt. To find the diff.txt file, you'll have to go the build directory of the target. You can do this by right-clicking on any of the products (in the Products group) and selecting Show in Finder.

Google Code Jam Template

This template behaves as the Input type template, but it adds some code that's always used for Google Code Jam. It adds some common includes and the loop for the different cases.

Installation

To install the template(s), simply move the encolsing directory to ~/Library/Developer/Xcode/Templates/Project Templates/Competitive/. If it does not exist yet, you'll have to create it. The easiest way to keep the templates up to date is to clone this repository in that directory (so that the contents reside in the Competitive directory).

cpp-competitive-xcode-template's People

Contributors

rugheid avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.