Search:

Type: Posts; User: ZaC

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thread: anagram program

    by ZaC
    Replies
    12
    Views
    7,612

    it is a good choose, but why don't you think...

    it is a good choose, but why don't you think about my suggestion?
    You should not save each word but just one for each group...
    From the example:

    here you have to save only
    efil
    nru
    abekr...
  2. Thread: anagram program

    by ZaC
    Replies
    12
    Views
    7,612

    I'd change the function to find anagrams... I...

    I'd change the function to find anagrams... I sudgest you to sort each letter of the word, than if a sorted word like this already exists (strcmp on a list of anagrams, if you can use hash table this...
  3. Replies
    4
    Views
    2,121

    Uhm, thanks, I tried it but nothing does change....

    Uhm, thanks, I tried it but nothing does change. The command prompt still pop up. Do I have to use some particular compiler?
  4. Replies
    4
    Views
    2,121

    Thanks, I'll look for windows api, because I...

    Thanks, I'll look for windows api, because I nevere used it. Thanks again.
  5. Replies
    4
    Views
    2,121

    How to do not pop up the command prompt? (background program)

    I'm just trying to simulate a combination of pressed keys, and I'd like the command prompt doesn't appear (it should run in background), but how can I do this? I already serached for it on the forum...
  6. Replies
    9
    Views
    2,177

    Why yes? Why not? Those lines are just logic...

    Why yes? Why not?
    Those lines are just logic steps before code...

    Yes, he does
  7. Thread: printing backward

    by ZaC
    Replies
    13
    Views
    1,422

    If you have just to print it backward, I think a...

    If you have just to print it backward, I think a smarter way could be to read it backward and print it... you don't need to reverse it.
  8. Replies
    16
    Views
    3,342

    if ((enlgish == poor) && tired) printf("%s",few);...

    if ((enlgish == poor) && tired) printf("%s",few);
    else printf("%s",more);
  9. Replies
    16
    Views
    3,342

    You are right, it was very late and sleep made me...

    You are right, it was very late and sleep made me to write without searching (I use it, don't you worry)


    what a big trouble... if you are busy just don't care ;)


    it's what I'm looking for,...
  10. Replies
    16
    Views
    3,342

    swap of variables without tmp

    Is it possible?
    Some months ago, a programmer told me it is, but he didn't tell me how. I'm still thinking about it.
    Thanks in advance
  11. Thread: C project

    by ZaC
    Replies
    23
    Views
    3,174

    If this program is for the same course, i think...

    If this program is for the same course, i think that what you wrote is good. To have something like the second you should write a function which try evry assignment until each team region touches the...
  12. Thread: C project

    by ZaC
    Replies
    23
    Views
    3,174

    I'm sorry! I was not at home... I'm happy for you...

    I'm sorry! I was not at home... I'm happy for you that you find the solution alone :D where was the trouble?
  13. Replies
    31
    Views
    16,564

    neither... it sums the element upon the diagonal...

    neither... it sums the element upon the diagonal :D and it won't work for 2 reason at least.
    1) It won't compile giving the same error I posted before.
    2) If you do something to make it compile it...
  14. Thread: C project

    by ZaC
    Replies
    23
    Views
    3,174

    yes, if you put j=0 you'll delete the first...

    yes, if you put j=0 you'll delete the first product evry time

    edit: now it's ok
    but:
    -line 59 now you can use "product" instead of struct a_product and it's the same for the other part of...
  15. Replies
    31
    Views
    16,564

    Can I also pass it as a **? Thanks for the rest...

    Can I also pass it as a **?
    Thanks for the rest :)
  16. Replies
    31
    Views
    16,564

    Uhm... and if I know the size on runtime (using...

    Uhm... and if I know the size on runtime (using malloc for example) I should use int **bar, isn't it?

    EDIT: I guess: if i'm using a 3D matrix i should tell also the second size, right? (int...
  17. Replies
    31
    Views
    16,564

    @Adak: I guess I didn't understand what youngvito...

    @Adak: I guess I didn't understand what youngvito means exactly (probably for my english lacking in skills).
    @youngvito: the code I posted sums up each element multiplied for its position in the...
  18. Thread: C project

    by ZaC
    Replies
    23
    Views
    3,174

    I spotted only a logic error, you flag as erased...

    I spotted only a logic error, you flag as erased not the sent product but the last one, this is meaningless... I think that you don't need that flag ("eliminato").
    Example:
    You have to send the...
  19. Replies
    31
    Views
    16,564

    Sorry, why you want to use a function? I think...

    Sorry, why you want to use a function?
    I think this is easier:

    for (i = 0,sumAX=0; i < m; i++)
    for (j=0;j<n;j++)
    sumAX += a[i][j] * (j+1);
  20. Thread: C project

    by ZaC
    Replies
    23
    Views
    3,174

    ehehe thanks That's happen don't you worry...

    ehehe thanks


    That's happen don't you worry ;)

    Messina by chance?

    No problem :) we are here for this... really?!
  21. Thread: C project

    by ZaC
    Replies
    23
    Views
    3,174

    already done ;)

    already done ;)
  22. Thread: C project

    by ZaC
    Replies
    23
    Views
    3,174

    Ok, sorry, have I to translate?

    Ok, sorry, have I to translate?
  23. Thread: C project

    by ZaC
    Replies
    23
    Views
    3,174

    Devi sapere che qui se la tirano tutti e non poco...

    Devi sapere che qui se la tirano tutti e non poco ;)
    Passando a noi, avevo letto decisamente di fretta il codice! Spiegami cosa intendi dire per cancellare un prodotto: data una cittą da input ed un...
  24. Thread: About variables

    by ZaC
    Replies
    29
    Views
    2,575

    Yes, I used the int example just to make an...

    Yes, I used the int example just to make an analogy with the first code in the thread, my trouble with variables was about pointers :)

    edit: @Brafil, lol, perhaps you didn't turn the page :D
  25. Thread: About variables

    by ZaC
    Replies
    29
    Views
    2,575

    Very well, now it's all correct! The malloc...

    Very well, now it's all correct!
    The malloc makes the difference ;)
    Thank all y'all
Results 1 to 25 of 47
Page 1 of 2 1 2