General C++ Programming - August 2021 (Page 2)

Help add about code
 
Write a program that accepts a 7-9 digit integer and echoes the number with commas between every thr...
[8 replies] Last: Thank you so much, everyone. (by sonnguyen0604)
by sinjac
Namespace vs. struct counter
 
Hello, I am currently making a minimalistic testing framework for on-target unit testing. I am makin...
[2 replies] Last: Multiple files can share a namespace, and add declarations to that nam... (by kbw)
C++ project ideas and practical applications related video tutorials.
 
I have recently made the following short video tutorials with full code in C++ . I am planning to up...
[2 replies] Last: Thanks for the input. There are too many online sites providing basics... (by seccpur)
Terminate thread without memory leak
 
Hello everyone, I want to implement the following logic: int global_count; // this shoul...
[9 replies] Last: Line 18 waits for t to complete. So your code starts a thread, wait... (by dhayden)
Program is doing both for loop and if statement at the same time
 
Hello, I'm trying to code a program which will cause my nucleo board to output different symbols eac...
[5 replies] Last: The task requires that the blue user button on the nucleo board switc... (by dhayden)
Cannot pass a String to Function()
 
I am trying to build a function that will process a string, and return the updated string to main.cp...
[17 replies] Last: seeps, No, there is no operator==(const std::string, int); in the pro... (by rjmcinnes)
exit from while loop win32gui
 
i have 2 button in my gui the first button name is "run" and secoud button name is "stop" when i cl...
[7 replies] Last: malibor <3 Thank you very much, you helped me a lot (by Hawlong)
OpenGL ERROR E0310
 
default argument of type "const char *" is incompatible with parameter of type "char *" My code: ...
[2 replies] Last: Ah very useful information thank you Sir (by FalconDe)
by gmeza
Help using destructors
 
Hi everyone! I am a hobbyist programmer. I used to be half decent in C, BASIC and some assembler...
[8 replies] Last: I've made some changes for consideration. However without all the code... (by seeplus)
by helios
Writing square root in cplusplus (1,2)
 
Square root is available as the function sqrt() declared in <cmath>.
[20 replies] Last: yea we are not there yet, but it would be interesting. (by jonnin)
LNK2019/2001/1120 Errors
 
I'm getting the above error in Visual Studio 2019. I'm posting a link to a screenshot so you can see...
[5 replies] Last: It's even better when you get that coveted "0 errors, 0 warnings". (by helios)
Error C3688 invalid literal suffix 'CLASSES_LIST'; literal operator or literal operator template 'operator ""CLASSES_LIST' ...
 
I'm getting the above error in Visual Studio 2019. I'm posting a link to two screen shots so you can...
[7 replies] Last: Thanks (by bishoposiris)
MSVC++ 2019 and cppreference coroutine example
 
VS 2019 is supposed to have full C++20 support, so I thought I'd try the coroutine example at cppref...
[10 replies] Last: And now, after the 16.11.1 update installed today I no longer need to ... (by Furry Guy)
Error (active) E0167 argument of type "const char *" is incompatible with parameter of type "char *"
 
I'm getting the above error in Visual Studio 2019. I'm posting a link to two screen shots so you can...
[11 replies] Last: helios I read the info on permissive standards. I changed mine to /pe... (by bishoposiris)
Error (active) E2486 user-defined literal operator not found
 
I'm getting the above error in Visual Studio 2019. I'm posting a link to two screen shots so you ca...
[3 replies] Last: this is one of a good dozen reasons why macros are best avoided if you... (by jonnin)
by Wali23
Roman Numbers
 
Extend the program so that it can deal with single digit numbers of any value. A single digit number...
[4 replies] Last: First things first: PLEASE learn to use code tags, they make reading ... (by Furry Guy)
Debugging with GDB and Qt no longer works
 
I have been doing this code on my Windows laptop for years now, just for fun. I use an Eclipse IDE...
[7 replies] Last: Found it. The Qt5Widgetsd.dll which I had downloaded from the net was ... (by Sequoia)
Remove 2 elements from a queue
 
I have a Lqueue queue from which I have to remove all elements (of type Item) with a height> 92 and ...
[4 replies] Last: int l = Q1.length(); int t = 0; int min = 92; Item i; Item j; ... (by ellosma)
free(): double free detected in tcache 2, composition
 
I am trying to simulate a simple 2-level paging mechanism, which dynamically creates new entries int...
[8 replies] Last: Thanks thmmm, to convert it change it using vectors. I was still wond... (by aay p89)
MD5 Function problem
 
i copy md5 function from this site , http://www.zedwood.com/article/cpp-md5-function Here is 3 file...
[5 replies] Last: jonnin Thanks for reply , Ganado If you're using an IDE, it d... (by Hawlong)
August 2021 Pages: 1234
  Archived months: [jul2021] [sep2021]

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