当前位置:网站首页>快速创建题目文件夹
快速创建题目文件夹
2022-07-26 01:23:00 【HeartFireY】
闲来无聊,于是写了个BAT,用于创建题目文件夹。
@echo off
echo ICPC Contest Folder Environment Maker
set /p dir_name="Please input the folder name:"
md %dir_name%
echo %dir_name% has been created
cd %dir_name%
md complied
echo Creating code files...
FOR %%F IN (A B C D E F G H I J K L M N) DO cd.>%%F.cpp
set /p py_files_num="Please input the number of python files:"
if %py_files_num% == 0 (
echo Python files whill not be created!
) else (
md Python
echo Creating python script files...
cd Python
FOR /l %%F IN (1, 1, %py_files_num%) DO cd.>test%%F.py
)
echo Created Successfully! Enjoy yourself ^-^
建议的vscode配置:创建.vscode文件夹,并创建settings.json,写入内容:
注:此时编译的文件会集中写入./folder_name/complied/目录下,避免乱七八糟的现象。
{
"files.associations": {
"iostream": "cpp",
"unordered_map": "cpp",
"utility": "cpp",
"ostream": "cpp",
"algorithm": "cpp",
"atomic": "cpp",
"bit": "cpp",
"charconv": "cpp",
"chrono": "cpp",
"compare": "cpp",
"deque": "cpp",
"format": "cpp",
"fstream": "cpp",
"functional": "cpp",
"future": "cpp",
"limits": "cpp",
"list": "cpp",
"memory": "cpp",
"random": "cpp",
"ratio": "cpp",
"regex": "cpp",
"thread": "cpp",
"tuple": "cpp",
"vector": "cpp",
"xhash": "cpp",
"xlocnum": "cpp",
"xloctime": "cpp",
"xmemory": "cpp",
"xstring": "cpp",
"xtree": "cpp",
"xutility": "cpp",
"system_error": "cpp",
"xlocbuf": "cpp",
"xlocmon": "cpp",
"cctype": "cpp",
"clocale": "cpp",
"cmath": "cpp",
"concepts": "cpp",
"cstddef": "cpp",
"cstdint": "cpp",
"cstdio": "cpp",
"cstdlib": "cpp",
"cstring": "cpp",
"ctime": "cpp",
"cwchar": "cpp",
"exception": "cpp",
"initializer_list": "cpp",
"ios": "cpp",
"iosfwd": "cpp",
"istream": "cpp",
"iterator": "cpp",
"new": "cpp",
"set": "cpp",
"stdexcept": "cpp",
"streambuf": "cpp",
"type_traits": "cpp",
"typeinfo": "cpp",
"xfacet": "cpp",
"xiosbase": "cpp",
"xlocale": "cpp",
"xlocinfo": "cpp",
"xstddef": "cpp",
"xtr1common": "cpp",
"string": "cpp",
"stack": "cpp",
"queue": "cpp",
"map": "cpp",
"iomanip": "cpp",
"*.rh": "cpp",
"complex": "cpp",
"condition_variable": "cpp",
"resumable": "cpp",
"forward_list": "cpp",
"mutex": "cpp",
"numeric": "cpp",
"optional": "cpp",
"sstream": "cpp",
"stop_token": "cpp",
"typeindex": "cpp",
"unordered_set": "cpp",
"valarray": "cpp",
"xlocmes": "cpp",
"array": "cpp",
"bitset": "cpp",
"cfenv": "cpp",
"cinttypes": "cpp",
"csetjmp": "cpp",
"csignal": "cpp",
"cstdarg": "cpp",
"cwctype": "cpp",
"coroutine": "cpp",
"locale": "cpp",
"scoped_allocator": "cpp"
},
"C_Cpp.errorSquiggles": "Enabled",
"code-runner.executorMap": {
"cpp": "cd $dir && g++ $fileName -o .\\complied\\$fileNameWithoutExt && .\\complied\\$fileNameWithoutExt",
}
}
边栏推荐
- REST-assured接口测试框架详解
- MDK compilation process and arm compilation tool chain
- TV software burning
- Tencent employees' salary: the real 985 graduation salary, do you think I can be saved? Netizen: daily salary?
- Should we test the Dao layer?
- Detailed explanation of rest assured interface testing framework
- Causes of signal degradation in optical fiber communication
- The gym closes 8000 stores a year. How does the studio that bucks the trend and makes profits open?
- Cross-lingual Transfer of Correlations between Parts of Speech and Gaze Features 阅读笔记
- 8、学习MySQL 创建数据表
猜你喜欢

推荐⼀款超好⽤的UI⾃动化⼯具: UiAutomator2!

Docker高级篇-Mysql主从复制

《nlp入门+实战:第三章:梯度下降和反向传播 》

The second China rust developer conference is coming, and the complete agenda has been exposed!

Format JS code and debug JS code

How to obtain the cash flow data of advertising services to help analyze the advertising effect?
![[unity] random generation of two-dimensional cave map](/img/ec/7433f6e942fc3d0b03cac37ac87e7b.png)
[unity] random generation of two-dimensional cave map

What are the ways to quickly improve programming skills in the process of programming learning?

# 浏览器开发使用技巧

FreeBSD bnxt以太网驱动源码阅读记录二:
随机推荐
MDK编译过程及ARM编译工具链
Mulda: a multilingual data augmentation framework for low resource cross linguistic ner reading notes
Codeforces Round #810 (Div. 2)A~C
B - Krypton Factor(dfs+回溯法)
Half of the people in the country run in Changsha. Where do half of the people in Changsha run?
3059. 雕塑(jzoj)
Cross linguistic transfer of correlations between parts of speech and Gazette Features Reading Notes
C语言进阶(一)动态分配内存
RHCE之at和crontab命令详解及chrony部署
Oracle - isupplier portal Invoicing error
[Unity] 二维洞穴地图随机生成
【ICKIM 2022】第四届知识与信息管理国际会议
腾讯员工晒出薪资:真实985毕业薪资,大家看我还有救吗?网友:日薪?
Linked list related interview questions
Force buckle 25. Turn over the linked list in a group of K
数据库系统原理与应用教程(053)—— MySQL 查询(十五):字符型函数的用法
Basic version of Google browser debugging tool (I)
Lua basic grammar
[Jizhong] July 16, 2022 1432. Oil pipeline
The second China rust developer conference is coming, and the complete agenda has been exposed!