Giter Club home page Giter Club logo

cp-template's Issues

请问in.txt out.txt该放在哪里

按照readme里创建了如下项目结构:
image
但不知道该把输入输出文件放在哪里,这里本地调试的输入输出文件路径默认为执行目录下的 in.txt 和 out.txt。

我尝试了直接放到生成的可执行文件所在的位置
image
但是依然看不到读取。

这里提到:
1.在包含头文件之前,加一行 #define OY_LOCAL 作为本地的标志;(也可以在编译参数里加 -DOY_LOCAL)
2.在运行目录下放入 in.txt 和 out.txt 作为输入输出文件;如果找不到运行目录,可以随便输出一个字符串,看看 out.txt 生成到了哪里。
我在所有文件里第一行都添加了#define _CRT_SECURE_NO_WARNINGS,且在main.cpp里添加了 #define OY_LOCAL
之后遇到了如下报错:
image
若点击retry,则会定位到这里
image
调用栈和报错都在截图中。

自己写的本地调试辅助文件每次都得手动改输入类型,所以挺喜欢repo主的这个框架,但是输入输出文件在哪行代码指定这样的事,单看代码没法确定,且文件里有很多宏看不懂,只好求助。
环境是

Windows 11 Pro Version	22H2 OS build	22621.2715   
Microsoft Visual Studio Community 2022 (64-bit) - Current Version 17.7.6   

该项目是否有code inliner功能

这个vs插件有一个功能我觉得特别方便,即将常用板子放到项目里之后,如果 class Solution {...}里引用了某个板子,板子的代码会与Solution 一起 被添加到自动生成的代码里,用户只需要直接去全文复制提交即可。
这个功能对于codeforce之类需要提交全文的网站似乎更有用,但是lc上也会更方便。
视频介绍
但是该插件经常导致IDE卡死,所以不大好用。
想问repo主是否打算支持此功能?

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.