Search:

Type: Posts; User: taazz

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    23
    Views
    4,062

    You are right my version of the function was...

    You are right my version of the function was actually used as i = inc(i);
  2. Replies
    23
    Views
    4,062

    as you say repeating an opinion does not make it...

    as you say repeating an opinion does not make it a fact.
    Actually no with out the optimization its even more insane, they add nothing to the overall reading information.

    a statistic sample of...
  3. Replies
    23
    Views
    4,062

    Considering that they are a good example of bad...

    Considering that they are a good example of bad code using them constitutes a bad habit, Unintelligent design is because in order to have those working you have to alter the compiler to recognize...
  4. Replies
    23
    Views
    4,062

    No sorry. += -= /= and all that the only thing...

    No sorry. += -= /= and all that the only thing that they offer in today's compilers is backwards compatibility and possible a couple of keystrokes while coding. They are worst than i++ and in my code...
  5. Replies
    23
    Views
    4,062

    I agree 100% inc(i) is as bad as i++ the only...

    I agree 100% inc(i) is as bad as i++ the only difference between the two is that you are familiar with i++ and I'm familiar with inc(i).
  6. Replies
    23
    Views
    4,062

    indentation and white space is THE formating...

    indentation and white space is THE formating there is nothing left if you remove those. In general we say that a piece code has good formatting when it has persistent formatting, the indentation is ...
  7. Replies
    19
    Views
    1,394

    1) you should always post the error you get. 2)...

    1) you should always post the error you get.
    2) I do not know if "p_array -= size" is correct, from a sleepy look it looks ok but I need to test it to be sure.
    3) realloc should allocate enough...
  8. Replies
    19
    Views
    1,394

    True enough but ++p_Array == p_array =...

    True enough but ++p_Array == p_array = p_array+sizeof(pointer); which in effect looses the primary address creating a memory leak.
  9. Replies
    19
    Views
    1,553

    that is false. EU has nothing to do with Russian...

    that is false. EU has nothing to do with Russian legislation.
  10. Thread: blackjack code

    by taazz
    Replies
    2
    Views
    643

    After some reformatting to make it readable it...

    After some reformatting to make it readable it compiles with no problems for me, although it is a bit of a mess code wise the compiler produces 0 errors 0 warning in 0 minutes and 0 seconds..
  11. An array is not a pointer is a static structure...

    An array is not a pointer is a static structure with predefined size, in your case 5 cells * 4 bytes each integer = 20 bytes each. All variables are in memory, either heap or stuck and all variables...
  12. You are confusing a pointer to a pointer with a...

    You are confusing a pointer to a pointer with a simple pointer. Try to always define variables for their use not their calling convention usage. For example, changing the parray_a and parray_b from a...
  13. singleDigits and firstTwenty arrays have...

    singleDigits and firstTwenty arrays have duplicate values you should merge them to one or simple delete the singledigit array. There is the small matter of singular and plural as well but that's...
  14. OK lets forget for a second the numbers, how...

    OK lets forget for a second the numbers, how about the words, what are the smaller number of string constants, required to be able to combine them in all the numbers up to 100?
    Have you thought...
  15. I just downloaded the book and took a quick look...

    I just downloaded the book and took a quick look on the problem and as far as I can see the methodology was spelled out for you a number of samples of the patterns were given but they are neither...
  16. Replies
    5
    Views
    1,423

    Depends heavily what you like to do keep the...

    Depends heavily what you like to do keep the marketing bullets out of your decisions (azure, IOT, cloud computing, java, python etc) and look at the various developing sectors that you would like...
  17. That was scary. Sorry I do not have the time to...

    That was scary. Sorry I do not have the time to read all the code posted but I have to say you missed the target by a mile. Just two hints, you do not need to convert the number to string at all and...
  18. Replies
    7
    Views
    1,243

    so your first comment has nothing to do with what...

    so your first comment has nothing to do with what I see now in the first post. For what I see now my assumption is that num does not get any initialization values it should contain what ever is on...
  19. Replies
    7
    Views
    1,243

    I did not understand whiteflags first suggestion...

    I did not understand whiteflags first suggestion and the second is a bit wasteful for my liking (if I understand it correctly). I would not initialize min to 0 the proper value should be maxInt where...
  20. well I haven't got used to the operator...

    well I haven't got used to the operator overloading stuff yet so I'll spare you my assumptions and simple point out that
    1)having two variables pointing to the same address inside the same class is...
  21. Isn't "a copy" imply that all of the "references"...

    Isn't "a copy" imply that all of the "references" have a unique copy of the data in a way that when changed the other "references" should not see that change? If yes do you implement some kind of...
  22. Oh boy, this is going to be hard for me to...

    Oh boy, this is going to be hard for me to explain in detail using c++ I'm a noob in C++, be forewarned.


    Lets talk about ownership. Ownership of a pointer means that the ptrOwner is responsible...
  23. Why? If there is a design need to keep internally...

    Why? If there is a design need to keep internally references of an object then why would you want to loose that reference every time a referenced object is copied? Wouldn't be logical to copy the...
  24. Replies
    4
    Views
    717

    well user_2 and password_2 never get any values....

    well user_2 and password_2 never get any values. You only read on user_1 and password_1 variables(Getline function call). You have to compare user_1 to "daddy" and password_1 to "kaddy" too.
  25. Replies
    2
    Views
    4,778

    The definition for 3 is wrong. It should be...

    The definition for 3 is wrong. It should be something along the lines of


    #define MIN(a,b) ((a) < (b) ? (a) : (b) )
    #define THREE(a,b,c) MIN(MIN(a,b),c))
    As you have it, looks like you assume...
Results 1 to 25 of 50
Page 1 of 2 1 2