Search:

Type: Posts; User: rstanley

Page 1 of 20 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    295

    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!
  2. Replies
    5
    Views
    295

    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...
  3. Replies
    5
    Views
    295

    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...
  4. Replies
    11
    Views
    606

    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!
  5. Replies
    11
    Views
    606

    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.
  6. 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...
  7. 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...
  8. Replies
    2
    Views
    202

    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...
  9. Replies
    2
    Views
    231

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

    Use memcmp() for possible non Nul ('\0') terminated arrays. Use strcmp() for Nul terminated "Strings"
  10. 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...
  11. Replies
    9
    Views
    635

    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>
  12. 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?
  13. Thread: Just starting

    by rstanley
    Replies
    17
    Views
    782

    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...
  14. Thread: databse

    by rstanley
    Replies
    1
    Views
    199

    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.
  15. Replies
    4
    Views
    234

    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...
  16. Replies
    4
    Views
    234

    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...
  17. 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...
  18. 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.
  19. "User-Defined Function" maybe? Bad instructor,...

    "User-Defined Function" maybe?

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

    "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....
  21. Replies
    7
    Views
    267

    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...
  22. Replies
    7
    Views
    267

    Programmers invented spell checker programs! ;^)...

    Programmers invented spell checker programs! ;^)

    Then why specify using the Python RNG???

    Post your code if have some problem with your code, and ask specific questions.
  23. Replies
    7
    Views
    267

    Bad at spelling also! This is a C forum. The...

    Bad at spelling also!

    This is a C forum. The instructions say to use the Python RNG, rather than the C version. Why do you think you should be coding the program in C!
  24. Thread: Struct + File

    by rstanley
    Replies
    5
    Views
    629

    rusyoldguy & Syazzz: Instead of using:...

    rusyoldguy & Syazzz:

    Instead of using:
    scanf("%[^\n]", b.plateNo);
    I strongly urge the use of fgets() instead and then remove the newline form the end of the string.

    scanf() is fine for...
  25. Replies
    2
    Views
    357

    Yes, "ARTNAME" should be a #define.

    Yes, "ARTNAME" should be a #define.
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4