Search:

Type: Posts; User: rstanley

Page 1 of 20 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    390

    From man7.org...

    From man7.org, a more accurate resource for online manpages:


    Please compare the atoi() manpage against the strol() magpage, and the example on the latter.
  2. Replies
    23
    Views
    1,102

    In order to learn the language properly, you need...

    In order to learn the language properly, you need to either take a class from a qualifed instructor, or you need to study a good up to date book on the C Programming Language, cover to cover, and do...
  3. Replies
    23
    Views
    1,102

    I don't use any IDE, but I found this: Dev-C++...

    I don't use any IDE, but I found this:
    Dev-C++ Tutorial

    I use Emacs as my editor, and either compile on the command line, or "make" for anything larger than a one source file program. Most...
  4. Replies
    23
    Views
    1,102

    Semicolons missing after declaring "int...

    Semicolons missing after declaring "int Multiplier" and "int Result".

    You can define and initialize a variable in one statement.

    int Value = 50;

    "printf" not "Printf"

    getch() is not a...
  5. Replies
    23
    Views
    1,102

    Although, I don't do MySQL development, I would...

    Although, I don't do MySQL development, I would start with this tutorial:
    MySQL C API programming tutorial

    There may be other, and possibly, better tutorials online.

    And the full reference to...
  6. Salem is far more knowledgable than you give him...

    Salem is far more knowledgable than you give him credit for! You should listen to him.

    Linux experts are currently working on the 2038 problem.

    Some UNIXs are already corrected for the 2038...
  7. You are also in the wrong forum to ask about a...

    You are also in the wrong forum to ask about a C++ code question

    This is the forum to discuss the C Programming Language only.
  8. Replies
    3
    Views
    330

    That warning is legit. The compiler thinks you...

    That warning is legit. The compiler thinks you meant to use '==' instead of '='.
    Two options:

    ...
    if ((fname = fopen("a.txt", "r"))) {
    ...

    or

    #include <stdio.h>
  9. Replies
    11
    Views
    641

    You eliminated the checks to see if the fopen()...

    You eliminated the checks to see if the fopen() calls worked correctly. You should always check the return from fopen(). (And many other Standard Library functions!) If the file does not open...
  10. Replies
    11
    Views
    641

    Two other problems from your code above: ...

    Two other problems from your code above:

    destination = fopen("//server//folder//filename.txt","w");
    if(source==NULL)
    {
    printf("File error!");
    return 1;
    }

    Do you see a problem?
  11. Function prototypes (function declarations) in a...

    Function prototypes (function declarations) in a .h file included in both module .c files. A good book on the C programming language will explain this and other features you need to know especially...
  12. Replies
    1
    Views
    269

    We cannot and do not write your code for you...

    We cannot and do not write your code for you especially for a homework assignment, or a test.

    You need to write a first attempt, and post the code here if you have problems or questions.

    The...
  13. Replies
    3
    Views
    315

    First of all, this is a forum for the discussion...

    First of all, this is a forum for the discussion of C, and not C++ or other languages.

    That said, I would strongly recommend learning C thoroughly first, from a qualified instructor, or from an up...
  14. Replies
    3
    Views
    298

    Without seeing more details about the program, I...

    Without seeing more details about the program, I would use "weapon" as an index to an array of whatever "OBJ_EQ_DWARVEN_CROSSBOW" and other similar constants represents. You then could then reduce...
  15. I may have read some incorrect documentation many...

    I may have read some incorrect documentation many years ago.

    I stand corrected.
  16. First of all, you cannot assume the order of the...

    First of all, you cannot assume the order of the members of a struct, in memory, despite the order you specify.

    If the char is first in memory, then the int will by default, align on the next int...
  17. double *pCurrentDiscountPercentage = 0; int*...

    double *pCurrentDiscountPercentage = 0;
    int* pintYearsEmployed = 0;
    double *psngAmountPreviousPurchase = 0;
    char *pcharEmployeeStatus = 0;
    double *psngTodaysTotalPurchase = 0;


    Where are you...
  18. Replies
    3
    Views
    428

    The documentation for the Library and functions...

    The documentation for the Library and functions would have provided this information and more!
  19. See my previous response! If the program is...

    See my previous response!

    If the program is called with NO COMMAND LINE ARGUMENTS, then attempting to access argv[1], argc[2], argc[3], ... is ILLEGAL!!! You can ONLY access argv[0] through...
  20. If the program is called with no arguments to the...

    If the program is called with no arguments to the program, then accessing argv[1] or higher would be illegal.

    Us the following to display the command line arguments:

    #include <stdio.h>

    int...
  21. Replies
    4
    Views
    377

    I would strongly urge you to learn C thoroughly...

    I would strongly urge you to learn C thoroughly first. Then if you want to learn C++, you would be better prepared to learn and concentrate on the concepts of C++.

    Starting with C++, would not...
  22. Replies
    8
    Views
    355

    Your code above won't even compile; Please...

    Your code above won't even compile;

    Please format your code with proper indentation. This is not a C Code Obfuscation contest.

    Your if else statement is illegal.

    #include <stdio.h>...
  23. Replies
    21
    Views
    1,084

    You need to attempt to write the code yourself,...

    You need to attempt to write the code yourself, then if you have problems, post the code so we can comment. We can't and don't write homework assignments for you.

    Please read the forum FAQ.
  24. Thread: A .txt file.

    by rstanley
    Replies
    5
    Views
    520

    We all have a "everyday routine". If you cannot...

    We all have a "everyday routine". If you cannot commit to learning the language from a qualified instructor or from an up-to-date book, then I cannot help you further. Without properly learning the...
  25. Replies
    6
    Views
    406

    See my response to your other post here...

    See my response to your other post here.
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4