How to run C in Sublime Text
Sublime Text is a popular text editor for a variety of programming languages, including C. Here's how to run C programs in Sublime Text:
Install the compiler
First, you need to install a C compiler on your system. Recommend MinGW or Clang.
Set up Sublime Text
Next, you need to set up the compiler in Sublime Text.
<code>gcc -Wall -o "${file_base_name}" "${file_name}"</code>
<code>source.c</code>
Run the program
Now you can run the C language program.
If your code does not have any errors, Sublime Text will compile and run the program and display the output to the "Console" panel.
The above is the detailed content of How to run sublime test in c language. For more information, please follow other related articles on the PHP Chinese website!