• 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]
Trying to calculate with the Bernoulli formula
I am willing to calculate with the Bernoulli formula. For that I have made the following code: #i...
[6 replies] Last: Did I miss something? How is 49999/2 an integer? (by helios)
Collision problem SDL
Hey guys, so the problem... well watching the 1 minute short video I uploaded to explain the probl...
[1 reply] : objectsCollision() checks if the object's edges match up exactly . Bu... (by dhayden)
How can I print 2 line like this to console? 1 11 2 12 3 13 4 14 5 15 6 ...
[11 replies] Last: try this .... #include<iostream> using namespace std; int main() { ... (by aniksh44)
vector help
i have a vector<Typename> which is a container with unknown amount of elements. i have a int first =...
[1 reply] : Is this a continuation of: http://www.cplusplus.com/forum/general/2710... (by keskiverto)
by Vycues
Which event should code go to restrict areas where a picture box is dropped on a form
I am trying to make a card game in a windows form. I want to check the image string name in the pict...
[no replies]
by Ema00
Login function
Hello everyone, in the code below I tried to make a simple staff management program for school, I wa...
[6 replies] Last: A tip for making your code cleaner and better looking: You can add a f... (by miguelol)
by volang
Size of a forward_list
I dont want to keep track of its size on my own, so I wonder if I instead can update a member varia...
[10 replies] Last: t changes two pointers on insertion and one on deletion. How is that ... (by jonnin)
list/array of constant pair values at compile time
How do we have a list/array of constant pair values at compile time so it would be passed as two arg...
[7 replies] Last: Possibly relevant? http://www.cplusplus.com/forum/general/271007/ (by helios)
by volang
Map or unordered map?
I have a map where the order never matters. The only important thing is that I get direct / fast a...
[7 replies] Last: That's true (except if you don't need access by key) The OP specific... (by dhayden)
for enum cannot work
Why is this not working enum L{ j, k, l }; int main(){ for ( int i : L) cout...
[2 replies] Last: That’s not how for loops work. You should try using a switch sta... (by itsArtem)
template <typename T> T & FastQueue<T>::front(){ if (number_of_elements == 0) throw std::out_o...
[1 reply] : It's a type, not a value, so throw std::out_of_range(); . (by helios)
Need help on choosing laptop
Hello guys, i know it is C++ forum and ive been using this forum alot in the last month but now i n...
[2 replies] Last: Forget Intel up to now, AMD better, brighter future prospect, much che... (by abdulbadii)
i have a vector<T> storage that is a container, lets say inside i got 1,2,3,4,5 with head at 1 and e...
[7 replies] Last: LMAO. You can use insert: http://www.cplusplus.com/reference/vector/... (by zapshe)
How to access member of vector of struct?
I have some struct like the followings: struct Pose{ double x; double y; double...
[5 replies] Last: Suppose there are 3 Aircraft in the a vector. You say you want to c... (by dhayden)
One more line of code I need to make it work
My program inputs two integers and determines if the first number is a multiple of the second number...
[2 replies] Last: https://myloweslife.onl/ What does the Lowes employee portal have to... (by dhayden)
You have the following piece of code: for(int i{0}; i<SIZE; i++) for(int j{0}; j<i; j++) ...
[4 replies] Last: Going with malibor's thought that a is related to N, the big-o answer... (by malibor)
Implementation of those I/O functions in C
int scanf ( const char * format, ... ); int printf ( const char * format, ... ); // and also sscan...
[7 replies] Last: are you asking how to use variable length arg lists in a function? tha... (by jonnin)
by frek
Define all essential operations or none for a class
Hi all, If we rely on the rule: Define all essential operations or none for a class , when are we ...
[7 replies] Last: [quote=frek]I've heard that we do that when there's a resource in the ... (by Cubbi)
I need help!
So, I'm currently in the process of learnign C++. I am eventually going to be using unreal. I want t...
[2 replies] Last: You can go to codingame.com to look for puzzles to solve, though they ... (by zapshe)
Pages: 123... 11
  Archived months: [apr2020]