Results 1 to 10 of 12
Hello I'm new here. I don't have my own pc, so I subscribed for a freeshell online. I don't know what to use in order to type a c code ...
- 09-07-2008 #1
c in ksh help
Hello I'm new here. I don't have my own pc, so I subscribed for a freeshell online. I don't know what to use in order to type a c code and compile it in a shell. can anyone tell me on how to do it? let's say i have this folder
/home/nemo/practice
- 09-07-2008 #2
- 09-08-2008 #3
- 09-08-2008 #4
Are you talking about a editor or an ide to type your code into....if you are then try vi, vim or nano...I find nano is a lot easier to use myself
- 09-08-2008 #5
- 09-08-2008 #6
^x exit is Ctrl x to exit...the symbol ^ is the Ctrl key
so to exit you would hold the ctrl key down and press x at the same time....Hope this helps
- 09-08-2008 #7
oh ok..i got it working now, by the way i got another question
well after i got everything working
i code my first hello world script and was able to compile and run it.
each time i run it, i still need to place ./ infront of the file name.
so i did PATH=$PATH:. and it worked fine.
my question now is..what should i do in order not to type PATH=PATH:. over and over again each time i log to my shell account ?
- 09-08-2008 #8
Path= Path I really don't know, I always use ./ before my executables. If you really need an answer I would repost it as a new topic....
- 09-08-2008 #9
- 09-08-2008 #10
try
gcc -o hello hello.c
and gcc will produce an exe called hello


Reply With Quote
