C programming in Visual Studio

后端 未结 6 1599
醉话见心
醉话见心 2020-11-29 17:14

Can I use Visual Studio to learn C programming? In the new project menu I can choose between Visual Basic, Visual C#, Visual C++, Visual F# and others but I don\'t see \"C\"

6条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-29 18:05

    Yes, you very well can learn C using Visual Studio.

    Visual Studio comes with its own C compiler, which is actually the C++ compiler. Just use the .c file extension to save your source code.

    You don't have to be using the IDE to compile C. You can write the source in Notepad, and compile it in command line using Developer Command Prompt which comes with Visual Studio.

    Open the Developer Command Prompt, enter the directory you are working in, use the cl command to compile your C code.

    For example, cl helloworld.c compiles a file named helloworld.c.

    Refer this for more information: Walkthrough: Compiling a C Program on the Command Line

    Hope this helps

提交回复
热议问题