腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
3
回答
gets
_
s
()期望行为
c
、
language-lawyer
标准的定义(附件K)如下(重点是我的定义): 运行时-约束 无论是哪种情况,都会看到
浏览 3
提问于2020-11-23
得票数 1
回答已采纳
1
回答
为什么在
Linux
中发生错误,而在Visual中没有发生错误?
c
、
ubuntu
、
windows-subsystem-for-linux
我使用Windows子系统的
Linux
(WSL),Ubuntu。我试着编译简单的代码。但是,它在中工作得很好。
浏览 1
提问于2019-03-15
得票数 0
回答已采纳
3
回答
如何使用
gets
_
s
在C中使用atoi转换--包括示例代码
c
"); BDay.Day = atoi(
gets
_
s
(buffer, 50)); BDay.year = atoi(
gets
_
s
(buffer, 50)); print
浏览 2
提问于2012-01-24
得票数 1
回答已采纳
3
回答
使用Visual逆转C中的字符串
c
、
string
、
visual-studio
、
reverse
main(void) { int i, d;
gets
_
s
(" %
s
", r, sizeof(r)); for (i=d;i!=0;i--) { }}
浏览 4
提问于2016-03-22
得票数 0
回答已采纳
2
回答
经过一定时间后,如何从Ruby的终端中获得字符串?
ruby
、
gets
Im目前正在使用
gets
.chomp,但是这需要返回。 有人知道什么有用的方法吗?
浏览 3
提问于2015-02-09
得票数 0
回答已采纳
1
回答
gets
_
s
给gcc的错误
c
、
gcc
、
fgets
、
c11
、
gets
gets
_
s
()函数不适用于我的编译器。我用的是GCC的密码。undefined reference to '_imp_
gets
_
s
. 有人能告诉我如何解决这个错误吗?
浏览 1
提问于2015-04-23
得票数 1
1
回答
建筑x86_64的未定义符号:"_
gets
_
s
“
c
、
tr24731
^~~~~~~ invalid in C99 [-Wimplicit-function-declaration] "_
gets
_
s
", referenc
浏览 2
提问于2017-05-30
得票数 1
回答已采纳
1
回答
无法将结构从模块复制到用户空间
linux-kernel
、
linux-device-driver
这是我在内核级的模块:#include <
linux
/module.h>#include <asm/uaccess.h> { time_t tv_se
浏览 5
提问于2017-10-23
得票数 1
1
回答
使用Izpack基于RHEL版本复制文件
linux
、
izpack
、
izpanel
<fileset override="true" targetdir="${HOME}/"> <include name="scripts/Agent.service&quo
浏览 7
提问于2016-12-12
得票数 0
1
回答
Python打印特殊格式,字典键不起作用
python
、
formatting
我也希望像%(your_choice)
s
一样在%(__)
s
中放入一个变量,但他告诉我不能在特殊格式中包含变量(这是真的吗?)your_choice = "one"print("You choseoption # %
s
.%(one)
s<
浏览 12
提问于2019-05-08
得票数 0
5
回答
转换语句中的编译错误
c
、
linux
、
scope
、
switch-statement
我使用崇高文本2.0作为我的编辑器和构建器,使用
Linux
作为我的操作系统char string[TMAXSTR], string2[TMAXSTR];
浏览 3
提问于2015-03-13
得票数 0
回答已采纳
1
回答
Iperf with tcl expect命令
tcl
、
expect
要在另一台PC (
Linux
)上运行的iperf命令。我正在使用tclexpect执行相同的操作,要求打开一个控制台并运行iperf命令。代码如下所示。puts "\n Enter the port no : "
gets
login:" expect "Passwor
浏览 5
提问于2012-04-18
得票数 0
回答已采纳
1
回答
ld86编译中出现auto_start错误
linux
、
bcc-compiler
我正试图在
Linux
下编译一个相当基本的程序,但我在使用ld86时遇到了麻烦。有人知道auto_start是什么吗?$ bcc -c tc.c$ ld86 -d ts.o tc.o /usr/lib/bcc/libc.a ld86: warning: _
gets
redefinedin file /usr/lib/bcc/libc.a(
gets
.o); using definition in tc.o
浏览 1
提问于2012-03-13
得票数 1
回答已采纳
5
回答
程序的不同行为
c
、
scanf
这是一个用C语言编写的小程序,我想在while循环中获得用户输入,我还想在一行中使用空格,所以我使用了scanf("%[^\n]
s
",name);,但它给出了不同的输出。它被困在while循环中。stdio.h> { { scanf("%[^\n]
s
",name); }
浏览 1
提问于2012-08-09
得票数 0
1
回答
对
gets
_
s
的未定义引用
c
、
string
、
gets
因此,我正在尝试学习使用替代方法,即
gets
_
s
()函数,但我似乎做不到。例如,下面的代码在试图编译时给出了“对
gets
_
s
的未定义引用”:
gets
_
s
( line, 20 );很多人说要使用fget()而不是get(),但我不明白这将如何工作,因为我想读取用户的输入,而不是从文件中读取。
浏览 0
提问于2014-08-31
得票数 2
回答已采纳
1
回答
gets
(str)和scanf("%
s
",str)之间的差异
scanf
、
c-strings
、
gets
当
gets
(str)是字符数组时,它和scanf("%
s
", str)有什么区别?你能举例说明一下吗?
浏览 7
提问于2019-11-29
得票数 0
1
回答
Ruby ARGF和额外的参数不可靠
ruby
、
linux
、
unix
、
terminal
我有一个Ruby程序(学校项目),我需要像这样指定服务器和端口:我还需要能够以STDIN格式输入文件(在
linux
/unix终端中使用<运算符)我做了一个测试ruby脚本,就是puts
gets
。当像这样运行它时 ruby test.rb -
s
servername -p 8080 < test
浏览 2
提问于2014-11-25
得票数 0
1
回答
如何修复双ssh横幅?
server
、
ssh
LTS (GNU/
Linux
5.4.0-33-generic x86_64) * Management:https://landscape.canonical.com * MicroK8
s
gets
a nativeLast login: Thu Jun 4 10:35:
浏览 0
提问于2020-06-04
得票数 1
回答已采纳
2
回答
优雅地处理来自
gets
_
s
()的错误?
c
、
error-handling
我的代码使用从user.If获取字符串输入,如果用户输入的字符串长度大于
gets
_
s
中指定的长度,应用程序aborts.So如何正确处理? 谢谢。
浏览 6
提问于2011-06-23
得票数 0
回答已采纳
2
回答
Mingw --由于先前的声明,函数的类型冲突
c
、
mingw
首先,当我在远程连接的
Linux
机器上编译/“生成”代码时,我不会遇到这个问题。我只在安装了Mingw的Windows笔记本电脑上遇到了这个问题--我认为是Mingw导致了这个问题。$ makeparser.c:34:7: error: conflicting types for '
gets
' from parser.c:1: c:\mingw\include\stdio.h:709:
浏览 30
提问于2020-10-11
得票数 1
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
英国风暴美国之旅COOLEST COP EVER gets called on us!
从零开始入门 K8s:深入剖析 Linux 容器
输入两个字符串,判断其中一个是否为另一个的子串
如何逐步安装 Kubernetes(k8s)指标服务器|Linux 中国
卓尔智联携手丸红株式会社、GeTS 加码新加坡数字银行建设
热门
标签
更多标签
云服务器
即时通信 IM
ICP备案
云直播
实时音视频
活动推荐
运营活动
广告
关闭
领券