Search:

Type: Posts; User: slingerland3g

Page 1 of 20 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    882

    We are here to help but there are tons of...

    We are here to help but there are tons of solutions in these forums. I quick search for me for what you may be after was found here: ...
  2. Replies
    8
    Views
    5,774

    The OP is likely making use of the openssl lib....

    The OP is likely making use of the openssl lib. To the OP, have you read up on : OpenSSL: Documents, RSA_generate_key(3)
  3. You have some typos in your printf unless you...

    You have some typos in your printf unless you need that '[' and the 'm' embedded in your printed string.
  4. Replies
    2
    Views
    809

    C and C++ do allow this; you are not protected...

    C and C++ do allow this; you are not protected though. By doing what you are doing and to emphasis what QuantumPete stated you are stepping into a world of undefined behavior.
  5. Replies
    3
    Views
    5,145

    Please note that while (string[i]) i++; ...

    Please note that



    while (string[i]) i++;


    can be written as
  6. Replies
    7
    Views
    1,571

    In your while loop you need to also check for...

    In your while loop you need to also check for '\n' as well as you are not needing those carriage returns.


    ...
    while(!(( c=getchar()=='*') && (c=getchar()=='/') && (c=getchar()=='\n')));
    ...
    ...
  7. Replies
    12
    Views
    8,617

    Not a c standard library header. See conio.h -...

    Not a c standard library header. See conio.h - Wikipedia, the free encyclopedia. Is there a specific reason you are using this? By default I include stdio.h and stdlib.h for most c programming of...
  8. Thanks, but I have to confess that I have learned...

    Thanks, but I have to confess that I have learned a ton as well from these forums. Trying to help others helps me too!
  9. That looks good. For a clue at line 23, 'strctat...

    That looks good. For a clue at line 23, 'strctat (name, ".txt");', you can simply loop through your structure members and assign the name and types directly to them at that point. You already have a...
  10. Below link may help in regards to c file I/O. The...

    Below link may help in regards to c file I/O. The key here is that you need to know how your file is set up to delimit it accordingly to parse out your names and types to assign their respective...
  11. In class has your instructor shown how to access...

    In class has your instructor shown how to access members within a structure? Think of a many boxes on a shelf and each box contains listings of names. So you need to be able to open up and view each...
  12. Replies
    9
    Views
    3,886

    Ah, very true!

    Ah, very true!
  13. Replies
    9
    Views
    3,886

    If you can get around freeing the pointer, you...

    If you can get around freeing the pointer, you could use realloc(), but check its returns for any pitfalls.
    realloc
  14. Replies
    13
    Views
    22,223

    You can do this with the modulus operator then.

    You can do this with the modulus operator then.
  15. Replies
    13
    Views
    22,223

    You can treat the number as a string. Set proper...

    You can treat the number as a string. Set proper memory constraints on the string variable. Set up a looping structure to print the string array in reverse order.
  16. have you read up on fopen and what it returns if...

    have you read up on fopen and what it returns if it fails?

    fopen
  17. Replies
    8
    Views
    55,855

    If you still do not have this working? How are...

    If you still do not have this working? How are you compiling this? Are you actually giving arguments to your executable once compiled and hopefully without any warnings like "multi-character...
  18. Replies
    4
    Views
    14,431

    What you did was request that the compiler set up...

    What you did was request that the compiler set up two blocks of memory each 100 chars in size. In your for loop you pretty much did a common mistake of overstepping your array bounds. Since you did...
  19. Replies
    6
    Views
    1,303

    That works as well, and probably preferred. ...

    That works as well, and probably preferred.

    http://cboard.cprogramming.com/c-programming/121321-typedef.html
  20. Replies
    6
    Views
    1,303

    Not quite, can you explain why you are doing: ...

    Not quite, can you explain why you are doing:



    (*pfunc(int)) /*what is the point of (int) here? */
  21. There is no clever way of doing this, the best...

    There is no clever way of doing this, the best path is what you have already thought of by using an array and loop by index. Not to skew too much but the Linux scheduler works very much like this...
  22. Replies
    30
    Views
    4,932

    Can you explain this in complete detail? ...

    Can you explain this in complete detail?




    #include <stdio.h> /*why not just use stdlib.h? */

    int
    main ()
    {
  23. Replies
    14
    Views
    1,166

    I would pay more attention to what laserlight and...

    I would pay more attention to what laserlight and quzah stated in your first problem, that will still apply for your second. Run through your program on paper, perhaps creating a table for your...
  24. Replies
    2
    Views
    5,799

    Write out some pseudo code. How would you do this...

    Write out some pseudo code. How would you do this without any code?

    1. Create and populate an array of records. Store records into file

    -Seems you are working off a static structure and not a...
  25. Try allocating memory for each of your...

    Try allocating memory for each of your assignments...




    /* for instance */
    ...
    population[i]= malloc (sizeof (struct person));
    ...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4