CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: 2kaud

Page 1 of 80 1 2 3 4

Search: Search took 0.07 seconds.

  1. Re: creation of simple tree like structure using stl vector c++, need help : )

    Really, the more important question is when inserting data into the tree, what is the criteria for creating a new node - or to traverse existing nodes for insertion?
  2. Re: creation of simple tree like structure using stl vector c++, need help : )

    This is a multi-node or general tree. There's various implementations/info about this on the Internet. Eg:

    https://www.geeksforgeeks.org/generic-tree-level-order-traversal/...
  3. Thread: Developers -

    by 2kaud
    Replies
    3
    Views
    146

    Re: Developers -

    To get the result you want, you use the data that fits the conclusion...

    "There are lies, damned lies and statistics"
  4. Thread: Developers -

    by 2kaud
    Replies
    3
    Views
    146

    Re: Developers -

    I may be suffering from coffee deprivation - but how can a search for say "Java Software Engineer" have more hits than just "Java"? Shouldn't the simpler search give the most hits?
  5. Replies
    2
    Views
    154

    PHP Re: Error for Wordpress Theme (phpMyAdmin)

    People may have read this thread but not have php knowledge. Myself for instance. I just use c/C++ so although I've read this thread I'm not in a position to provide any advice.
  6. Replies
    3
    Views
    328

    Re: Best book to learn Visual C++ from scratch?

    For info re VS setup, intro etc see
    https://learn.microsoft.com/en-us/visualstudio/windows/?view=vs-2022

    Note that this covers other languages apart from C++ (eg, c#, python, Visual Basic etc)
  7. Replies
    3
    Views
    328

    Re: Best book to learn Visual C++ from scratch?

    For an intro book on C++, I recommend "Beginning C++20: From Novice to Professional" by Ivor Horton
    https://smile.amazon.co.uk/Beginning-C-20-Novice-Professional/dp/1484258835/ref=sr_1_3

    For a...
  8. Replies
    3
    Views
    409

    Re: question on structures

    Basically, yes. Note though that int8_t is usually treated as a type char (eg for std::cout). Also note that .size() and std::size() return type is size_t whose width does change depending upon...
  9. Replies
    4
    Views
    566

    Re: Manual programming question.

    Say what??? The uncomprehensiveness is terrific...
  10. Thread: ForEach error

    by 2kaud
    Replies
    2
    Views
    526

    Re: ForEach error

    For Windows MS VS2022, this compiles OK:



    #include <limits>
    #include <iostream>

    int main() {
    std::cout << "The primes less than 20 are:\n";
  11. Replies
    22
    Views
    4,551

    Re: SHCreateDirectory not found

    and also you haven't said whether my suggestion in previous posts has been tried and worked or not. But without having compilable code that demonstrates the problem, like Victor there's not much else...
  12. Thread: DWORD size in VS

    by 2kaud
    Replies
    6
    Views
    405

    Re: DWORD size in VS

    3465238465 is 0xCE8B57C1 which is 4 bytes - 32 bits!
  13. Replies
    2
    Views
    240

    Re: VS2019 and C++17 ?

    VS2019 is C++17 compliant.

    To set to compile for C++17, Project/Properties/Configuration/General/C++ Language standard. Set to the one required. You then don't need to explicitly use /std:c++17...
  14. Thread: DWORD size in VS

    by 2kaud
    Replies
    6
    Views
    405

    Re: DWORD size in VS

    DWORD is unsigned 32-bit - irrespective of 32/64 bit. When you hover the mouse over a DWORD type, intellisense shows a typedef (as per Victor's 36058 above).

    If you're seeing a number when...
  15. Replies
    2
    Views
    4,008

    Re: Slot Machine Help please?

    ... after over 11 years......
  16. Re: New with C programming, question about a loop situation

    #include <stdio.h>

    int main() {
    for (unsigned i = 0; i < 255; ++i)
    printf("The fifth bit of %u is %u\n", i, (i / 16) % 2);
    //printf("The fifth bit of %u is %u\n", i, (i >> 4) & 1); //...
  17. Replies
    22
    Views
    4,551

    Re: SHCreateDirectory not found

    ... nor have you said whether my suggestion in post #17 re requiring a unicode string parameter rather than ASCII was right or not.
  18. Replies
    2
    Views
    579

    Re: Deciding which language to pursue ...

    'Overall PC security app' is pretty vague and could cover many things.

    Can you be a bit more specific as to what you are wanting to achieve?

    If you know VB6, then you might be interested in...
  19. Replies
    6
    Views
    820

    Re: programming question

    [ moved ]
  20. Thread: move jpg files

    by 2kaud
    Replies
    24
    Views
    2,050

    Re: move jpg files

    So what's wrong with the responses you're received on VBforums? They have way more members who could help with VB than on this forum...
  21. Thread: move jpg files

    by 2kaud
    Replies
    24
    Views
    2,050

    Re: move jpg files

    For VB, the codeguru sister site VBforums as you found out when you also posted the question there and received replies that did indeed include code...
  22. Thread: move jpg files

    by 2kaud
    Replies
    24
    Views
    2,050

    Re: move jpg files

    [Now asked on VB sister site https://www.vbforums.com/showthread.php?897187-find-jpg-files ]
  23. Thread: stl find

    by 2kaud
    Replies
    12
    Views
    1,615

    Re: stl find

    std::bit_width() requires an unsigned type for argument.

    "This overload participates in overload resolution only if T is an unsigned integer type (that is, unsigned char, unsigned short, unsigned...
  24. Thread: stl find

    by 2kaud
    Replies
    12
    Views
    1,615

    Re: stl find

    Then just do it as a simple lookup-table. You don't need A - just B with 64 elements.

    x5, x5, x5, x5, x5, x5, x5, x4, x4, x4, x4, x4, x4, x4 ,x4.....

    etc. Then just check that index is within...
  25. Thread: stl find

    by 2kaud
    Replies
    12
    Views
    1,615

    Re: stl find

    What are the sizes of A and B?

    If they are just values from 1 to 64 even in production, then a simple table lookup using an array of size 64 with each element the required x value. If the given...
Results 1 to 25 of 2000
Page 1 of 80 1 2 3 4





Click Here to Expand Forum to Full Width

Featured