简体   繁体   English

C 程序未在 Visual Studio Code 中运行

[英]C program is not running in Visual Studio Code

enter image description here在此处输入图片说明

I am writing code in visual studio and facing error while compiling.我正在 Visual Studio 中编写代码并在编译时遇到错误。

incorrect quotation mark should be "不正确的引号应该是“

#include <stdio.h>

int main() 
{ 
    printf("Hello , i am learning c ");

    return 0;
} 

There are multiple different characters that look like the double quote character "有多个不同的字符看起来像双引号字符"

The double quote character is what is needed at the start and end of literal strings such as your string Hello, I am learning C双引号字符是文字​​字符串(例如您的字符串)的开头和结尾所需要的, Hello, I am learning C

You have used the similar looking but different characters and 您使用了外观相似但不同的字符

This is usually due to copy and pasting the double quote characters from a website or a rich text formatted document (eg Word) rather than typing them from a keyboard.这通常是由于从网站或富文本格式的文档(例如 Word)复制和粘贴双引号字符而不是从键盘输入。 Try deleting them and replacing them with a keyboard press or copying and pasting from here: "尝试删除它们并用键盘按下或从这里复制和粘贴来替换它们: "

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM