General C++ Programming (Page 3)

for loop question
 
hi , so this is the question just very confused how to start and end , also please explain me what e...
[7 replies] Last: try to break it down into something simpler that is easy to do. This... (by keskiverto)
by RicoJ
"Empty" std::thread is not moved properly?
 
Here by "empty std::thread" means a std::thread object with "no thread of execution" According to c...
[3 replies] Last: Hi guys, What is the point of your code? Why are you trying to mov... (by RicoJ)
configuring compilers
 
I've installed Codeblocks and tried to configure the mingw compiler that I downloaded.. But codebloc...
[2 replies] Last: There is a C::B download that has a C/C++ compiler already set up for ... (by Furry Guy)
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...
[4 replies] Last: I ended up going with boost::heap::priority_queue which (at least for ... (by Kallinteris Andreas)
Problem 2
 
I am trying to write a code with for nested loops but the problem I have is with alignment mea...
[9 replies] Last: @Bill2345, Out of curiosity, what is this for? Just experimenting, ho... (by agent max)
which attribute syntax should i use ("[[gnu::attr]]" or "__attribute__ ((attr))")
 
__attribute__ ((pure)) int foo() {return 2;} [[gnu::pure]] int bar() {return 2;} Both ...
[2 replies] Last: Prefer the latter because it uses the standard attribute syntax. (by mbozzi)
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 two...
[12 replies] Last: In fact, it is maximum and minimum net pay for all employees. I just m... (by ITStudent101)
dynamical programming and recurrent descent
 
I have a task and solution. How can I solve it with the help of dynamical programming or recurrent ...
[1 reply] : http://www.cplusplus.com/forum/general/277529/#msg1197994 (by lastchance)
Reading integers of unknown length correctly.
 
I am writing data to a file (using fprintf) and then reading it back in (using fscanf). The resul...
[5 replies] Last: Thank you for the responses. Looks like option 1 is the way to go. M... (by phalangium)
Building a Peer-to-Peer Multiplayer Networked Game
 
Hey guys! I'm looking to make a game with a peer-to-peer server, and for that I need a c ++ library....
[no replies]
Help with code that won't compile?
 
Apologies in advance for my limited experience with c++ (I'm learning). I'm writing a dll that need...
[1 reply] : Turns out I needed to change the setting under the Property Pages ->... (by coldscooter)
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...
[7 replies] Last: Oh I see, thanks for the explaination @jonnin. (by mouch)
Array based Binary Tree Implementation
 
Hello, I am new here so please forgive me if I'm doing something wrong. I was given an assignment...
[3 replies] Last: the easy way to do this is to just exchange array location index where... (by jonnin)
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...
[4 replies] Last: It's in the documentation. https://en.cppreference.com/w/cpp/thread/th... (by mbozzi)
deleted
 
This is not a homework site. We won't do your homework for you. However we are always willing to hel...
[1 reply] : ...And the OP is gone. https://www.cplusplus.com/forum/beginner/277696... (by agent max)
how i make list in a new class on c++
 
guys I need help in this exercise mainly after the letter d) in the creation of another class, here ...
[1 reply] : @BrennoPedroso, PLEASE USE CODE TAGS (the <> formatting button to th... (by agent max)
String Compression C++
 
I am trying to solve the question to make a C++ code for the question given at the link https://fizz...
[8 replies] Last: Thanks. I have understood the solution and learn sstream and auto from... (by abcdef123)
Passing an array of a structure to that structure's functions
 
I'm having problems with line 61, but let me tell you what is supposed to be happening: I have a str...
[6 replies] Last: Yes, that. One does not "copy/paste it into the c++ compiler program ... (by keskiverto)
How to convert a number into an array of single digit integers?
 
The input should be a number (entered in one line) like 83809684986986904 (the number is not less ...
[3 replies] Last: #include <iostream> #include <string> #include <vector> using namespa... (by lastchance)
Help in understanding this program
 
Hi, I wanted to know how this program actually works: unsigned int f1(unsigned int a, unsigned...
[5 replies] Last: Hey, @dhayden, thanks! That really helped me understand recursive fun... (by agent max)
Pages: 12345... 9
  Archived months: [mar2021]

Cannot post in this page. To post a new message, go to the first page.