0

I wrote a simple c program. saved it with "c" suffix. Went to the terminal (in Linux Mint), typed in

gcc -o outputfile inputfile.c

In the directory containing inputfile.c a file called outputfile appeared, as I expected. I want to run the program, but clicking on the file does nothing.

What am I doing wrong?

4

1 回答 1

2

程序正在运行,但您看不到它的输出,因为终端没有打开。打开终端并使用 ./outputfile 运行它

如果您的程序打开了一个窗口,您可以通过单击文件来查看它。

于 2011-05-11T16:22:24.967 回答