Created
April 9, 2010 23:18
-
-
Save sergiobuj/361686 to your computer and use it in GitHub Desktop.
Function to compile and run g++ Topcoder problems
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; TopCoder .cc compile function. (When using .cpp change -3 -> -4 -two times-) | |
(defun tc () (interactive) | |
(compile (concat "g++ " (buffer-name)" -Wall -g -o "(substring (buffer-name) 0 -3)" && ./"(substring (buffer-name) 0 -3))) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment