Search:

Type: Posts; User: rstanley

Page 1 of 20 1 2 3 4

Search: Search took 0.01 seconds.

  1. Please don't use die.net for any reliable manpage...

    Please don't use die.net for any reliable manpage information. Their manpages are very out of date. Please use man7.org as their pages are generated from the manpage source files and are always up to...
  2. Why don't you start with the link that Salem just...

    Why don't you start with the link that Salem just provided.

    After that, choose one of the books from several lists on Data Structure and Algorithms.
  3. Both compilers provide similar standard tools. ...

    Both compilers provide similar standard tools. Each may or may not provide lesser used tools that the other may not have. Also there may be third party tools to augment both compilers. You will...
  4. Have you considered Linux! You have not...

    Have you considered Linux! You have not mentioned the O/S running on the supercomputers you are thinking of connecting or sharing software with. All the top 100+ supercomputers are running Linux....
  5. Replies
    9
    Views
    833

    First, go back and insure that you compiled and...

    First, go back and insure that you compiled and installed SOEM correctly with no errors reported. Then examine the Tutorial.

    Good luck!
  6. Replies
    9
    Views
    833

    Did the installation of the SOEM library install...

    Did the installation of the SOEM library install any header files in the "/usr/local/include/" or "/usr/include/" directories, then you should include them as

    #include <header.h>
    // Not as:...
  7. Replies
    6
    Views
    1,880

    Intel/AMD architecture are Little-Endian by...

    Intel/AMD architecture are Little-Endian by default. There are compiler options in most compilers to change that.

    See the Wikipedia article for more information.
  8. Replies
    7
    Views
    841

    First of all, you do not initialize the local...

    First of all, you do not initialize the local variables, "name", "DOB", and "phoneNumber". They contain whatever garbage values are in the variables when the program starts.

    Initialize ALL local...
  9. Replies
    7
    Views
    841

    It's a moot point as no phone number is ever a...

    It's a moot point as no phone number is ever a simple numerical number, in any integer type!

    Please see: "National conventions for writing telephone numbers" for more information. It should...
  10. Replies
    7
    Views
    841

    scanf("%s", name); If the user inputs "John...

    scanf("%s", name);
    If the user inputs "John Doe", then name would only contain "John". '%s' as is, only inputs the first word, not the entire string. Then the other scanf() calls will fail as the...
  11. The OP was unfamiliar with the structure of a K&R...

    The OP was unfamiliar with the structure of a K&R style function definition, not about the details about command line arguments. The question was answered.

    Let's stay on topic of the original...
  12. The following first two examples are effectively...

    The following first two examples are effectively equal. The both define the code to allow for Command Line Arguments:

    // K&R function definition
    // Legal but out-dated

    int main(argc, argv)
    ...
  13. Replies
    2
    Views
    851

    In a previous post, in a previous thread, you...

    In a previous post, in a previous thread, you were not aware of the side effects of the initialization of an array with partial elements. This, and other details would have been explained in a...
  14. Replies
    9
    Views
    697

    You should learn to use the compiler and the...

    You should learn to use the compiler and the debugger on the command line. IDE's are not some magic software that answers all your problems.

    Having said that, there are GUI front ends for GDB. ...
  15. Replies
    9
    Views
    697

    Yes, and Yes. There are many online tutorials...

    Yes, and Yes.

    There are many online tutorials for using gdb. The Official gdb manual is also online here.

    The answers to these two questions, and many others you will have, are found in these...
  16. Replies
    9
    Views
    697

    If you are using gcc through MinGW64 or Cygwin,...

    If you are using gcc through MinGW64 or Cygwin, then gdb is your best choice. Not a big fan of any IDE especially Visual Studio. You didn't say which compiler you are using.
  17. Replies
    13
    Views
    2,368

    Perhaps it was a homework assignment from an...

    Perhaps it was a homework assignment from an unqualified instructor, a bad book, painfully inadequate online tutorial, YouTube video, ... If so, it should never been assigned, or listed.
  18. rempas: Why are you so concerned with the size...

    rempas:

    Why are you so concerned with the size of an executable? With most modern hard drives measured in multiple Terabytes, and ultra fast 8+ core processors, with programs running on a hosted...
  19. I understand your use here, but I would use...

    I understand your use here, but I would use memset() to clear all the memory added to the end of B->array before returning.
    I run with -std=C18, but do declare all my locals at the top of the scope....
  20. When you say, "initialization", do you mean at...

    When you say, "initialization", do you mean at compile time with a constant, or "assignment" later.

    int main(void)
    {
    int a; // Not initialized, assigned later
    int b = 0; //...
  21. I was referring to a post by ghoul...

    I was referring to a post by ghoul not you.
  22. Why do you think that was NOT what I was...

    Why do you think that was NOT what I was referring to??? I didn't think I had to give an explicit example to the OP!
  23. After having a good strong cup of coffee this...

    After having a good strong cup of coffee this morning, I can't understand why you would want any and all variables NOT initialized to zero or some legitimate value! I can't see how variables picking...
  24. View this Wikipedia page on indentation styles...

    View this Wikipedia page on indentation styles. Choose one and be consistent. Many programmers editors and IDE's have options for automatically formatting your code, and conforming to a specific...
  25. If you are referring to global variables, then...

    If you are referring to global variables, then "-fno-zero-initialized-in-bss" may be what you are looking for. See this page for more information.

    Local variables are never initialized to zero by...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4