if i use
[ -f $file] to check if its a file
what do i use to check if the file is executable?
Type: Posts; User: Mak
if i use
[ -f $file] to check if its a file
what do i use to check if the file is executable?
cool thanks...i'll assume thats right since i cant check it until monday
i have to use ls and grep together
even if i wanted to use find i would not know how
How would i use grep and ls togehter to list all directories with rwx permission?
meh...i had problems installing it
so'm just working on it at the lab
I'm trying to download/set up Cygwin but my stupid computer is having problems.
that could work..i'm going to try it
thanks
Here is my problem..... I have to do a few programs/labs. Just simple shell programs but I can only do them on campus using Linux.
So my question is ...is there a program to simluate unix...
okay...i think i got it figured out now
thanks
thats the problem..i could not find the GCC file itself or BIN directory
but i'll try Dev-C++
okay...for example when using JDK when you compile java files...you go to JDK/BIN/
and there you use javac to compile
I'm not sure how this works with GCC
i have the folder itself
when I...
i need to run the following commands...
gcc file1.c -o file1
gcc file2.c -o file2
/file1
/file2
how do i do that?
I need some help with GCC compiler. I downloaded and extracted the files. After that I'm not really sure what to do.
I need to use GCC to run C applications
How do i install or use gcc compiler on my computer?
THanks
never mind...got it working
I'm confused :confused:
I have to creat 2 matrices and then produce a third matrxi. But here is the problem that i have:
Question states "third matrix whose all off diagonal entries are zero...
yeah baby i fixed it
changed OUTPUT(poutput); to
OUTPUT(psum);
i guess that make sense.....although now i dont get float values
#include <stdio.h>
void INPUT(int *var1, int *var2, int *var3, int *var4);
void AVERAGE(int var1, int var2, int var3, int var4,float *var5);
void OUTPUT(float *var);
main(){
int x,y,z,v;...
I have this program that asks you to input numbers, takes the average and prints it out.... its pretty easy if you do by Value but i have to do it using Call by reference....so far i have :
...
thanks..that worked. :D
#include <stdio.h>
float AVERAGE(int num1, int num2, int num3, int num4);
float OUTPUT(float output);
int main(void){
int a,b,c,d,x, avr, out;
nope..that did not help
I have this simple program...that takes 4 integers and prints out the average
#include <stdio.h>
int AVERAGE(int num1, int num2, int num3, int num4);
float OUTPUT(float output);
okay...it works now.
I just need to work on the logical part now.....it does not work as it should.
okay...here is my first try:
#include <stdio.h>
int main(void){