General C++ Programming (Page 2)

Is there a way to include all directories within a directory in an IDE I'll use anything
 
This is Problem because I am trying to use frameworks and I need to include header files and I can't...
[2 replies] Last: This is Problem because I am trying to use frameworks and I need to i... (by mbozzi)
code won't print the calculations from my input values, it keeps asking my to input the values i want it to print
 
//monthly payment on a loan formula steps //1 + rate all to the power of n //above times rate //a...
[1 reply] : How can the program print results if it doesn't run? Once you fix you ... (by Thomas1965)
HeapValidation Error
 
I'm trying to callback using a pointer to a base type, but something along the way is giving me a He...
[4 replies] Last: I found this: Player & find_player(uint32_t id) { if (players.find(I... (by kbw)
by AFX
OpenMP - array-initialisation problem
 
I am dabbling in OpenMP, and now I am trying to create a league of teams with the OpenMP num_teams c...
[2 replies] Last: Thanks :) (by AFX)
by colt
Const initialization of an array of objects
 
Hello, I am trying to do a constant initialization of an array of "Vec3f" instances. Currently, I tr...
[11 replies] Last: Yes, I actually have them: #ifndef BVOLUME_H_INCLUDED #define BVOLUM... (by colt)
Storing data from a file from multiple lines into different variables
 
Hi There, I have been doing files in c++ for about a month now and I have a grip on how to do basic ...
[2 replies] Last: Show what you've tried, and explain exactly what each line/item of the... (by jlb)
quicksort
 
i am getting a segmentation fault at line 12. when i tried to print temp, it went in infinite loop. ...
[2 replies] Last: can you tell me the reason behind this Use the debugger to trace t... (by seeplus)
what is a requires requires constraint?
 
Not sure if I understand the use of requires requires as in this code: template<typename T> ...
[1 reply] : The requires expression is an unnamed concept right? It's an expressi... (by mbozzi)
by jerryd
Can't access variables in my header file
 
cplusplus forum, C++ MS VS 2017 Windows 7 I have one of my header files, that I have use...
[12 replies] Last: This is like trying to diagnose a problem with your car when you haven... (by dhayden)
Differing (Bad) Behavior Between unsigned int And long With -= Operator
 
Hi All, The following section of code was designed to show a wrong bit of programming, but it has...
[4 replies] Last: Thanks for the detailed answer, helios! (by travellerne)
uncertainty
 
You don't need a default constructor as std::string has its own. Note that stream extraction (>>) s...
[1 reply] : Please don't delete/erase original question. Subsequent answers are pr... (by seeplus)
Error: Unhandled exception etc
 
Hi, I am trying to modify my function add() so it throws an exception every time an array passed...
[11 replies] Last: Shouldn't add() be using contains() (or .getIndexOf() )? template<c... (by seeplus)
std::copy wrong value issue!!!!!!
 
I copied the struct into a vector and put it back into the struct. Why did this bug occur? use std::...
[5 replies] Last: Thank you for answers. it was helpful (by realbro)
Need a variadic template function that accepts a arbitrary number of ints!
 
Why is this not working? template<int...Counts> static bool allNonZero(Counts...counts); ...
[4 replies] Last: I did thanks!!! (by JUANDENT)
by AFX
Question concerning number of threads in OpenMP programme
 
Hello, I am starting to learn parallel programming with OpenMP. I stumbled over an interesting tu...
[3 replies] Last: Thank you very much! My question was more or less inane. (by AFX)
symbols?
 
Hi guys, I'm looking for a good resource or even an explanation on symbols, so I'm currently readin...
[4 replies] Last: I'm sure each function or symbol has an offset as to where it begins ... (by helios)
C++ coding
 
int x = 6; int y = 10; bool is_small = false; char reply ='y'; double temp = 35.0; What do the ...
[2 replies] Last: Thank you!!! (by vaturogo)
Zoom tutoring for a project(I'm willing to pay for time)I am not looking for answers! I generally wanna learn
 
Create a program that will display the following patterns on the console. Create a function for each...
[1 reply] : try the decimal to binary. there are a couple of ways to do it.. you ... (by jonnin)
by rnima
Equivalent of to_string() in c++
 
So I have finished the assignment however, I can't seem to wrap my head around another equivalent in...
[6 replies] Last: This is not a bad place for DIY code. The built in number to string... (by jonnin)
by TVER
If not now - when?
 
Hi, Any ideas on how to write the saying "If Not Now - When?" in C++ code? /Thomas
[8 replies] Last: So Now() implies Never()? Surely Now() would imply Now(), and perhaps ... (by helios)
Pages: 1234... 6
  Archived months: [jul2020]

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