Search:

Type: Posts; User: medeshago

Search: Search took 0.02 seconds.

  1. Problem extracting data from a large file and passing it to a linked list

    Every time I try to extract data from a file that I have, it extracts the 2 first numbers and then it throws me a Segmentation fault. Here's the code of the two functions that are used:


    void...
  2. I removed every fflush(stdin) and still doesn't...

    I removed every fflush(stdin) and still doesn't work.
  3. void crearlog(struct producto **cabecera) { ...

    void crearlog(struct producto **cabecera)
    {
    struct producto *actual,*sucesor; //line 38
    actual=*cabecera;
    FILE *log;

    I didn't write this code, it's from the guy I'm doing this...
  4. asdf.c:38: aviso: variable ‘sucesor’ sin usar ...

    asdf.c:38: aviso: variable ‘sucesor’ sin usar

    That's the problem I'm having. When I try to search throught the list I get this:
    Medicamento a buscar: ASPIRINA
    ASPIRINA
    Precio:...
  5. I need to get this code working with gcc (it works with dev-c++)

    I don't know why it doesn't work. In dev-c++ I can do a search without any problems. In gcc it doesn't eve works. I really need to get this working with gcc.


    #include <stdio.h>
    #include...
  6. Replies
    15
    Views
    4,555

    So I have to save the password to an array and...

    So I have to save the password to an array and add an end of string to that array?

    I did it like this:

    int a;
    char pass[20]

    printf ("\n Enter your password : ")
    scanf ("%s", pass);
  7. Replies
    15
    Views
    4,555

    I need to trasnform the array to a string.

    I need to trasnform the array to a string.
  8. Replies
    15
    Views
    4,555

    How can I convert an array to a pointer to a char?

    How can I convert an array to a pointer to a char?
  9. Replies
    15
    Views
    4,555

    Thanks, I didn't notice that. But my main problem...

    Thanks, I didn't notice that. But my main problem continues to be the comparison.
  10. Replies
    15
    Views
    4,555

    I need to compare the string entered by the user...

    I need to compare the string entered by the user (the password) with the array, comparing messageclear with messagecrypt will always throw me an error because one is the password decoded and the...
  11. Replies
    15
    Views
    4,555

    [SOLVED]Problem reading a password from a file.

    I have a password inside a file that's ciphered with the caesar cipher (you move the letter 3 spaces to the right, if you have 'a' it becomes a 'd', if you have a 'b' it becomes an 'e' and so on)....
  12. Replies
    2
    Views
    1,121

    Thanks.

    Thanks.
  13. Replies
    2
    Views
    1,121

    Just learning, problem with an excercise.

    I have to do a program that evaluates if the digits of a number are alternatingly evens and odds. Example = 23232, 1234, 9634, etc.


    #include <stdio.h>

    int main()
    {
    int a;
    int cont=0;...
  14. Replies
    8
    Views
    1,971

    Thanks, now it works great.

    Thanks, now it works great.
  15. Replies
    8
    Views
    1,971

    This is how it looks now: #include ...

    This is how it looks now:


    #include <stdio.h>

    int main()
    {
    int a=0, n;
    float den, suma=0.0;
  16. Replies
    8
    Views
    1,971

    Just learning, problem with an excercise.

    I have to do the following:
    Read a number and calculate the following sequence:
    1-1/2+1/3-1/4+1/5...1/n

    This is the way I'm doing it, but it doesn't work:


    #include <stdio.h>

    int main()
Results 1 to 16 of 16