Search:

Type: Posts; User: mattz

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    1,829

    or if they actually fill the 7 arrays that are...

    or if they actually fill the 7 arrays that are counted it prints.
  2. Replies
    10
    Views
    1,829

    QUZAH, Any ideas on how to fix this program I...

    QUZAH,
    Any ideas on how to fix this program I posted earlier? Want to have the user type "QUIT" to exit and then print out the string arrays.

    Mattz
  3. Replies
    10
    Views
    1,829

    Here is my first attempt. Modified it a bit and...

    Here is my first attempt. Modified it a bit and it seems to work..but noticed its probably not in the right place as it should print out the contents of buffer when I type QUIT instead of just...
  4. Replies
    10
    Views
    1,829

    strupr(string); if (!strcmp("END", string))...

    strupr(string);

    if (!strcmp("END", string))
    /*** ETC ***/



    Does not seem to work...FYI

    Mattz
  5. Replies
    9
    Views
    17,565

    Okay figured out answer through some searches and...

    Okay figured out answer through some searches and some local help:

    #include <stdio.h>
    #include <time.h>

    int main ( ) {
    time_t t;
    clock_t start, end;
    long i;
    long count;
  6. Replies
    9
    Views
    17,565

    #include #include int...

    #include <stdio.h>
    #include <time.h>

    int main ( ) {
    time_t t;
    clock_t start, end;
    long i;
    long count;
    count = 1000000;
  7. Replies
    9
    Views
    17,565

    Both of the above examples caused some errors...

    Both of the above examples caused some errors when run for me. Thanks anyway. Is there a way to display milliseconds vs just seconds....make it more accurate?

    Matt
  8. Replies
    9
    Views
    17,565

    Time.h and counter

    Can someone take a look and verify I am getting the proper results?

    #include <stdio.h>
    #include <time.h>

    int main ( ) {
    clock_t start, end;

    int i;
    long count;
  9. Thread: HW Question

    by mattz
    Replies
    7
    Views
    1,087

    Wow...you are good :) Thanks for help.

    Wow...you are good :)

    Thanks for help.
  10. Thread: HW Question

    by mattz
    Replies
    7
    Views
    1,087

    ANSWER

    Thanks to all,
    For those interested here is the answer:
    #include <stdio.h>




    int blanks ( char* a, int num );
  11. Thread: HW Question

    by mattz
    Replies
    7
    Views
    1,087

    Here is what I HAVE..I did READ btw. #include...

    Here is what I HAVE..I did READ btw.

    #include <stdio.h>




    int blanks ( char* a, int num );
  12. Thread: HW Question

    by mattz
    Replies
    7
    Views
    1,087

    HW Question

    Write a function that initializes all elements of
    a character array to blanks. The function should take
    two arguments. The first is a pointer to a character
    array. The second is...
  13. Thread: SSCANF help

    by mattz
    Replies
    7
    Views
    3,717

    Thanks, This does help some. I just need to...

    Thanks,
    This does help some. I just need to figure out how to get that sscanf to work with fgets etc.

    Mattz
  14. Thread: SSCANF help

    by mattz
    Replies
    7
    Views
    3,717

    SSCANF help

    Trying to convert this function from its current form (see attached attempt) , to a function that uses one line and sscanf to readin users text and inputs (bold, underlined,italics, textsize) and...
  15. Replies
    3
    Views
    3,707

    That sscanf example does not quite work, for some...

    That sscanf example does not quite work, for some reason.
  16. Replies
    3
    Views
    3,707

    Thanks Quzah This should get me started :) ...

    Thanks Quzah
    This should get me started :)

    Mattz
  17. Replies
    3
    Views
    3,707

    Validating the contents of a char buffer

    Hello,
    I need to figure out how to validate the contents of a char buffer that contains a string of text. Any help and examples would be appreciated.

    Each line of input will have the following...
  18. Thread: Function

    by mattz
    Replies
    1
    Views
    1,384

    Disregard...will just leave in main

    Disregard...will just leave in main
  19. Thread: Function

    by mattz
    Replies
    1
    Views
    1,384

    Function

    Hello, all
    Been trying to make this a bit cleaner and wanted to take the majority of whats in main and make it a function that is called by Main. I have tried various function formats void, int...
  20. Replies
    4
    Views
    3,321

    Excellent...understand now. Thanks

    Excellent...understand now.

    Thanks
  21. Replies
    4
    Views
    3,321

    Thanks very much. It works great. Could you help...

    Thanks very much. It works great. Could you help me understand what you have done here:
    //you declare another char array "buff2" with the size [BUFSIZ].

    char buff2[BUFSIZ]


    /// assign the...
  22. Replies
    4
    Views
    3,321

    Array, reading in response etc...

    Hello,
    First thanks to all who have helped me get to this point.

    I have a general question on how to tackle this section of problem. I need to read in a response from user (from 1 to 7) to...
  23. Replies
    6
    Views
    3,573

    Okay...finally... if ( buff[0] == '&' )...

    Okay...finally...

    if ( buff[0] == '&' )
    break;

    Thanks of help Mike..

    Matt
  24. Replies
    6
    Views
    3,573

    Oops ..not the answer...only does it once...

    Oops ..not the answer...only does it once through..second time does not work.
  25. Replies
    6
    Views
    3,573

    Did some reading, here is the answer. if (...

    Did some reading, here is the answer.

    if ( buff[i] == '&' ) break;


    Matt
Results 1 to 25 of 52
Page 1 of 3 1 2 3