fclose() 以 “Segmentation fault (core dumped)” 结尾
作者:Francesco 提问时间:5/30/2022
我没有在互联网上找到答案,如果有的话,请链接它...... #include <stdio.h> int main(){ FILE*fp; char arr[4]; printf("Open...
字符 问答列表
作者:Francesco 提问时间:5/30/2022
我没有在互联网上找到答案,如果有的话,请链接它...... #include <stdio.h> int main(){ FILE*fp; char arr[4]; printf("Open...
作者:Saphire 提问时间:1/20/2014
我当前的代码读取用户输入,直到换行。 但我正在尝试将其更改为一种格式,用户可以在其中写入输入直到 strg+d 以结束他的输入。 我目前是这样做的: input = raw_input ("Inp...
作者:TY.OVICNE 提问时间:3/1/2017
当我在 operation = input("what do you want to do (+,-,/,*):") 代码如下 def add(num1, num2): #function s...
作者:Zombo 提问时间:5/27/2021
如果我想扫描一个字符串,我可以这样做: package main import ( "fmt" "strings" ) func main() { r := strings.NewRead...
作者:Abhishek Mane 提问时间:10/24/2021
roha.txt I really love to spend time with you. Let's go for coffee someday. Enjoy whole day and che...
作者:Hyena 提问时间:1/14/2023
该方法的文档中说:ifstream::getline 此函数成功读取和存储的字符数可以通过调用成员 gcount 来访问。https://cplusplus.com/reference/istrea...
作者:wannabeprogrammer 提问时间:4/9/2020
这只是我的第三个或第四个程序,所以请耐心等待: 我必须编写一个程序来读取字符串输入,直到 EOF,然后打印最长的单词 + 它的长度。我不应该使用 strlen()。这是提供的骨架代码 - #incl...
作者:Fabio 提问时间:12/6/2015
这是我的代码: #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #define N 256...
作者:user979033 提问时间:10/28/2017
我想从 char 输入连接。strings 我想让用户逐个输入 char,然后我想撬动我的 .EOFstring 所以目前,如果我输入exapmle'r'点击并按下(我正在ubuntu上工作),这...
作者:Tony Reirdan 提问时间:7/2/2019
我试图寻找类似的问题,但找不到,所以我发布了这个。事情是这样的。 假设我有一个名为 text.txt 的文件。现在,该文件由 3 个整数和字符串组成,如下所示: 4 59 32 This is se...