Search:

Type: Posts; User: Zeus_

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds; generated 7 minute(s) ago.

  1. Replies
    2
    Views
    132

    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...
  2. Replies
    14
    Views
    213

    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;
  3. 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...
  4. Thread: FPN math

    by Zeus_
    Replies
    43
    Views
    590

    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...
  5. Replies
    6
    Views
    144

    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...
  6. Replies
    6
    Views
    144

    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 };...
  7. Thread: FPN math

    by Zeus_
    Replies
    43
    Views
    590

    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?
  8. Replies
    6
    Views
    144

    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*...
  9. Replies
    2
    Views
    296

    > 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...
  10. Replies
    2
    Views
    296

    Flower Classification Problem

    The Flower Classification Problem is like the classic "Hello World" introduction to the world of Machine Learning and Artificial Intelligence or so I believe.

    Basically, the problem statement says...
  11. Replies
    5
    Views
    178

    If you insist on a solution without trying first...

    If you insist on a solution without trying first (i.e. provide us a code where we can see what you've tried), then I agree to what @Hodor has to say....

    Here you go:

    Look-and-Say Sequence -...
  12. Replies
    5
    Views
    178

    I think I recognise that pattern from a TED-ed...

    I think I recognise that pattern from a TED-ed Video that I saw a long time ago.... I can't find the actual video right now but I this is a similar copy of the video by someone else that popped up...
  13. I did mention something else ahead of "...err, 25...

    I did mention something else ahead of "...err, 25 is prime cuz remainder is 1, 35 is prime cuz remainder is 1, 49 is prime, 55 is prime...." that completely agrees with what you said...
  14. Describe your problem... I'm pretty sure I didn't...

    Describe your problem... I'm pretty sure I didn't understand what you meant in your question. If it's something related to calculating your distance or finding your field of view etc, have a look at...
  15. Thread: OpenGL

    by Zeus_
    Replies
    2
    Views
    235

    O Craaaapp.... I didn't think looking in the...

    O Craaaapp.... I didn't think looking in the About section would do me any good cuz I thought it'd probably just be listing the Contributors etc... Thanks for pointing it out :)
    I'll remember to...
  16. Thread: OpenGL

    by Zeus_
    Replies
    2
    Views
    235

    OpenGL

    Does anyone know any good reference material for OpenGL? One that contains information on every function that is callable by the programmer? I've tried searching on google and all I end up with is...
  17. > So if n % 6 doesn't equal 1 or 5 then it can't...

    > So if n % 6 doesn't equal 1 or 5 then it can't possibly be prime.

    ...err, 25 is prime cuz remainder is 1, 35 is prime cuz remainder is 1, 49 is prime, 55 is prime....

    No, this check isn't...
  18. Well, you've done it yourself already... All you...

    Well, you've done it yourself already... All you need to do is add your Largest and Lowest numbers and store it in a variable, say Sum, and print it. 'if' statements can contain more than one line of...
  19. Replies
    18
    Views
    627

    > I suggest keeping track of both size (number of...

    > I suggest keeping track of both size (number of elements in use, whether or not the null character is included is up to you) and capacity (number of elements for which memory has been allocated)....
  20. Lmao :) > int prime(int a){ int i; ...

    Lmao :)

    >
    int prime(int a){
    int i;
    if(a<2)
    return0;
    for(i=2;i<=a-1;i++)
    {
    if(a%i==0)
  21. Replies
    2
    Views
    106

    > student1.name[10] = "shyama"; Your compiler...

    > student1.name[10] = "shyama";

    Your compiler should warn you about this.... Up your warnings.

    name[10] sets you up indices from 0 through 9. Maybe use strcpy(student1.name , "shyama")
  22. Replies
    18
    Views
    627

    So, I've been busy studying other subjects...

    So, I've been busy studying other subjects preparing for entrance exams and haven't had much time to code lately but I found some time yesterday and added a little more content to my String class....
  23. Replies
    16
    Views
    299

    > The only problem I have with your code is that...

    > The only problem I have with your code is that I should be making it in only one function. I even thought it was impossible to do with only one function, but I'll take a look at how you did it and...
  24. Replies
    16
    Views
    299

    > I have no idea where I may have messed it up. 8...

    > I have no idea where I may have messed it up. 8 returns me 1, but 9 returns me 11. 14 returns me 1, but 15 returns me 17.

    Write down your code and dry run it in your head/paper a few times and...
  25. Replies
    18
    Views
    627

    > You cannot implicitly convert a pointer to a...

    > You cannot implicitly convert a pointer to a String to a reference to a String; that's why you need to dereference the pointer to get a String object for the String reference to refer to.

    Oh, I...
Results 1 to 25 of 106
Page 1 of 5 1 2 3 4