General C++ Programming (Page 5)

How to learn programming as a newbie?
 
Decide on what programming language you want to learn first. Then choose your programming tools. C...
[2 replies] Last: I do not know whether we are allowed to mention specifics, but the bes... (by IcterusGalbula)
Trying to make custom "std::getline()" function (HELP!)
 
Hello. First off, I'd like to apologize to anyone I may have offended here. Sorry for being mad and ...
[10 replies] Last: You should use the get method instead of operator>> since you obvious... (by seeplus)
How to generate .dll files of 3rdparties to build folder with CMakelists.txt
 
Hello, I am trying to compile my test project with CMakeLists.txt in which several 3rd parties ar...
[no replies]
Gode that covers basics
 
Hi just getting into coding, can someone create or show me a code that covers basics so i can have r...
[4 replies] Last: https://www.learncpp.com/cpp-tutorial/basic-file-io/ http://www.cplusp... (by againtry)
Float answer gets rounded
 
I'm trying to display the answer float value as it is, but visual studio code is rounding the float ...
[9 replies] Last: #include <iostream> #include <iomanip> #include <vector> #include <al... (by lastchance)
How to use other type's memory block?
 
Can you guys check my way is possible? I want a class type's memory block, and I want to get the me...
[2 replies] Last: JLBorges // Thank you! I didn't know about the placement new.. It is ... (by woohyeon)
Jump between number in array
 
I want two compare two arrays. One of them is a subset of the other one. I want my function to retur...
[no replies]
assign ID for states and retrieval the state values
 
I have two classes challenge and SimpleState and they are given as class challenge{ pu...
[3 replies] Last: if you want combinations of the states it may be worth doing some bit ... (by jonnin)
Calculating average height of N people in C++
 
Hello! How do I make a program in C++ in which the heights of N number of people will be input in ce...
[1 reply] : Don't cross-post. https://www.cplusplus.com/forum/beginner/275016/ (by salem c)
CL.exe missing for VS 2017 compilation
 
I loaded a VS 2017 project with 'C' subprograms and '.h' files etc. Compilation failed because I do ...
[1 reply] : When you installed VS2017, did you select the option to install the c/... (by seeplus)
How do I make a .a library? (1,2)
 
Hello. I want to know how to make a library (.a file) that I can use in projects on all operating s...
[32 replies] Last: Ok, thank you very much! :D (by SirEnder125)
help me with the modification of the code
 
#include <iostream> using namespace std; int main() { int arraySize; cout<<"How man...
[3 replies] Last: the modification of the code You don't say what modification - but ... (by seeplus)
subtract 2 Point3d values result into a Point3d inside a function
 
Hamstrung by this difficulty, which should have been easy. The goal was to subtract 2 Point3d points...
[7 replies] Last: oggin, note that instead of #define, you can use 'using' or 'typedef'.... (by Ganado)
value truncated, undesirable
 
For the following function, N in "n=" line has 3 values when executed N=[0, 0, 586218.1824]. Whe...
[4 replies] Last: This worked great, below, thank you: ... std::cout << "std::setprec... (by technologist)
Sorting coordinates stored in 2d array
 
Hello! I've been recently working on graph problems and problems with coordinates, and I found that ...
[4 replies] Last: > Now this means that if I ever need the Nth coordinate, > I could ea... (by JLBorges)
Function for returning total weigth of a train
 
How can I override a function to return the total weigth of a train?? class TrainRoute { .... int...
[1 reply] : To override a function, you have to declare it virtual in the base c... (by AbstractionAnon)
Algorithmic Truck Problem
 
Hello! I've been working on programming problems involving graphs, and I found an interesting one I ...
[3 replies] Last: I think I should have mentioned, if both trucks reach an intersection,... (by DatKidBoris)
Finding an optimal solution to a system of linear equations in c++
 
Here's the problem: I am currently trying to create a control system which is required to find a ...
[3 replies] Last: when I did controls algorithms, it was often, but not always, the case... (by jonnin)
How to define a non blocking input in C++
 
0 I'm making a multithread application in C++. In particular, a secondary thread is involved in in...
[1 reply] : Standard streams are inherently blocking. If you need non-blocking con... (by helios)
having a few problems with my code - output
 
Hey all im trying to get my code to work but I get a few errors in the int main Anyone able to help...
[2 replies] Last: As you are using fixed size record file binary read/write for the clas... (by seeplus)
Pages: 1... 34567... 10
  Archived months: [nov2020]

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