Search:

Type: Posts; User: rstanley

Page 1 of 20 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    128

    QT is available under both Open Source...

    QT is available under both Open Source and commercial licenses.
  2. Replies
    1
    Views
    128

    I could do the programming for you, but your...

    I could do the programming for you, but your instructor should have given you enough information to be able to create functions, how to call them, and return values.

    If this assignment is from a...
  3. Replies
    15
    Views
    286

    Rather than asking us to go to an outside site,...

    Rather than asking us to go to an outside site, you should post the code here in CODE blocks as you are instructed in the Forum Rules FAQ.
  4. In addition to my comments above, rather than...

    In addition to my comments above, rather than using an old book, I would recommend one of the following up to date books on the C Programming Language:

    C Programming, A Modern Approach
    Author: K....
  5. @felixthunder The program could be written...

    @felixthunder

    The program could be written much simpler. getopt() is not needed. gcc seems to being used, assuming argv[0] does contain the program name.
    argc == 1, use stdin
    argc == 2, attempt...
  6. Replies
    10
    Views
    262

    Strictly speaking, the is NO "void main()"!!! ...

    Strictly speaking, the is NO "void main()"!!! main() should ALWAYS returns an int to the operating system! This is defined by the operating system.

    We cannot make any assumptions about the next...
  7. Replies
    10
    Views
    262

    @shaswat The void before the function name...

    @shaswat

    The void before the function name means no value is returned from the function. Any other data type before the function name, indicates the type of data returned.

    The data type inside...
  8. Replies
    5
    Views
    206

    Three examples I can see used are, stubbing out...

    Three examples I can see used are, stubbing out code temporarily, header file choice, and inclusion of debug code during development:

    #ifdef DEBUG
    // Code with debug statements
    #else
    //...
  9. Replies
    5
    Views
    206

    Header files should contain extern function and...

    Header files should contain extern function and extern Global data declarations, #defines, other preprocessor directives, etc..., but not executable code such as the printf statement.

    I would...
  10. The api code is there, among the "21,300,000...

    The api code is there, among the "21,300,000 results", but what me be missing is the C code you need to call these api's!

    YOU have to write this code or look in Github, Sourceforge.net, or some...
  11. A simple Google search using "screen capture api...

    A simple Google search using "screen capture api windows" would bring up "About 21,300,000 results (0.64 seconds)".

    Start with the top and examine the first, and subsequent pages and see if any of...
  12. @gajya: You need to study a good book on the C...

    @gajya:

    You need to study a good book on the C Programming Language, cover to cover, and do all the exercises at the end of each chapter! Choose one of the three listed below:

    C Programming, A...
  13. The asterisk '*' is used for two different places...

    The asterisk '*' is used for two different places and purposes.


    int *a = NULL;
    is used to create a pointer variable called a, initialized to NULL.


    a = malloc(sizeof(*a));
    This allocates...
  14. Thread: Help Required

    by rstanley
    Replies
    3
    Views
    205

    It is standard for all text files in UNIX or...

    It is standard for all text files in UNIX or Linux to always have a newline (Empty line) at the end of the file. Many utilities have problems with text files without the final newline.

    Most if...
  15. Replies
    5
    Views
    227

    A Google search...

    A Google search would bring up several options including this one, which seems to be well done. I have not tested it though.
  16. Replies
    2
    Views
    133

    Please compare Lines 9, and 16 in the code...

    Please compare Lines 9, and 16 in the code listing above.
  17. Why are the data strings, "01_01142020"? Isn't...

    Why are the data strings, "01_01142020"? Isn't that "MM_MMDDYYYY"? Seems like redundant redundancy!

    Why do you need the leading "MM_"? Why not just use the final 8 digits, "MMDDYYYY"? It is...
  18. Replies
    3
    Views
    228

    If so, no one here will do your homework for you!...

    If so, no one here will do your homework for you! YOU have make an attempt to code a solution with the skills you have been taught in class. Then post the code here with questions, and we can...
  19. Replies
    4
    Views
    325

    You might be copying from an IDE. Make sure you...

    You might be copying from an IDE. Make sure you are using plain text, not with IDE formatting.



    For main(), the two are effectively equivalent. For all other functions you create, there is a...
  20. Replies
    4
    Views
    325

    First of all, format your code properly. ...

    First of all, format your code properly. Functions are not one liners.
    Compile and run this version of the function. What do you think will happen, providing the file does exist?

    You will need...
  21. I once reviewed a book for potential use in a...

    I once reviewed a book for potential use in a course on C. The book was not just badly written, some of the text and code were plain WRONG! Please recycle the book you currently have.

    Please see...
  22. Replies
    4
    Views
    180

    Have you studied the chapter on functions, as...

    Have you studied the chapter on functions, as well as all the chapters that came before? If so you should have all the information you need to do the exercise.

    If you need a better book on C, can...
  23. A variable definition is usually also a...

    A variable definition is usually also a declaration, unless an extern declaration has already been seen by the compiler.

    #include <stdio.h>

    extern int z; // Declaration only, not a definition...
  24. Replies
    4
    Views
    191

    Please post the code you have done, so far, using...

    Please post the code you have done, so far, using [ CODE ] tags, so we can comment on it and guide you for the next steps. Please don't post a link to the code.

    Please read the FAQ at the top of...
  25. You placed a '{' char before main() not after.

    You placed a '{' char before main() not after.
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4