• Forum
  • General C++ Programming

General C++ Programming

by admin
Welcome to this board!
Welcome to the general programming forum in C++.com! In this forum, users can to talk about any top...
[no replies]
Can someone explain me this unexpected output?
I was trying to handle different line-ending. But as I expected the output was different than expec...
[no replies]
How to read file having different line ending in Cpp
I have two files "linuxUTF8.srt" and "macANSI.srt". I am reading these files using getline(). as mac...
[no replies]
encrypt and decrypt pointer
Hello , How to encrypt and decrypt pointer [ 99DE27 ] And save the result in ini file
[3 replies] Last: A pointer is just an address, just a number. Use reinterpret_cast to ... (by kbw)
how convert GDIplus::color to colorref?
how convert GDIplus::color to colorref? point Point=PixelLine ; Color *color; ...
[2 replies] Last: thank you so much for all.. works fine (by Cambalinho)
string handling
I am trying to resolve the below string manipulation. But code doesn't work as expected. Need help w...
[8 replies] Last: Right! I don’t know what I was thinking – I was probably already s... (by Enoizat)
coin smallest
I am trying to find the amount here. Input The first line of input contains an integer M, the numb...
[11 replies] Last: exactly :) (by jonnin)
How to capture the screen of a window that contains transparency?
Cross-posted https://docs.microsoft.com/en-us/answers/questions/702376/how-to-capture-the-screen-of-...
[1 reply] : Also asked and answer given at https://forums.codeguru.com/showthread.... (by seeplus)
GDIPLUS: using Graphics, can i get HDC?
using Graphics, can i get HDC?
[15 replies] Last: Yes, I would think that BitBlt(...) is only reliable within the paint ... (by coder777)
Issues regarding Menu
Hello, I have to make a menu, 1. compress Text that will give allow you to input a value that will a...
[12 replies] Last: what I would do is get a statistical breakdown of english and assign t... (by jonnin)
Can Someone Help Me Find Error in This Program?
kinda got a hard time debugging this code, can someone help me? #include <stdio.h> #include <std...
[4 replies] Last: Every time I see this I think something like "I am conio! I need VI f... (by jonnin)
by frek
General rule on inheritance
Will you please explain this general rule: “a D is a B” does not imply “a Container<D> is a C...
[12 replies] Last: Thanks for your time. patience, and help. :) (by frek)
temporary objects get destroyed and corrupt program
I believe the following code has a bug related to temporary objects getting destroyed leaving dangli...
[4 replies] Last: That's it!! Not quite. Having references as member variables are alwa... (by coder777)
iterating over a static std::vector
So I have a static std::vector like this: static std::vector<ApiWrapper> api_handlers = { Rtl:...
[8 replies] Last: Could be SIOF https://en.cppreference.com/w/cpp/language/siof (by mbozzi)
Assignment operator bottlenecking simulation
I am running a Monte Carlo simulation of a polymer. The entire configuration of the current state of...
[15 replies] Last: maybe instead of G = std::move(G_), the easiest thing to do might be ... (by seeplus)
by frek
Change C code to C++ in an embedded project
The following C code is in the main.c file of an embedded project on STM32CubeIDE. /* USER COD...
[9 replies] Last: Thank you very much salem c . Your remark is right and worked. First... (by frek)
For Loops in an Array Comprehension Help
Hi guys, I encountered this problem while I was tackling loops in an array. Can someone help me by e...
[1 reply] : So without the 2nd a++ at line 21, you do understand why you see 1 ... (by salem c)
by frek
C++ threads
Why is the operator's message printed and then the function's while they've been defined and join e...
[12 replies] Last: Pass the object by value. void f( std::vector<double> v ) { // the f... (by JLBorges)
bug code
Below code gives some bugs some inputs which seems to be incorrect, which I am trying to figure out,...
[8 replies] Last: Thanks a lot lastchance, I am studying your code, it helps a lot. (by leo2008)
by Cplusc
Visual studio freezing all the time
Hello everyone. I've got a problem with visual studio for several days and I have tried many many th...
[4 replies] Last: @jonnin thanks for the answer, I tried the latest version as well, but... (by Cplusc)
Pages: 123... 6
  Archived months: [nov2021]