Answer the question
In order to leave comments, you need to log in
How to compile a sish file through the terminal if you need to set input arguments?
Good luck to everyone :)
How to compile a file (let's say program.c) through the Linux terminal
in the photo is how I tried (but I don’t know how to write the arguments
#include<stdio.h>
#include <time.h>
#include<io.h>
int main(int argc, char* argv[])
{
if (argc > 1)
{
/*...*/
}
else
{
/*...*/
}
return 0;
}
Answer the question
In order to leave comments, you need to log in
I suspect that the path to the file / file is not correctly specified, what does the command give in your case?
2nd option, file location
#include<stdio.h> #include <time.h> #include<io.h>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question