• 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]
by Odglog
Per Object Function
Hello! This is a quick one, is there any way to make a class with a member function that gets define...
[5 replies] Last: By the way, the use of std::function or function pointers (not shown h... (by Ganado)
Minimum count of irregular bitmap regions before multi-threading?
Minimum count of irregular bitmap regions before multi-threading? Some conditions to set up the que...
[8 replies] Last: and bitmap_dc_type in itself is a type of compatible_dc_type. No, bit... (by coder777)
Drawing a chess table
Hi. I want to make a program which draws a chess table. This table should not contain white and blac...
[4 replies] Last: You can work out the details of adding borders and what happens if dis... (by againtry)
Why does this program not output anything?
#include <iostream> int main(){ int x; char c; int o; std::cin>>x>>c; ...
[8 replies] Last: Thanks @yabi2943993, Its appreciated to see the full running code. T... (by eugenedakin)
Access to elements of a homogeneous structure
Hi! How can I better access elements of a homogeneous struct? Here are the options to consider: st...
[7 replies] Last: There are also library-based solutions: Antony Polukhin's magic_get... (by mbozzi)
by DMX
friends, inheritance and forward declaration
Hello, I am trying to code the example given in "Ruminations on C++" Koenig, Moo, ยง8.3 but I don't...
[6 replies] Last: Thanks, as far as I can see there were two problems: 1) expr.hpp doe... (by DMX)
by eladb
MFC debug assertion failed
Hi all, i have some issue on my first MFC project. i built some new windows that delete txt file...
[8 replies] Last: hello again. just open a new MFC project and copy all the code. its w... (by eladb)
Factorial division
I want to see, if the factorial of a number n is divisible by a number p. For that I got: #incl...
[13 replies] Last: reminds me of a fight about performance... "yours is 5x slower than mi... (by jonnin)
#include <iostream> #include <stdlib.h> #include <unistd.h> #include <time.h> using namespace std; ...
[2 replies] Last: I need to draw the background in c++ hmmm.. graphics or moving graphi... (by tryingtoleeearn)
Triangle types
I want to make a program which takes 3 inputs by the user. Each of those numbers should be the borde...
[10 replies] Last: No it does not pass, enoizat Thanks lastchance! (by yabi2943993)
Singly Linked List
I have the following code. But, the program is terminating without any user input. I want to know ho...
[2 replies] Last: I have the following code Where did you get it? Look at your StringL... (by Enoizat)
by Alatar
crash: wrong declaration order
Hi! I recently ran into a crash, where I had declared member objects of a class in the wrong orde...
[9 replies] Last: [quote=Alatar]What do you think? It you feel like abandoning member i... (by Enoizat)
Weird std::map problem
I'm running into a weird problem where std::map.at("...") is throwing an out_of_range exception, b...
[5 replies] Last: #include <iostream> #include <map> #include <string> int main() { ... (by againtry)
IDE for Win/Raspberry Pi/Linux/Arduino
Hello Everyone, Just a general question - Is there an IDE which programs in C/C++ that works acr...
[4 replies] Last: Yes, UWP looks good and I'll need to learn a little more about it. The... (by eugenedakin)
Why I cant any of this on dev c++? too many errors. Cant test any of those. http://cplusplus.happyc...
[4 replies] Last: My "a bit outdated, no C++17" comment was about the the CPlusPlus tuto... (by Furry Guy)
capitalizing using toupper
[5 replies] Last: The sheik has ridden off on his camel by the look of it :( (by againtry)
(TLE) How to optimize this code
This topic is duplicated... I am sorry for the error. I didn't notice while uploading...
[1 reply] : Please don't post duplicates. http://www.cplusplus.com/forum/general/2... (by kbw)
All the points of the diagonal of a matrix
I want to find all the points which are located on the diagonal of the matrix. The input consists o...
[1 reply] : for a square matrix? What are you not seeing... you have been asking... (by jonnin)
Is it possible to overload object so that it does something if passed as an argument?
Is it possible to overload some operator of a class such that it will do something if passed as an a...
[10 replies] Last: there may be some way to keep an always on thread for each class insta... (by jonnin)
Pages: 123... 17
  Archived months: [nov2019]