Hi i have a filename here,its an interpreter of C to run it or to show its output it says feed it with source code as a file and pass the filename as a command line parameter can you teach me how to do that??? any concerns will be appreciated..tnx
Hi i have a filename here,its an interpreter of C to run it or to show its output it says feed it with source code as a file and pass the filename as a command line parameter can you teach me how to do that??? any concerns will be appreciated..tnx
You asked this already -> Command Line Parameter
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
But i can't open the filename or trying to execute it...
Well you're just going to have to post some code.
Because starting new threads on the same subject and hoping we can guess just isn't going to work.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
Then you should post the code you wrote trying to do this and we can help correct it for you.
There is no point providing you with another example when there are already thousands on line. If those did not help, we need to go through this step by step, and the first step is seeing what it is you've done wrong.
C programming resources:
GNU C Function and Macro Index -- glibc reference manual
The C Book -- nice online learner guide
Current ISO draft standard
CCAN -- new CPAN like open source library repository
3 (different) GNU debugger tutorials: #1 -- #2 -- #3
cpwiki -- our wiki on sourceforge
First read this... Introduction to the Windows Command Prompt
Open your command shell... (on windows type WIN+R -> cmd -> OK)
Use the CD command to move to the folder with your program in it...
Type the program's name followed by the filename you want to open.
How do you expect to program a computer you don't even know how to operate?
is this correct?
my programs name is try
the filename is snotc
i type the command shell like this: c:\>try.exe snotc
is that correct??
Assuming the filename is indeed snotc (as opposed to snotc.txt or snotc.q or whatever) and that the file lives in the current working directory, then yes.
then should it be this correct
assuming argy[1] is snotc.... what should i do to show that the snotc is working??