Search:

Type: Posts; User: broncoslb

Search: Search took 0.00 seconds.

  1. Replies
    11
    Views
    2,710

    Well the computer you're connecting to is going...

    Well the computer you're connecting to is going to have to be running a server of some sort. Also, your going to need the port that the server is listening on. I would read up on socket programming...
  2. Replies
    4
    Views
    2,807

    Do you know the maximum numbers that are in the...

    Do you know the maximum numbers that are in the sequence. If you do use an array and a loop.
    Also, is this being read from keyboard input or file input?

    -Dustin
    C tutorials
  3. Replies
    6
    Views
    881

    Well the easiest way would be to save it to a...

    Well the easiest way would be to save it to a buffer then write the buffer to the file, as the first responder said. But if you really wanted you can look into file redirects using pipe() and dup2()....
  4. Replies
    15
    Views
    2,623

    If you are trying to count the number of words in...

    If you are trying to count the number of words in each line try this:
    1. read in each line into a buffer using fgets
    2. use strtok on the buffer using a while loop and have a counter in the loop
  5. Thread: tax program

    by broncoslb
    Replies
    2
    Views
    969

    Why don't you just store the value after tax is...

    Why don't you just store the value after tax is applied into a float?

    -Dustin
    C tutorials
  6. Replies
    15
    Views
    4,617

    You might want to take a look at fdopen(). This...

    You might want to take a look at fdopen(). This allows you to create a stream from your FILE*. Then you can use fread() and fwrite() which is sometimes easier.

    -Dustin...
  7. Thread: casts

    by broncoslb
    Replies
    2
    Views
    1,054

    When you cast a variable you are changing the...

    When you cast a variable you are changing the type. Here is a good site to explain things: http://www.cplusplus.com/doc/tutorial/typecasting.html


    -Dustin
    http://www.theCprogrammer.com
  8. Thread: true/false

    by broncoslb
    Replies
    18
    Views
    4,184

    In order to make sure you have 5 valid numbers...

    In order to make sure you have 5 valid numbers try something like this:



    int valid;
    for (i=0; i<SIZE; i++){
    printf("Enter an integer (50-100):\n");
    valid =...
  9. Thread: My shell

    by broncoslb
    Replies
    3
    Views
    1,896

    When I designed my shell I read in the command...

    When I designed my shell I read in the command and stored the tokens in an array. Then I went through the array to check where the pipes and redirects were. As I went along with the forks() and...
  10. Replies
    160
    Views
    1,231,666

    Sticky: The best that I have ever read was Advanced...

    The best that I have ever read was Advanced Programming in the Unix Environment by W. Richard Stevens

    -Dustin
    www.theCprogrammer.com
Results 1 to 10 of 10