Search:

Type: Posts; User: Zeus_

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    153

    Just realised this was posted on the C...

    Just realised this was posted on the C Programming section...

    In this case you should be using malloc and free instead of new and delete. However, in general, the programmer shouldn't be spending...
  2. Replies
    11
    Views
    184

    In general, your Class Methods shouldn't be doing...

    In general, your Class Methods shouldn't be doing interactive I/O. By interactive, @laserlight means you shouldn't be having things like "Enter Lucy's age: " in your method that does I/O. It takes a...
  3. Replies
    11
    Views
    184

    > There is no much information given in link. ...

    > There is no much information given in link.

    There's enough information on there than you've attempted to read. I've looked through myself and everything about initialising properties is present....
  4. Replies
    11
    Views
    184

    > How to print details of lucy's ? Exactly the...

    > How to print details of lucy's ?

    Exactly the way you do. Again consider using std::string as that's what you should be doing if you want to learn C++. Read a little further in the Wikiversity...
  5. Replies
    11
    Views
    184

    Not really, Wikiversity is a really good source...

    Not really, Wikiversity is a really good source to learn from. @abhi143 rewrote the code in a different way, probably for practice, and that's what has produced him his errors. You can see the...
  6. Replies
    5
    Views
    105

    You need a change of learning material in that...

    You need a change of learning material in that case. Try an online website or free, reliable PDF (there's a tonne of good material out there).
  7. Replies
    1
    Views
    70

    What would help you the most is a google search....

    What would help you the most is a google search. There are tonnes of really good material on "volatile" keyword (as per my reading). You will never understand "volatile" by reading a tonne about it....
  8. Not exactly, it is not stored only at 0061FF24....

    Not exactly, it is not stored only at 0061FF24. 35 is an integer and integers are stored as 4 bytes of memory in this case. So, 35 is stored over 0061FF24 to 0061FF28. Similarly, 1 is stored over...
  9. Replies
    2
    Views
    120

    If you are going to be reading line by line and...

    If you are going to be reading line by line and if you know how many different lines(with different names, surnames etc) exist in your file, you could use a random number generated in a range (say...
  10. Replies
    5
    Views
    153

    You should read more about scopes in case you...

    You should read more about scopes in case you want to be returning pointers. You cannot be returning a local pointer as it remains on your stack only till the end of your function scope or things...
  11. Replies
    5
    Views
    154

    What are you even trying to do? Take a notebook...

    What are you even trying to do? Take a notebook and try to solve the problem at hand by analysing what your algorithm should be doing for a simple input.

    Understand the problem at hand. Don't jump...
  12. Replies
    5
    Views
    154

    Post the code where we can see that you've tried...

    Post the code where we can see that you've tried to solve the problem! No one here will solve your HW for you.
  13. & is the 'reference' operator. Your function...

    & is the 'reference' operator. Your function expects integer pointers. Now, if you have learnt what pointers are, then you'd be correct if you thought that they are just a variable that hold a memory...
  14. Replies
    4
    Views
    229

    If xey pays me, I might as well do it, who...

    If xey pays me, I might as well do it, who wouldn't? But xey is stupid and is on the wrong forum if xey expect someone else to write code for them. xey buddy, have a look at:...
  15. Replies
    2
    Views
    140

    Or if you don't wanna do any of the above as...

    Or if you don't wanna do any of the above as @laserlight says and just want to get stuff done for hw, which is a bad thing if you wanna be a 'good' programmer and I recommend not to, hit google up...
  16. Each time you call the 'pass' function, two...

    Each time you call the 'pass' function, two variables called x and y with static scope are created. As you pass the value of 'a' to 'x' and 'b' to 'y', you essentially end up creating two aliases aka...
  17. Replies
    4
    Views
    199

    Why don't you try writing your own function to do...

    Why don't you try writing your own function to do that? It's pretty straightforward....

    There are solutions all over the internet, google em up.

    C++ - Decimal to binary converting - Stack...
  18. Replies
    14
    Views
    234

    The same way you'd initialise a normal array. ...

    The same way you'd initialise a normal array.



    p [0] = 5;
    p [1] = 15;
    p [2] = 5;
    p [3] = 53;
    p [4] = 101;
  19. C++ Pointers and Arrays...

    C++ Pointers and Arrays

    Read more about Arrays and Pointers and you'll easily understand what's happening.

    When you declare "array", you create a pointer called 'array' which know it's size is...
  20. Thread: FPN math

    by Zeus_
    Replies
    55
    Views
    864

    Yes, #18, sorry I forgot mentioning that. I use...

    Yes, #18, sorry I forgot mentioning that. I use the Hybrid view so all replies look nested in my screen but for those who may not be viewing it in this way will find this post towards the end of the...
  21. Replies
    6
    Views
    151

    Your ReplyToQ, MsgID and Format are all char...

    Your ReplyToQ, MsgID and Format are all char arrays, and you haven't passed them as their & equivalent so it only makes sense to do the same for Persistence. As everything is already a pointer, and...
  22. Replies
    6
    Views
    151

    Ignore my message in #2. I realised I'm wrong in...

    Ignore my message in #2. I realised I'm wrong in my explanation as I confused myself a bit... Sorry about that.

    Let's say you have an array A.



    int A [] = { 1 , 2 , 3 , 4 , 5 , 6 , 7 };...
  23. Thread: FPN math

    by Zeus_
    Replies
    55
    Views
    864

    It shows the site cannot be reached on my end.......

    It shows the site cannot be reached on my end.... What's the books name?
  24. Replies
    6
    Views
    151

    You should be using a & (reference) operator when...

    You should be using a & (reference) operator when you want, maybe, an alias or to prevent copying of the contents of one location in memory into another. memcpy's second argument takes a const void*...
  25. Replies
    2
    Views
    381

    > Not an ML expert. But a small dataset like that...

    > Not an ML expert. But a small dataset like that will probably not yield the best results. You need more samples.

    That's true, the more data sets I provide for each type of flower, the better the...
Results 1 to 25 of 122
Page 1 of 5 1 2 3 4