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

Search:

Type: Posts; User: wolle

Page 1 of 28 1 2 3 4

Search: Search took 0.02 seconds; generated 41 minute(s) ago.

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

    You could start from an implementation of a binary tree. There are plenty available on the internet and in textbooks.

    In the node declaration, replace the left and right child node pointers with a...
  2. Thread: Developers -

    by wolle
    Replies
    3
    Views
    169

    Re: Developers -

    The TIOBE index is a renowned indicator of the most popular languages right now,

    https://www.tiobe.com/tiobe-index/

    An advantage of TIOBE over one-off studies is that TIOBE also shows the...
  3. Replies
    4
    Views
    595

    Re: Manual programming question.

    You are welcome.

    The TROLL approach is a game changer, made possible by the recent discovery of the latent lines. A latent line knows its proper position in a text regardless of where you put it....
  4. Replies
    3
    Views
    338

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

    Visual C++ was once a free-standing product but has become part of Microsoft Visual Studio. There is a free community edition available,

    https://visualstudio.microsoft.com/downloads/

    Select...
  5. Replies
    4
    Views
    595

    Re: Manual programming question.

    You certainly could. In computer science, your approach is called The Robust Order of Latent Lines, or TROLL for short.
  6. Replies
    1
    Views
    431

    Re: Questions on what to study for the Software Development Program

    What is the nature of your admission? You provide a link to what seems to be an outsourcing company. Have you become a subcontractor to this company and now want to know what you need to study to...
  7. Thread: DWORD size in VS

    by wolle
    Replies
    6
    Views
    408

    Re: DWORD size in VS

    Maybe the variable is a DWORD array. In that case, the 5 you see could denote the array size (rather than the DWORD size.)
  8. Re: New with C programming, question about a loop situation

    You have not explained what is wrong, but your code effectively shifts the input integer five times to the right and then extracts the rightmost bit. For example, given input 32, which has a binary...
  9. Replies
    5
    Views
    1,470

    Re: Open source in Zürich

    Great, and chances are you meet people who like to get together and code in C++.

    Good luck!
  10. Replies
    5
    Views
    1,470

    Re: Open source in Zürich

    Most open source projects are online. However, in Zûrich, the ETH seems to organize in-person activities,

    https://gdsc.community.dev/eth-zurich/
  11. Replies
    2
    Views
    589

    Re: Deciding which language to pursue ...

    I suggest you look at Python, Java/C# (essentially equivalent), and C++. All are well-established and modern. All support procedural, object-oriented, and functional programming. And all are very...
  12. Replies
    6
    Views
    830

    Re: programming question

    Your best option probably is to team up with a good programmer. That is how many successful companies started - one with the vision and one with the know-how.
  13. Thread: stl find

    by wolle
    Replies
    12
    Views
    1,628

    Re: stl find

    Well, I should have tested my code but it was intended more as an illustration for a suggestion. Anyway, the GetValue function can be declared constexpr and noexcept to make it even better.
  14. Thread: stl find

    by wolle
    Replies
    12
    Views
    1,628

    Re: stl find

    It is possible to use 2kaud's approach (in #8) but in a way that reduces the size of B. That can be useful if A grows in the future but still holds numbers that are all powers of 2. The idea is to...
  15. Replies
    3
    Views
    957

    Re: Built in Data Types Support in C and C++

    If it is a general programming project, it is better to use C++, even if it is a small project. With C++, you have C at the baseline but gain the benefits of a modern language. You get a substantial...
  16. Replies
    15
    Views
    3,269

    Re: needs to convert C++ code to JAVA

    There are C++ to Java conversion tools available on the internet. Some are for free.
  17. Replies
    2
    Views
    324

    Re: Running an application on multiple CPUs

    It is decided by the OS. In the case of Windows, Microsoft says this,

    https://docs.microsoft.com/en-us/windows/win32/procthread/multiple-processors
  18. Replies
    3
    Views
    854

    Re: Palindrome Problem in C++

    Are you sure? I could not spot a bug, so I ran your code with jverd's test set in #3 and the results are identical. It suggests your code is working. Still, it will not work with negative integers....
  19. Replies
    2
    Views
    3,747

    Re: Solving SameGame aka Clickomania

    Are you looking for an algorithm to develop or to play the game? It is an important distinction. I think the OP wanted an optimal playing strategy.
  20. Replies
    14
    Views
    6,632

    Re: Store all pixel from a circle in an array?

    Are you looking for a solution to the Gauss circle problem?

    https://en.wikipedia.org/wiki/Gauss_circle_problem

    https://mathworld.wolfram.com/GausssCircleProblem.html
  21. Replies
    5
    Views
    1,377

    Re: Which programming language can handle this

    I would consider Python,

    https://www.python.org/

    It is the preferred language among people with no idea :), and there are many, as you can see here,

    https://www.tiobe.com/tiobe-index/
    ...
  22. Replies
    2
    Views
    1,450

    Re: Is it ok to use null checks?

    The inventor of the null reference, Tony Hoare, has publicly apologized for it. He calls it his billion-dollar mistake. See this Wikipedia entry (the first paragraph in the Apologies and retractions...
  23. Replies
    2
    Views
    779

    Re: "Embedding a method" refactoring method

    Embedding usually means that something is made part of some larger structure. And since the term "method" is predominantly used in object orientation, the larger structures in question could be the...
  24. Thread: complex signal

    by wolle
    Replies
    1
    Views
    2,555

    Re: complex signal

    C++ has a standard library to handle complex numbers,

    https://en.cppreference.com/w/cpp/numeric/complex

    Say you have,

    f(t) = exp^(j*omega*t)

    Note that the imaginary unit j plays a role in...
  25. Replies
    3
    Views
    702

    Re: Set to coordinates to centre of grid

    My code is logically the same as yours. If your code is wrong, so is mine. Your problem description indicates you have a working solution and now want help making your code become "neater".
Results 1 to 25 of 698
Page 1 of 28 1 2 3 4





Click Here to Expand Forum to Full Width

Featured