Created
December 27, 2021 06:25
-
-
Save nac-39/c9e973d518bece8c0eb9c4a167bb7316 to your computer and use it in GitHub Desktop.
プログラミング2用のスニペット
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
#!/bin/bash | |
echo 問題番号を入力して実行: | |
read line | |
gcc q$line.c -o ./out/q$line && ./out/q$line |
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
#!/bin/bash | |
echo 問題番号を入力して作成: | |
read line | |
touch q$line.c | |
cat template.c > q$line.c |
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
#include<stdio.h> | |
int main(void){ | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment