• 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]
Logic is escaping me
 
I cant pinpoint where im going wrong for the functions. Anyone experienced have a second to point ou...
[1 reply] : Please fix your compile-time errors first. They are self-explanatory. (by lastchance)
by cmisip
Faster way to assign values to Class variables?
 
Working on an arduino, I would like to be able to write the fastest code with the smallest memory fo...
[6 replies] Last: Is there a faster way to assign the variables in a class constructor? ... (by tommyshelbyop)
making an event-driven game
 
I want to make a structure of an event-driven game. Especially the parallelizing of the event loop a...
[2 replies] Last: Thank you salem c, your example helped me a lot. With this I could pas... (by nuderobmonkey)
by jb4x
Template specialization VS CRTP VS Pure virtual functions
 
Hello everyone, I am currently working on a resource manager class to handle different kinds of ass...
[no replies]
Sorting linked list by name, id, grade
 
This is my node file and based on this I'm trying to write a sort function. #include "Node.h" #in...
[1 reply] : Variations in sorting is usually achieved by passing in a compare func... (by salem c)
Trapezoid multiparameter function
 
Hi, I have an assignment to deliver until next Monday. I wanted to use this function: F(x,y,d) ...
[16 replies] Last: Tnx for the suggestion ;). (by zaahm18)
I don't know how to do. PLEASE HELP!!
 
PROBLEM: Techi Gadgets Account Program. (20 pts ) Write the Techi Gadgets Account Program. The pr...
[1 reply] : I don't know how to do Don't know how to do what? What have you don... (by seeplus)
getpid() linux
 
I need to get pid for every processes. In process I get sum of every arrays. In the I get max sum. I...
[4 replies] Last: The printed pid's look good. What did you want to know? I start to ... (by alexandr2222)
C++ Question
 
hi I am supposed to add code and I tried and for some reason the program isnt running!I feel Like I ...
[2 replies] Last: hmm okay okay , so.... this correct? also everything I added side of A... (by Sunnycoder)
Array question
 
(Question) Write a C++ program that includes the following: Declare an integer array of size 10 ...
[9 replies] Last: oh wow thank you sire , kinda fiqured I was messing up in the int part... (by Sunnycoder)
Prototyping methods in a class
 
At the top of my class definition I would like to include a private list of all the class methods so...
[1 reply] : You do not need to forward-declare class members for use within the cl... (by mbozzi)
by cmisip
How to optimize this code for Encode float to int and Decode int to Float
 
I am trying to build an algorithm for compressing 4 byte floats into a custom 2 byte uint16_t. I pl...
[4 replies] Last: A lot of data needs to be sent through the I2c bus which is why I chos... (by cmisip)
by frek
Merge file using std::merge
 
Hi all, The exercise says we need to merge two text files into a third one suing std::merge . Sinc...
[5 replies] Last: Texts like these" Banana Trees 80 Pounds 123 Jack Sparrow Jungle sur... (by frek)
im having hard time with this assignment? can someone let me know plz
 
Use Weekas1.txt file and load an 8 by 8 integer array. Create the following functions: This func...
[17 replies] Last: Without using the stl: #include <iostream> #include <fstream> cons... (by seeplus)
by MdP
placement new, in an exported template in a module
 
Hi, I'm converting an existing codebase to use C++20 modules, using Visual Studio 2019. Let's sa...
[no replies]
How can i call a derived class method using a base class object ?
 
I understand how this goes in the opposite direction. But for various reasons i want to use a base c...
[1 reply] : First, you should avoid using variable names like 'x' and 'y' (outside... (by Ganado)
I have a problem with this code i don't able to update my dates in admission and date of birth
 
#include <iostream> using namespace std; class date { private: int day{1}; int month{1}; ...
[5 replies] Last: It is also nice if you include proper formatting as well. Just copy a... (by agent max)
by VoB
Not all lvalues can be on the l.h.s. of an assignment
 
Hi everyone, I'm trying to go a understand a bit deeper the concept of lvalue, xvalue,glvalue,rvalu...
[4 replies] Last: Thanks @helios Indeed that if clause would lead to some troubles... f... (by VoB)
Have some issues with my code. It return a strange address instead of class parameters values. Can anyone help me , please ?
 
Hey there ! I have an issue with my code , something about my virtual function and input/output ope...
[3 replies] Last: friend istream &operator>>(istream &input, C &o3) { ... (by dhayden)
Pages: 123... 10
  Archived months: [feb2021]