Search:

Type: Posts; User: scaven

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    1,459

    thanks for your help

    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!
  2. Replies
    3
    Views
    1,459

    cant get my function to work!

    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...
  3. Replies
    2
    Views
    1,009

    NEVERMIND

    I found out the rest of my errors!
  4. Replies
    2
    Views
    1,009

    One done

    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
  5. Replies
    2
    Views
    1,009

    Ctr+D and Few Bugs in Program

    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...
  6. Replies
    5
    Views
    6,989

    sweet!

    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!
  7. Replies
    5
    Views
    6,989

    help!

    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...
  8. Replies
    5
    Views
    6,989

    Using strtok and sscanf

    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...
  9. Thread: Using sscanf

    by scaven
    Replies
    1
    Views
    1,604

    Using sscanf

    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>
    ...
  10. Replies
    2
    Views
    1,249

    It works!

    Thank you so much for the quick replies. They both worked great. Thanks again for your help!
  11. Replies
    2
    Views
    1,249

    Command Line Arguements

    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,...
Results 1 to 11 of 11