Search:

Type: Posts; User: rags_to_riches

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    3
    Views
    411

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

    for (int i = 0; i < nTail; i++); //<-- get rid of the semi-colon here
  2. 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....
  3. Replies
    5
    Views
    556

    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].
  4. 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.
  5. Replies
    2
    Views
    525

    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
  6. Replies
    5
    Views
    898

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

    Couple of things: alpha =...

    Couple of things:


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

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

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

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

    Is your password really a single character?

    Is your password really a single character?
  11. Replies
    2
    Views
    512

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

    You could try this: cURL for Windows: a Windows Installer for the Web Transfer Tool
  14. Replies
    14
    Views
    1,077

    The answer is in the documentation...

    The answer is in the documentation:



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

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

    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]
    ...
  18. 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...
  19. Replies
    8
    Views
    841

    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);
    ...
  20. 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;
  21. Replies
    16
    Views
    1,494

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

    Use stat.
  22. Replies
    5
    Views
    554

    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...
  23. Replies
    1
    Views
    663

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

    What laserlight said.
  25. Replies
    4
    Views
    811

    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
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4