Search:

Type: Posts; User: rags_to_riches

Page 1 of 20 1 2 3 4

Search: Search took 0.03 seconds.

  1. 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.
  2. Replies
    2
    Views
    457

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

    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;
    ...
  4. Replies
    5
    Views
    557

    Couple of things: alpha =...

    Couple of things:


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

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

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

    https://msdn.microsoft.com/en-us/library/yszfawxh.aspx
  7. Replies
    4
    Views
    688

    Is your password really a single character?

    Is your password really a single character?
  8. Replies
    2
    Views
    482

    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.
  9. 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
  10. You could try this: cURL for Windows: a Windows...

    You could try this: cURL for Windows: a Windows Installer for the Web Transfer Tool
  11. Replies
    14
    Views
    998

    The answer is in the documentation...

    The answer is in the documentation:



    Bolding added.
  12. Don't use fflush(stdin)...

    Don't use fflush(stdin). Be sure to read the link within that link; it has the answer.
  13. 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...
  14. Replies
    17
    Views
    2,035

    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]
    ...
  15. 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...
  16. Replies
    8
    Views
    804

    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);
    ...
  17. 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;
  18. Replies
    16
    Views
    1,399

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

    Use stat.
  19. Replies
    5
    Views
    540

    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...
  20. Replies
    1
    Views
    647

    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...
  21. What laserlight said.

    What laserlight said.
  22. Replies
    4
    Views
    784

    He got someone to write the Fortran code for him....

    He got someone to write the Fortran code for him. Guess he needed C. integration - Page 2 - My Math Forum
  23. Why did you choose C as the language in which to...

    Why did you choose C as the language in which to do this? Higher-level languages such as Python and Perl are far better suited for such a task.
  24. Now you might ask, "Why such a silly error...

    Now you might ask, "Why such a silly error message?" but it actually makes sense. Here's the explanation.

    When you add a semicolon to a for loop like that, you're telling the compiler "Loop this...
  25. You have an unwanted semi-colon here: for...

    You have an unwanted semi-colon here:


    for (outer = 0; outer < 9; outer++); // <--
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4