thanks for your help, i got it working now. And Ill remember to use the [code] tag, its easy to do and saves everyone a long time!
Type: Posts; User: scaven
thanks for your help, i got it working now. And Ill remember to use the [code] tag, its easy to do and saves everyone a long time!
in the following program i am trying to compte the square root usiing a function. everything works except i keep getting the number one printed out as the square root of any number. here is the...
I found out the rest of my errors!
Ok I fixed the CTR+D setup and the total (I beleive), Thanks, but I am still getting a wrong count, Ill keep working at it
I am trying to fix a glitch I Have in the program below. I want it to keep looping, which is does and after each input from the user (after they hit return) I want it to print only the numbers that...
Finally I got it working. Thanks everyone for their help. I took out that loop, well for the moment, and Ill look it over. Thanks again!
i did that but i still get the same problems. Whats happening is this...
% test
what 45 2k
2 45 2
Why is my program printing a 2 for the first token when there is no numbers in...
I am trying to split an array up into tokens, an array that is input by the user, and from those tokens extract numbers only. Here is my code so far, but I am having some problems. It prints out...
I am trying to use sscanf to print out only the numbers in a string of characters. Here is my code so far, but I get a segmentation fault when i run it.
#include <stdlib.h>
#include <stdio.h>
...
Thank you so much for the quick replies. They both worked great. Thanks again for your help!
I am trying to write a program which uses command line arguements and options. The part I am have trouble with is arranging all the different combinations. For example the options are as follows: -c,...