ok so i got someone to show me their program which i now understand. but i need to know how i can implement the other functions such as sin cos and all of that ...
#include <stdio.h>
#include...
Type: Posts; User: Lucid15
ok so i got someone to show me their program which i now understand. but i need to know how i can implement the other functions such as sin cos and all of that ...
#include <stdio.h>
#include...
Im actually pretty confused as someone helped me. Can you do an example of this on the + function?
supposedly i think this one works but i cannot get it to compile. It's somebody else's in the class which i am trying to compare to..
#include <stdio.h>
#include <string.h>
#include <assert.h>...
How would i fix it? just make it pop before computing the output?
I am trying to write a calculator that calculates most mathematical operations in Reverse Polish Notation. However, i know im doing it right but when i try compiling it with just cc advcalc.c it...
what is a struct?
i am now getting a segmentation fault.... man...
But i need it to display all of which are equal to the max values... so that if some are the same values at max it prints both of them.. will this do that?
ok i think im getting somewhere now. but still getting an error.
//Compares upto 100 files, and decides which one has the most characters(bytes) and which has the most words.
#include <stdio.h>...
lol, sorry. i fixed that didnt update it before i posted.
i have this code now to just check to see if it can get one file right.
//Compares upto 100 files, and decides which one has the most characters(bytes) and which has the most words.
#include...
getting a "can't open (null)" code in the terminal
it still will not print the number of characters in a file.... it just doesnt output anything..
//Compares upto 100 files, and decides which one has the most characters(bytes) and which has the...
sorry small typo... go off of this code.
//Compares upto 100 files, and decides which one has the most characters(bytes) and which has the most words.
#include <stdio.h>
#include <stdlib.h>
int...
when i try to run the program to make it just tell me how many characters are in a file i get a segmentation fault...
//Compares upto 100 files, and decides which one has the most characters(bytes)...
hmm...thank you. any more input? im still confused as all hell
Here is my FIXED code as of NOW..
//Compares upto 100 files, and decides which one has the most characters(bytes) and which has the most words.
#include <stdio.h>
#include <stdlib.h>
int i;...
I also need to add in that i would like my program to print the file name that has the most characters and/or words and if there are some that are equal print ALL of those. Im confused now..
here is my unfinished code so far...
//Compares upto 100 files, and decides which one has the most characters(bytes) and which has the most words.
#include <stdio.h>
#include <stdlib.h>
int i;...
still getting the same warning... i wnat argv at 1. i compile with ./a.out then followed by the inputted file names. So i would start reading at argv[1].
its not liking this line..
for (i=1;argv[i] <= argc;i++)
im gettting this error in the terminal when compiling
2-9.c: In function ‘main’:
2-9.c:12: warning: comparison between pointer and...
Hello,
I am trying to make a program that will open up as many files as the user specifies in the command line (argv) and compare each file to see which has the most characters(bytes) and which...
Any luck?
Ok thank you so much! That would be greatly appreciated, my friend and i are stumped on this problem..
The most recent one, if i enter 3,3,2,2 it shows 2...2. When it should show 3,2. Meaning the mode is 3 and 2