Search:

Type: Posts; User: naturegirl

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. @nonoob: what do you mean by subtotals? Is this a...

    @nonoob: what do you mean by subtotals? Is this a similar thing to what I was proposing? Basically that you change the reading of the columns to reading of rows in the second matrix? This would...
  2. This time I can't write *rofl* Maybe it has to do...

    This time I can't write *rofl* Maybe it has to do with that I come here at the end of my day, and it's quite late here and English is not my first language :)
    I meant column instead of row :)
  3. Replies
    7
    Views
    1,239

    Wow didn't know there were so many secrets....

    Wow didn't know there were so many secrets. Thanks for sharing!
  4. Replies
    3
    Views
    7,471

    Yes that's what he means. With the return value...

    Yes that's what he means.
    With the return value of scanf you want to check how many inputs you have scanned and converted correctly, and only if the number matches 3 you want to continue
  5. Replies
    34
    Views
    3,171

    ok. hehe, I see^^

    ok. hehe, I see^^
  6. Replies
    7
    Views
    1,838

    If writing in C, you couldn't read the file and...

    If writing in C, you couldn't read the file and display the progress bar at the same time. So you'd have to think of a way to switch between these two things you want to do. How would you do that?
  7. Talking about matrix multiplication. If you want...

    Talking about matrix multiplication. If you want to speed up your algorithm, I've heard that by transposing the second matrix, so that you can multiply line by line instead of line by row, it will be...
  8. Replies
    4
    Views
    1,153

    Oh I see! Thanks :) Hm weird, what did the error...

    Oh I see! Thanks :) Hm weird, what did the error about the double free mean then?
    I thought it meant the first free, because when I removed it, the program worked fine.
  9. Replies
    34
    Views
    3,171

    Again I can't read =__= I'm really sorry...

    Again I can't read =__= I'm really sorry everyone, now this already happened the second time. btw are there some other guidelines I should know about? Like when I should post code example, or if it's...
  10. Replies
    4
    Views
    1,153

    There's an issue in free(). You're pointers are...

    There's an issue in free().
    You're pointers are like this. ptr_rows <-- user_ptr <-- elem_ptr
    So esentially the latter 2 are all pointing to the memory of ptr_rows.
    This means you only need to do...
  11. Replies
    34
    Views
    3,171

    I'm a bit confused about the definition of...

    I'm a bit confused about the definition of permutation.
    Say I have "abc". Then permutations would be abc, acb, bac, bca, cab, cba right?
    So the same characters but just in different positions?
    So...
  12. Yup, you definitely need to make sure you know...

    Yup, you definitely need to make sure you know what data types your variables are. In your corrected version it's also mixed up between printf and scanf.
  13. Replies
    7
    Views
    6,044

    but I thought the child process stops after...

    but I thought the child process stops after "exit" ?
  14. Replies
    34
    Views
    3,171

    Same question as fjidd. And generally it's...

    Same question as fjidd.

    And generally it's very bad style to have that many encapsuled for loops. As already pointed out, each layers adds a level of complexity, which in your case would be O(n^8)...
  15. Replies
    12
    Views
    1,109

    supppose n is the number of lines, and you have...

    supppose n is the number of lines, and you have read in the data till now:


    int n; // suppose number of lines
    int cnt = 0;
    for (i = 0; i < n; ++i) {
    if...
  16. Replies
    9
    Views
    1,728

    ok, guess I can't read =_=

    ok, guess I can't read =_=
  17. Replies
    22
    Views
    1,912

    I didn't see anything wrong in line 5 either......

    I didn't see anything wrong in line 5 either...
    Hm I can't debug it without the whole code. But that algorithm was also an assignment I did =)
  18. Replies
    9
    Views
    1,728

    so you're saying description_nametraveller is a...

    so you're saying description_nametraveller is a char array and onoma is an integer?
    Why the assignment then?
  19. Replies
    14
    Views
    2,818

    Read and try the code I posted. It will print it...

    Read and try the code I posted. It will print it out the way you wanted.
    Just because what's printed out is 2 dimensional, doesn't mean your array has to be...
  20. Replies
    4
    Views
    946

    well, it doesn't compile... I don't know where...

    well, it doesn't compile...
    I don't know where you get the functions inserisci(), visualizza() from.
    It would also help if it where english...
  21. Replies
    22
    Views
    19,346

    Yup, as he points out there's something wrong...

    Yup, as he points out there's something wrong with these two variables. Take a look at mine again and see what's different :)
  22. Replies
    5
    Views
    979

    The problem lies in your result variable in...

    The problem lies in your result variable in evaluate_one()
    Try adding a default case to check to print out an error message in the swith(op) statement.
    Somehow you didn't pop the op correctly, and...
  23. Replies
    7
    Views
    6,044

    is this an OS class?^^ ok, so the special...

    is this an OS class?^^

    ok, so the special thing about fork() is its return value. When in the child process it returns 0 and when in the parent process it doesn't. So this way it can be used to...
  24. Replies
    22
    Views
    19,346

    did you mean my code in line 49? Hm not really...

    did you mean my code in line 49?
    Hm not really sure, mine was just compiled with gcc, so I also had to remove the parts system("cls")
    Maybe string refers to the variables "menu" or "questions"...
  25. Replies
    6
    Views
    860

    It doesn't actually make a difference when you...

    It doesn't actually make a difference when you actually use the array.
    It's more a difference in where exactly the variable in memory is stored, but that doesn't have to concern you too much i...
Results 1 to 25 of 30
Page 1 of 2 1 2