General C++ Programming - March 2022 (Page 6)

Need urgent help with C++ solution
 
I am trying to solve this problem in C++. JAVA code is given in the below link, but I don't understa...
[13 replies] Last: Thanks everyone for all your valuable inputs. (by leo2008)
by frek
Unit test and performance measurement
 
Hi all, 1) Is there any (free) tool to measure code performance or time complexity of it on Visua...
[2 replies] Last: For unit test, I really like CATCH2 and I use it in every my projects. (by wqking)
by Cplusc
problem when moving from 32 to 64 platform (1,2,3,4)
 
I'm having difficulties when changing from 32 to 64. every single line of the code gives me an error...
[60 replies] Last: @TheIdeasMan, That code example you used from cppreference. https://... (by deleted account xyzzy)
by helios
Weird name resolution
 
Given: class Entry{ protected: virtual void to_DirectoryEntry(DirectoryEntry &) const = 0; pub...
[3 replies] Last: Ugh. So dumb. Yeah, now I remember. I've done this at least once befor... (by helios)
by pejvak
make a template class a friend of two class
 
Imagine we have three template classes. The second class `B` should access private member of class `...
[5 replies] Last: It seemed to work when I tried... Please post an example of accessing ... (by Peter87)
How Do I Fix comparison between signed and unsigned integer expressions
 
I get this warning when i try to run my program: warning: comparison between signed and unsigned...
[3 replies] Last: The problem is that comparisons with signed and unsigned integers (whe... (by Peter87)
Overloading Output for a pointer to an array in a class
 
Hello all, I have been trying to write a class that can handle bigInts (up to 40 digits long stored...
[1 reply] : Addition is usually implemented as N carry = 0; for i = (least signi... (by helios)
Is there an issue in my Code
 
I am having an issue with some parts of my code: #include <iostream> #include<cmath> using n...
[5 replies] Last: ok i fixed the issue in line 18. #include <iostream> #include<cmath... (by DeezyM89)
Char array to int avoiding dynamic memory allocation
 
Hi, I realise that the topic of char to int has been covered quite extensively in a number of posts...
[1 reply] : Consider std::from_chars https://en.cppreference.com/w/cpp/utility/f... (by mbozzi)
using coroutines to solve stack over flow due to deep recursive function call
 
hi, is there any one who has experience/advices on if and how we can solve the stack overflow iss...
[4 replies] Last: Some other things to try: - Increase the stack size. This is usually a... (by dhayden)
by JB71
Random Number Generator (1,2,3)
 
Hello all, I am a total noob when it comes to programming, and I am stuck on a problem that I have w...
[46 replies] Last: Interestingly while mucking around with VS, doing some testing with <r... (by deleted account xyzzy)
by frek
Volatile and threads
 
Hi all, My first question is how to recognize a section in the project's code in which some variabl...
[6 replies] Last: @helios. Thank you, two great points! (Especially portability). Thank ... (by frek)
how change the Pointer size inside the function?
 
see these function that have an argument Pointer: void GetDIBs(BYTE *Pixels) { int d...
[5 replies] Last: thank you so much. works fine. and i tested that must be: "pointer adr... (by Cambalinho)
blank
 
blank
[4 replies] Last: Your're genuinely a life-savior @mbozzi, thank you, your credentials a... (by Axon727)
Task
 
Hi, I'd like you to help me with my school task. I've got some code, but it's too slow. Here it is: ...
[10 replies] Last: Thanks! It works. Yeah, the problem with my code was that I didn't mak... (by algmaster)
How to find how many instances of templates are created upon compilation
 
Hi, I have this code and want to find how many instances of templates are generated: templa...
[2 replies] Last: C++ Insights (after fixing the compile time errors) can show template ... (by JLBorges)
by wqking
ANN: accessorpp -- open source C++ library for data binding and property
 
ANN: accessorpp -- open source C++ library for data binding and property https://github.com/wqking/...
[4 replies] Last: What about the castings on line 16/18 in 'Customized getter/setter' a... (by wqking)
how create a GDIPlus Image from HBITMAP?
 
how create a GDIPlus Image from HBITMAP? void NewImage(int Width, int Height) { if(I...
[1 reply] : the problem is the Pallet? Maybe not. The problem might be line 15. T... (by coder777)
Overloading Output for a pointer to an array in a class
 
Hey yall, so I have once again stumbled upon an overloading problem. For this class project, we pret...
[4 replies] Last: numSize is a member of my class but it had to be static and initializ... (by AbstractionAnon)
how get pixels colors from HDC?
 
how get pixels colors from HDC? void GetPixelsFromHDC(HDC Destination, int *pixels) { //Get the...
[16 replies] Last: the answer is YES. thanks for all (by Cambalinho)
March 2022 Pages: 1... 4567
  Archived months: [feb2022] [apr2022]

This is an archived page. To post a new message, go to the current page.