• 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]
Nestedloops
 
So I have to write a nested loop with asteriks and forward and backslashes. //Write a program with ...
[3 replies] Last: Hello faizankhan40, PLEASE ALWAYS USE CODE TAGS (the <> formatting ... (by Handy Andy)
How to count up values from a while statement?
 
#include <iostream> using namespace std; int main() { int numberOfItems; int count; //loop ...
[9 replies] Last: The input can fail. Therefore, it should be tested and one has to deci... (by keskiverto)
std::list, object pool, leaks and performance
 
Hello everyone!.. I made a very simple Object pool exmaple using std::list. I think the implementat...
[10 replies] Last: I was, I suppose, answering how you can use a list (or 'any') containe... (by jonnin)
How to delete pointer objects in a list?
 
Hello again!.. I'm trying to figure out how to delete pointers within a list. With vectors you can d...
[6 replies] Last: It's not resizeable, but the size of a managed pointer array can certa... (by seeplus)
Dynamic programming
 
I can't understand how to realize program with the help of dymamic programming. I understand idea(be...
[9 replies] Last: I can't see this being very quick ... I am very grateful to you. Th... (by onetwo12)
MPI implementation of conjugate gradient
 
Hello everyone, I am trying to solve the Ax=b equation using conjugate gradient method with c++ MPI ...
[4 replies] Last: If my_rank isn't zero, I don't see any code that would generate any o... (by lastchance)
Variable diagrams
 
Hello all! So I have a question regarding this. It says to draw a series of variable diagrams ...
[1 reply] : I haven't come across variable diagrams either. However I think that i... (by seeplus)
Solution to having to scroll all the time to find variables
 
After my program has reached a certain size, there are simply too many variables to remember. Especi...
[10 replies] Last: your IDE should assist with this. This. (I presume. Don't use IDE my... (by keskiverto)
Variable initialisation
 
I've come across this C++ 'teaser': How many different ways can you find to define and initialise...
[2 replies] Last: just change the names lol. int32_t word long you can also exploit en... (by jonnin)
Working on Project almost done
 
After a bit of a wake-up call, by a certain jerk, I was able to rework my project c++ code, However,...
[5 replies] Last: Without seeing the code you have already, how on earth do you expect u... (by MikeyBoy)
How can I pass a unique pointer as a function parameter?
 
I have a very simple code just to illustrate what's going on: #include <iostream> #include <memory...
[3 replies] Last: Ok I understand now!.. I appreciate the help and thanks a lot for the ... (by brianbathorycpp)
C++ function overloading class
 
Can anyone link me to a basic example or show me what this is. I think I get it, It is combining cla...
[2 replies] Last: I see I see. I thought so. Thanks for clearing this up for meh. (by TangentJay)
by CVRIV
Using container modifiers with containers declared with custom classes?
 
I'm... thinking no, but what do I know. I created a vector using a custom class that has it's own pu...
[5 replies] Last: It's a good idea to have a data model that separates the object from a... (by againtry)
Comment out a line of code from a compiled .exe?
 
I license a game engine so have to use a compiled exe to run my app. I know about a line of code ...
[5 replies] Last: there really isnt a sane answer to this. Either you need the code, o... (by jonnin)
by parian
wostringstream vs ostringstream
 
Preview not working (again) for me so excuse if this is a mess... I noticed today that the followin...
[4 replies] Last: Fixed the [ stuff. Ummmmm, no, you didn't. Learning to properly use... (by Furry Guy)
Undefined reference to vtable
 
I have to make a Chain of Mountains that contains other chains or simple mountains. For that reason ...
[2 replies] Last: Typically the error means that you have declared but not defined the f... (by mbozzi)
SDL not loading texture
 
Can someone plz tell me whats wrong with this code. its running just fine, there are no errors. but ...
[3 replies] Last: Yup, just like Helios said, you just declared load media but never act... (by brianbathorycpp)
by IanTG
Thumbs up
 
I'm having issues with this code, I want to put thumbs upon at the end of my code, this is what I ha...
[2 replies] Last: Never mind, I solved it haha. (by IanTG)
by CVRIV
Initializing an array with unknown size.
 
I'm having an issue. I googled this topic and can't seem to find the right solution. I want to wor...
[10 replies] Last: an array instead of a string a string is a wrapper for an array, of s... (by jonnin)
Pages: 123... 10
  Archived months: [mar2021]