腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
在
scanf_s
中使用%s时出现访问冲突错误
、
、
下面是我的代码: #include <stdio.h> char str[50]; printf("%
浏览 56
提问于2020-05-03
得票数 1
回答已采纳
1
回答
scanf_s
()缓冲区在哪里定义?
、
、
如果我不能访问internet,但知道我想使用
scanf_s
()函数从键盘(stdin)获取输入,我如何知道在哪里声明缓冲区?目前,当我进入Visual Studio中的
scanf_s
()函数时,我看到了以下内容: _In_z_ _Scanf_s_format_string_ char const* const _Format#if defi
浏览 5
提问于2018-06-27
得票数 1
2
回答
简单的C Tic Tac Toe输入错误
、
、
\n"); // Matches the input position with a character,
浏览 2
提问于2014-01-28
得票数 2
1
回答
C-在Visual Studio2012中使用
scanf_s
打印字符时出错
、
、
、
首先,我的代码如下: int a;
scanf_s
("%i",&a);
scanf_s
("%c",&b);
浏览 2
提问于2013-07-17
得票数 1
回答已采纳
1
回答
使用不带分隔符的scanf读取
来自用户的示例输入:正在尝试读入此输入是否需要分隔来自用户的输入?可以像这样读进去吗?编辑2:解决方案:
scanf_s
("%c%d",&playerX,1,&playerY);
浏览 1
提问于2015-04-07
得票数 0
1
回答
大写函数不适用于Visual 2013 (C++)
,它总是给我奇怪的输出(有些像alpha的符号),但是它(函数)在2010年起工作,#include <stdio.h>
scanf_s
浏览 2
提问于2014-12-06
得票数 0
回答已采纳
1
回答
读取用户输入并存储到数组时出错
、
、
一旦程序到达循环,就会有一个“程序停止工作”窗口来扫描用户输入的名称("
scanf_s
(%s",&nameptri );)。任何帮助或建议都将不胜感激!nameptr[SIZE][80]; int i, result, size;
scanf_s
("%d", &size); printf("Enter %d names: ", size)
浏览 1
提问于2015-09-19
得票数 1
3
回答
C字符不工作在if..else中
、
、
、
= 't')
scanf_s
(" %c", &shape); { printf(
浏览 4
提问于2014-04-12
得票数 0
回答已采纳
3
回答
在C中出现循环问题并重新分配char变量(初学者)
、
、
、
{
scanf_s
(" %c", choice); //Want this line to get an input y/n and if y, repeat the
浏览 4
提问于2014-09-01
得票数 0
1
回答
Visual Studio C/C++ ucrtbased.dll访问冲突写入位置
、
、
; chk = getchar();} 仍然给我同样的错误。
浏览 1
提问于2015-10-29
得票数 1
3
回答
指针、字符和malloc
、
、
、
我对以下代码有问题:{int num, i;
scanf_s
"%d", &num);for (i = 0; i < num; i++, pointer++)
scanf_s
浏览 4
提问于2014-03-09
得票数 1
回答已采纳
1
回答
C程序问题: scanf不能正常工作
、
、
、
printf("%s", "[2] multiply\n"); printf("%s", "[4] quit\n"); while (choice >= 0 && choice < 4) printf("%s", "Enter a number: &quo
浏览 5
提问于2013-10-30
得票数 0
1
回答
使用字符串格式化程序从未处理的异常中导致“访问冲突写入位置”
include<stdio.h> char b[12]; fflush(stdin);
scanf_s
浏览 0
提问于2014-12-10
得票数 0
3
回答
不能将一个值赋值给一个字符变量,并在c中使用scanf?
、
、
、
到目前为止我已经int main(){printf("Enter one char\n");printf如果我把它改成int main(){printf("Enter one char\n");printf
浏览 1
提问于2014-01-22
得票数 0
回答已采纳
1
回答
一个整数不等于另一个整数?
、
"stdafx.h" {sumOfSquares = 0;{ for (int i = min
浏览 5
提问于2015-01-31
得票数 0
回答已采纳
1
回答
无法读取C中的结构数组
、
、
char model[30]; { printf("Introduce number of cars: "); printf("Manufacturer: "); printf("Model: ");
s
浏览 4
提问于2016-01-21
得票数 1
回答已采纳
1
回答
如何在C中修复运行时检查失败#2的错误?
\nPlease type 2 for Economy Class:");
scanf_s
("%s", selection, strlen(selection));\nEnter Y to confirm:");
scanf_s
(&quo
浏览 20
提问于2020-10-09
得票数 0
回答已采纳
2
回答
在运行时初始化2d数组并允许用户输入
、
、
Please enter the number of rows: ");printf("Now enter the number ofcolumns: ");
浏览 1
提问于2017-04-24
得票数 0
1
回答
如何在错误的输入格式(垃圾值)后使用scanf?
、
、
、
、
虽然有一些方法可以解决这个问题,比如对字符输入使用isdigit(),但我想使用
scanf_s
和"%d“来解决这个问题。#include <stdio.h>
scanf_s
("%d", &id); printf(&qu
浏览 16
提问于2021-06-07
得票数 0
4
回答
C- Scanf和Printf不正常执行,我不知道为什么
、
、
、
、
\n"); printf_s("what two numbers would you like to work with?\n");
scanf_s
("%d", &num2); if (choice >= 1 && choice <= 3) {\n");
浏览 6
提问于2019-01-22
得票数 3
回答已采纳
点击加载更多
相关
资讯
VS安全函数问题:VS报错 该函数不安全是怎么回事?如何解决?
基于LLM学习C语言
Linux DNS 查询剖析 Linux 中国
Manjaro Linux 22.0 发布|Linux 中国
Alpine Linux 3.18 发布|Linux 中国
热门
标签
更多标签
云服务器
ICP备案
云直播
即时通信 IM
对象存储
活动推荐
运营活动
广告
关闭
领券