社区
新手乐园
帖子详情
问一个DJGPP的弱智问题。。。关于文件操作的。。
D_Day
2007-04-06 11:07:28
比如说我在里面插入这么一句
ifstream cin("qq.in");
那么这个qq.in应该放在哪里啊?我希望它和我的程序在同一个目录下,应该怎么设置啊。
假设我的djgpp放在c:\djgpp下面。
...全文
234
5
打赏
收藏
问一个DJGPP的弱智问题。。。关于文件操作的。。
比如说我在里面插入这么一句 ifstream cin("qq.in"); 那么这个qq.in应该放在哪里啊?我希望它和我的程序在同一个目录下,应该怎么设置啊。 假设我的djgpp放在c:\djgpp下面。
复制链接
扫一扫
分享
举报
写回复
配置赞助广告
用AI写文章
5 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
iu_81
2007-04-06
打赏
举报
回复
如果一定要设的话,c:\\djgpp\\qq.in
iu_81
2007-04-06
打赏
举报
回复
默认就是你的程序所在的文件夹下
FingerStyle
2007-04-06
打赏
举报
回复
okok.
intuition444
2007-04-06
打赏
举报
回复
相对路径都是放在程序所在目录下的。
god_sun
2007-04-06
打赏
举报
回复
同意楼上
[LeetCode] 167. Two Sum II - Input array is sorted
原题链接: https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/ 1. 题目描述 Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific...
[LeetCode]167. Two Sum II - Input array is sorted
[LeetCode]167. Two Sum II - Input array is sorted题目描述思路开始的思路是暴力解,虽然用例都通过了,但是超时了 看了超时的用例,发现是太多重复造成的 于是加了重复检测的条件判断,提交通过之后发现速度太慢 换一种思路 两个指针从数组两边同时向中间移动,如果数字之和小于目标,则移动左指针,否则移动右指针代码注释部分为暴力解法#include
LeetCode: 167. Two Sum II - Input array is sorted
LeetCode: 167. Two Sum II - Input array is sorted Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number. The
leetcode 167: Two Sum II - Input array is sorted
Two Sum II - Input array is sorted Total Accepted: 441 Total Submissions: 1017 Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a
【LeetCode】167. Two Sum II - Input array is sorted
我的个人微信公众号:Microstrong 微信公众号ID:MicrostrongAI 微信公众号介绍:Microstrong(小强)同学主要研究机器学习、深度学习、计算机视觉、智能对话系统相关内容,分享在学习过程中的读书笔记!期待您的关注,欢迎一起学习交流进步! 知乎主页:https://www.zhihu.com/people/MicrostrongAI/activities Github:https://github.com/Microstrong0305 个人博客:https://blo.
新手乐园
33,315
社区成员
41,769
社区内容
发帖
与我相关
我的任务
新手乐园
C/C++ 新手乐园
复制链接
扫一扫
分享
社区描述
C/C++ 新手乐园
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章