Search:

Type: Posts; User: rags_to_riches

Page 1 of 20 1 2 3 4

Search: Search took 0.04 seconds.

  1. Replies
    37
    Views
    19,034

    Something you can try is using GetWindowLongPtr...

    Something you can try is using GetWindowLongPtr/SetWindowLongPtr. Those pages both refer to functions with A at the end, but you should use the function without the A on the end, as this will use an...
  2. Replies
    4
    Views
    14,627

    On problem is this. You have accountNumber...

    On problem is this. You have accountNumber defined as this:

    char accountNumber[6];
    This can accept a maximum number of 5 characters, because you need space for the null ('\0') terminator. So when...
  3. Replies
    3
    Views
    2,881

    for (int i = 0; i < nTail; i++); //

    for (int i = 0; i < nTail; i++); //<-- get rid of the semi-colon here
  4. Two things in this line: if (ch = " ") ...

    Two things in this line:


    if (ch = " ")

    First, a space within quotes is treated as a C-string (char *). That's the meaning behind the error. You need to use single quotes for a character....
  5. Replies
    5
    Views
    6,206

    Arrays start from 0, not 1. You are writing...

    Arrays start from 0, not 1. You are writing outside the bounds of your allocated memory every time you access arrayname[8].
  6. Unlikely to happen. I suspected they've...

    Unlikely to happen. I suspected they've copied/pasted the samet question from here (sshaw2?) The Code I Wrote Gives Me An Error Once It Compile... | Chegg.com and don't want to pay to get the answer.
  7. Replies
    2
    Views
    1,128

    You shouldn't use feof: FAQ > Why it's bad to use...

    You shouldn't use feof: FAQ > Why it's bad to use feof() to control a loop - Cprogramming.com
  8. Replies
    5
    Views
    1,225

    The variable showerTime is declared as an array...

    The variable showerTime is declared as an array of integers. Unless you're taking in more than one integer value from the user, you do not need an array.

    So it should be


    int showerTime;
    ...
  9. Replies
    5
    Views
    901

    Couple of things: alpha =...

    Couple of things:


    alpha = (char*)malloc(sizeof(char)*63);
    alpha = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
    realpwd = (char*)malloc(sizeof(char)*10);
    realpwd = "ac8S";...
  10. Replies
    3
    Views
    580

    When you read the integer in ler_int, the Enter...

    When you read the integer in ler_int, the Enter key leaves a newline character ('\n') in the input buffer. The function fgets reads up to -- and including -- a newline character, so it gets that...
  11. Replies
    2
    Views
    3,369

    https://msdn.microsoft.com/en-us/library/yszfawxh....

    https://msdn.microsoft.com/en-us/library/yszfawxh.aspx
  12. Replies
    4
    Views
    1,115

    Is your password really a single character?

    Is your password really a single character?
  13. Replies
    2
    Views
    710

    Would also suggest going back to your class notes...

    Would also suggest going back to your class notes and textbook for a refresh on arrays, because you're not currently close.
  14. Copied and pasted (badly) from here: Binary...

    Copied and pasted (badly) from here: Binary Directory Tree Problem Of Implementing It - C And C++ | Dream.In.Code
  15. You could try this: cURL for Windows: a Windows...

    You could try this: cURL for Windows: a Windows Installer for the Web Transfer Tool
  16. Replies
    14
    Views
    2,363

    The answer is in the documentation...

    The answer is in the documentation:



    Bolding added.
  17. Replies
    5
    Views
    1,132

    Don't use fflush(stdin)...

    Don't use fflush(stdin). Be sure to read the link within that link; it has the answer.
  18. Replies
    5
    Views
    1,132

    scanf ("%s", &siono); siono is a single char...

    scanf ("%s", &siono);

    siono is a single char variable, so %s is the wrong scanf specifier there. Same with salir:


    scanf("%s", &salir);

    Be aware that reading a single character through...
  19. Replies
    17
    Views
    3,605

    You either need to turn up your warnings or...

    You either need to turn up your warnings or actually listen to them:


    beach.c:41:25: warning: format specifies type 'int' but the argument has type
    'double' [-Wformat]
    ...
  20. Yes, the very first line inside your main...

    Yes, the very first line inside your main function (and every one thereafter).


    Student(); //empty constructor

    Nope, that's not an empty constructor; that's the prototype for the default...
  21. Replies
    8
    Views
    1,156

    It's a matter of variable scope. You're creating...

    It's a matter of variable scope. You're creating new variables don't exist outside of their individual blocks. Instead just assign to the pq variable.


    pq = new_bounded_queue(4, le_artist);
    ...
  22. char *server = "localhost"; char *user = "root";...

    char *server = "localhost";
    char *user = "root";
    char *password = "1"; /* set me first */
    char *database = "PROJECT";


    Those should all be const char *s.


    char UPC;
  23. Replies
    16
    Views
    3,397

    Use stat (http://linux.die.net/man/2/stat).

    Use stat.
  24. Replies
    5
    Views
    730

    Every time that function is called, a new...

    Every time that function is called, a new variable called deal is created and initialized to 51.

    One option is to make the deal variable a static variable, meaning that it will reuse the same...
  25. Replies
    1
    Views
    842

    Find the directory the library file,...

    Find the directory the library file, libfreetype.a, is in. If it's in /a_directory/a_subdirectory, then your command line should probably look like


    g++ -Werror -Ilibs/jni/include...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4