• 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 PeteDD
Interface Classes and inheritance on top of existing libraries
 
I have found great utility in having an interface class around a class or hierarchy of inherited cla...
[4 replies] Last: Worked great! Here is a TinkerCAD demo of this combination of wrapper... (by PeteDD)
by MS35
Additional C++ Help
 
Hi everyone, I am currently attempting and trying to familiarize myself with c++. I am very new and...
[5 replies] Last: Thank you guys! I have an idea on what to do, thanks for the hints. I ... (by MS35)
Read file from second line
 
Hi, I have a file that contain data about student. File contain in this order 1.name of student 2.id...
[1 reply] : >> leaves the trailing newline that the following getline() obtains as... (by seeplus)
by frek
Move constructor/assignment operator
 
A move cotr/assignment optr is called when there's an rvalue reference (a temporary object) assigned...
[4 replies] Last: the move constrcutor is not called! Yes, this is commonly known as "c... (by coder777)
by VoB
Explicit instantiation:a minimal example
 
Hi everyone, when dealing with templated classes/functions, it's common practice to put both decl...
[3 replies] Last: It's your post. If you want it deleted, then... just delete it. Nobo... (by MikeyBoy)
by frek
Smart pointers proper usage in a simple program
 
Hi, The following is a theoretical project whereby I struggle to get through the challenge of amb...
[6 replies] Last: > Which one should I use for this project and why You should not be u... (by JLBorges)
Executable (or library) binary file for each running environment
 
Dear experts I would like to ask you the criteria that specify executable (or library) binary fil...
[3 replies] Last: P.S. I know that some open source software/libraries (e.g. paraview, ... (by Mitsuru)
by PeteDD
Constructing class objects using names from an array
 
Is there a way to construct class objects by using names which are stored in an array as the names o...
[7 replies] Last: Blindly ignoring the costs of a.) writing code that does nothing; and... (by mbozzi)
by mpg
g++ codice.cpp -L dependencies \lib -lpq -o codice
 
I use PostgreSQL. I write in the terminal: g++ codice.cpp -L dependencies\lib -lpq -o codice but ...
[1 reply] : What does ls print? ..or dir, if vanilla Windows (by Ganado)
by Ocko91
Mega milions
 
Hi there; I want to make program that show me ,how long I need to wait for my lucky day. I want to s...
[4 replies] Last: You've misunderstood the question. He wants to simulate playing the sa... (by dutch)
IF Statement
 
I want to make a program that asks the user to type "HI". But when that it is stored in the variable...
[1 reply] : and what part of this requirement don't you understand/am having diffi... (by seeplus)
access non static member function
 
I am trying to implement a very simple dictionary, one that will store a pointer to a member functio...
[9 replies] Last: The problem is about associating data (pointers) with type information... (by mbozzi)
by frek
std::string or std::string_view
 
Hi all, I found this interesting thread: http://www.cplusplus.com/forum/beginner/240488/#msg1070623...
[7 replies] Last: > So for anything that's using an std::string_view we must pay enough ... (by JLBorges)
by gwbots
Steam Proton (Linux) and Reverse Engineering Question (General + Noobish)
 
I'm trying to run a old Windows game and its companion tool (user-created) under Linux. Since the ...
[1 reply] : you can just try it but it may not work at all, depending on what it d... (by jonnin)
by fjl
Parametric Polymorphism and References
 
I get the feeling that this is a bad idea in C++, but before I abandon trying to make it work and go...
[3 replies] Last: > Do you, perchance, have chapter and verse on it? The gory details a... (by JLBorges)
by frek
Range-based for on std::vector
 
Hi, Can't we define auto so that it provides us with an iterator to the elements of the STL conta...
[2 replies] Last: Thank you for your answer. (by frek)
by frek
Copy assignment definition for a user-defined type
 
Good day guys, Is the implementation for the assignment operator below correct, please? If not, why...
[7 replies] Last: > if we defined the operator the following way what would be the probl... (by JLBorges)
by frek
Code review
 
Hi devs, I've got an old code of mine (pertaining to a slightly long time ago that I've forgotten m...
[16 replies] Last: Guys, the issue about that if statement is arguably easy! My bad! ln-... (by frek)
Printf '%e' expects type 'double' but argument 2 has type 'double *'
 
Hey! I am doing unit testing on my c++ code on VS code windows, however I am stuck with a simple is...
[3 replies] Last: The fftw_complex type holds a complex number as a 2-element array of d... (by dutch)
Pages: 123... 11
  Archived months: [nov2020]