Search:

Type: Posts; User: rstanley

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds.

  1. You are in the wrong forum as your code is C++...

    You are in the wrong forum as your code is C++ NOT C.

    C++ Forum
  2. Thread: C compiler

    by rstanley
    Replies
    3
    Views
    95

    gcc & clang are at the top of the list. I can't...

    gcc & clang are at the top of the list. I can't offer recommendations on any others. I would avoid Microsoft Visual Studio.
  3. Thread: C compiler

    by rstanley
    Replies
    3
    Views
    95

    You don't already have a compiler installed? ...

    You don't already have a compiler installed?

    If you have any Dsitro of Linux you have gcc installed or easily installed from your Distro's package manager.

    If Windows, Mac, or some other hosted...
  4. Replies
    2
    Views
    190

    Your question is a little too vague. You don't...

    Your question is a little too vague. You don't like gnuplot but don't say why. We don't know what kind of "data" you will be receiving, or your other requirements.

    Your first start would be a...
  5. Replies
    5
    Views
    386

    Make sure you turn on Warnings, and insure your...

    Make sure you turn on Warnings, and insure your warning level is turned up to the highest level to see all warnings and errors in your code!
  6. Replies
    5
    Views
    386

    Other errors when compiled in gcc v. 10.2.1:...

    Other errors when compiled in gcc v. 10.2.1:
    foo.c:31:20: warning: initialization of ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
    foo.c:33:33: warning: format...
  7. Replies
    5
    Views
    386

    You would first need to provide a sample data...

    You would first need to provide a sample data file so the code could be tested.
    Without compiling the code, the one thing I see is your call to strtok_r() on line 31. You need to pass the source...
  8. Replies
    11
    Views
    874

    kixify: Please move this thread to the C++...

    kixify:

    Please move this thread to the C++ forum, as your code IS C++ and this C forum is for the discussion of C code only.

    Thank you!
  9. Replies
    11
    Views
    874

    No, plus you are in the wrong forum as your code...

    No, plus you are in the wrong forum as your code is C++, not C.
  10. All command line arguments ARE pass as "String"...

    All command line arguments ARE pass as "String" arguments, even numbers.

    int argc contains the number of strings on the command line. One for the program name (Usually) and one for each argument...
  11. You need to post your code in Code blocks so we...

    You need to post your code in Code blocks so we can see why you are "facing many errors".

    Make sure your warnings are turned on and set to highest warning level. Don't know what compier you are...
  12. Replies
    2
    Views
    262

    A static variable holds the value the last time...

    A static variable holds the value the last time the function was called. The variable was only initialized once the first time the function is called. Static local varriables are stored in the...
  13. Replies
    2
    Views
    274

    Use memcmp() for possible non Nul ('\0')...

    Use memcmp() for possible non Nul ('\0') terminated arrays. Use strcmp() for Nul terminated "Strings"
  14. The whole this is very complex. Countries...

    The whole this is very complex. Countries spanning Asia and Europe, Italy that contains separate "Countries", The Vatrican and San Marino. Countries that have no concept of divisions, and probably...
  15. Replies
    9
    Views
    740

    Even commenting out the Widows stuff so it can be...

    Even commenting out the Widows stuff so it can be compiled under Linux:

    #ifdef _MSC_VER
    #define _CRT_SECURE_NO_WARNINGS
    #endif

    #include <stdio.h>
    //#include <conio.h>
    #include <string.h>
  16. I would choose the second one. However, do all...

    I would choose the second one. However, do all countries have "States"? How are other countries subdivided, or not?
    How would you handle the difference in Politics in the various countries?
  17. Thread: Just starting

    by rstanley
    Replies
    17
    Views
    932

    You need to study a good up to date book on the C...

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

    C...
  18. Thread: databse

    by rstanley
    Replies
    1
    Views
    211

    What database and what Operating System? Once...

    What database and what Operating System?

    Once you have answered those questions, a simple Google search would being up many links.
  19. Replies
    4
    Views
    271

    You need to post the actual code you typed into a...

    You need to post the actual code you typed into a file and attempted to compile, not a image of your handwritten code!

    We cannot compile and test handwritten code, or an image! Nor do you know if...
  20. Replies
    4
    Views
    271

    You need to make a first attempt yourself. Then...

    You need to make a first attempt yourself. Then if you are having problems, post the code in CODE blocks, and ask specific questions. We cannot and do not do your work for you.

    Please read the...
  21. Also, please remove the call to "fflush(stdin)"...

    Also, please remove the call to "fflush(stdin)" fflush() is for output files only. Please read why.

    Use this instead:

    int ch = 0;
    while ((ch = getchar()) != '\n' && ch != EOF);
    ch must...
  22. We all know how to declare and define functions,...

    We all know how to declare and define functions, but the acronym, "UDF", is never used by most programmers. I wonder where you learned this acronym.
  23. "User-Defined Function" maybe? Bad instructor,...

    "User-Defined Function" maybe?

    Bad instructor, book, video, or so-called tutorial I suspect.
  24. Replies
    5
    Views
    318

    "Dynamic Memory Allocation" functions such as...

    "Dynamic Memory Allocation" functions such as malloc() and calloc() allocate memory from the "Heap" for use by the program. They have nothing to do with assigning any data to the allocated memory....
  25. Replies
    7
    Views
    304

    So the output you displayed above is what you...

    So the output you displayed above is what you expect? What is the actual output from your code?

    We can't program the code for you. You have to make an attempt, and post your code so we can...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4