Search:

Type: Posts; User: stdq

Page 1 of 6 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thank you both for your input. I'll carefully...

    Thank you both for your input. I'll carefully check the program and the FAQ.
  2. Program Crashing - Possibly Related to Dynamic Memory Allocation

    I wrote a program that tries to store the whole content of a file (its own source code) in a pointer to char variable, and then tries to print that content when the EOF is reached in the file. The...
  3. Thanks, stahta01. The directory is...

    Thanks, stahta01. The directory is "C:\SDL2\Development Libraries\SDL2-2.0.3\include".
  4. Thanks. I tried that too.

    Thanks. I tried that too.
  5. Thanks for your reply. The directory is correct,...

    Thanks for your reply. The directory is correct, I copied it from the explorer.
  6. Cannot open include file: 'SDL/SDL.h': No such file or directory

    I'm trying to compile the .c program from Lazy Foo' Productions - Hello SDL: Your First Graphics Window from the Developer Command Prompt for VS2013, with the following command:

    cl test.c /Wall...
  7. Replies
    3
    Views
    3,960

    Variable penny is an integer (type int), and you...

    Variable penny is an integer (type int), and you are assigning it the initial value of 0.1, which is, I believe, converted to 0 when the program is compiled. The overall problem must related to that.
  8. Replies
    8
    Views
    5,349

    Well, for example, to read two integers and one...

    Well, for example, to read two integers and one double value, you can use the string "%d%d%lf" with function scanf. Then you can manually assign the value of each variable to a position in an array...
  9. Replies
    2
    Views
    1,406

    It is possible to do that. You could use a...

    It is possible to do that. You could use a repetition statement to choose the current row to shuffle, and you could use a helper two-dimensional array to put the shuffled elements; then, you could...
  10. Variable k is of type int, but it increases to a...

    Variable k is of type int, but it increases to a very long value that the int data type can't represent (1000000). Check header limits.h to see the maximum value the type int (signed int) can...
  11. Replies
    3
    Views
    581

    In line 18 you are using the assignment (=)...

    In line 18 you are using the assignment (=) operator. The equality operator is ==. If you use the assignment operator this way inside a condition, the value of the condition is the value assigned to...
  12. Replies
    8
    Views
    952

    Hum, you got me there. I don't know the reason...

    Hum, you got me there. I don't know the reason for that output. Someone else might, though. Maybe some systems round the digit 5 down instead of up.
  13. Replies
    8
    Views
    952

    What is the value you're entering, and what the...

    What is the value you're entering, and what the output should be, in your opinion?
  14. Answering your first question, partially: you are...

    Answering your first question, partially: you are giving the pointer j the value 0 or NULL. This means j will initially point to nothing.
  15. Replies
    4
    Views
    1,645

    I suggest you try following some book or tutorial...

    I suggest you try following some book or tutorial for beginners in C. If you already know Python, some concepts in C might be more easily learned, like conditionals and repetions.
  16. Replies
    2
    Views
    2,272

    Unsigned types have the same number of possible...

    Unsigned types have the same number of possible representations as signed types. However, unsigned types only represent 0 and positive values, whereas signed types represent a range of numbers...
  17. Replies
    4
    Views
    1,645

    The chances of your post being welcome here would...

    The chances of your post being welcome here would probably be greater if you wrote here what you've tried so far. Then, we can point suggestions on the code you've written.
  18. Thread: Seg fault

    by stdq
    Replies
    3
    Views
    1,791

    You might be trying to access an element outside...

    You might be trying to access an element outside of array theArray. You could print the value of each index being used before trying to access the element in that index: at least one of them might be...
  19. Nevermind, just found something on the beginning...

    Nevermind, just found something on the beginning of the cpp file!
  20. That's very interesting and simple! What is the...

    That's very interesting and simple! What is the license of this project?
  21. Yeah, I don't know much about that...but the...

    Yeah, I don't know much about that...but the problem was solved.
  22. Hi, the solution was to initialize each...

    Hi, the solution was to initialize each floating-point variable before reading it from the keyboard.
  23. Replies
    4
    Views
    694

    I think your code should be like this: class...

    I think your code should be like this:


    class Class
    {
    public:
    void Function(char a);
    //doing something with char a
    };
  24. The computer and compiler I'm using are not...

    The computer and compiler I'm using are not ancient, and I found the solution in this page: Microsoft Visual C++ Runtime Library error R6002 floating point not loaded - Visual C++ - Windows XP. Check...
  25. This page from MSDN doesn't say the solution is...

    This page from MSDN doesn't say the solution is through an option: C Run-Time Error R6002

    =/
Results 1 to 25 of 134
Page 1 of 6 1 2 3 4