• 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]
Help in understanding this program
 
Hi, I wanted to know how this program actually works: unsigned int f1(unsigned int a, unsigned...
[4 replies] Last: Thank you all for explaining this piece of code. (by icoolguy1995)
by cmisip
Can a struct in a vector access its index in the vector?
 
I am building a vector of structs. The struct will contain a data member which is a pointer to an a...
[9 replies] Last: @cmsip At the considerable risk of adding again to what I agree is an... (by againtry)
deleted
 
deleted
[2 replies] Last: i did not know that i am new here, sorry. How to delete the topic ? (by elysion)
by mouch
Can you help me with this c++ code?
 
I did a code that allow to register students 2-show users registered 3-order users registered by cod...
[3 replies] Last: PLEASE ALWAYS USE CODE TAGS (the <> formatting button) when posting co... (by AbstractionAnon)
Program isn't outputting a text file's parsed info
 
Good afternoon! I am attempting to read information from a file using getline() but the information...
[1 reply] : I believe there may be an issue with the way I am using substrings to... (by coder777)
should i use static constexpr instead #define () and naming convection (1,2)
 
in good old c we used to just have #define SOME_GLOB_CONSTANT 5 but now days we also have co...
[22 replies] Last: @agent max, @keskiverto, @helios, @seeplus, I don't often use weird ... (by doug4)
std::priority_queue<std::vector> how to reserve space in the internal vector container
 
I am trying to performance optimize some code and I want to observe the effect of reserving space on...
[3 replies] Last: if you want performance, a 2-d thing of [priority class][normal queues... (by jonnin)
Read the data from the files and giving the correct answer
 
I need help understanding what I'm doing wrong in my coding(c++). The program should then display th...
[6 replies] Last: Based upon original method, then perhaps: #include <iostream> #incl... (by seeplus)
create thread with function taking vector argument fails
 
I'm creating a thread to run a function sample(vector<double>&) and compilation give me errors. I do...
[2 replies] Last: Hi Edit : I didn't see the previous post. The sample function is ex... (by TheIdeasMan)
Play online radio in C++
 
Hello, this is my first post here! I've seen other questions similar to mine, but I could not fi...
[12 replies] Last: The HTTP headers can say anything they want. It doesn't necessarily co... (by helios)
Error upon using uniform_real_distribution
 
Hey Guys, its me again. i have written a Random class that wraps the mt19937_64 class to be used in ...
[19 replies] Last: @helios i might try that in the future, but for now i will implement t... (by JustShinigami)
Is there some standard Threadpool library
 
Is there some standard threadpool (wikipedia.org/wiki/Thread_pool) library As far I can tell ST...
[1 reply] : Actually boost does provide i handy example here: https://www.boost.or... (by masterAndreas)
Dynamical programming
 
Task The string S, consisting of decimal digits, can be divided into non-empty consecutive substring...
[no replies]
How to fix error and improve the code?
 
I got below compile errors, need some inputs to fix it and improve the code. #include <iostr...
[5 replies] Last: It is actually recommended to use a vector over an dynamic array. Wenn... (by coder777)
Let's play dice! The traditional die is a cube
 
Hello, anyone can help with this problem? Let's play dice! The tr...
[2 replies] Last: exercise 1 example is weird. *exactly two* means it happened once, as... (by jonnin)
calculating 2^1000 and its sum of the digits
 
Hi, i have an exercise from eulers 9A where I have to compute 2^1000 and find the sum of its integ...
[4 replies] Last: BOI, i wasn't expected that.... (by zaahm18)
I am having trouble with this. How to properly do this?
 
I need some help with this, please. The directions were: Expand the payroll program to combine...
[7 replies] Last: ok, assuming you have done the first part (something in excel and sent... (by jonnin)
How to send Date and time to Arduino via pyserial
 
Hello I want to send date and time to my Arduino, when I turn on the light i want it to say light is...
[2 replies] Last: Asked and answered here -> https://stackoverflow.com/questions/6717643... (by salem c)
by eb1993
AVLTree program keeps timing out.
 
Hi, I am trying to balance an AVL tree with 10 nodes. When I run the code in Xcode, it works fine an...
[2 replies] Last: Please edit your post to include code tags. https://www.cplusplus.com/... (by salem c)
Pages: 123... 13
  Archived months: [feb2021]