General C++ Programming - September 2021 (Page 4)

Help with a C++ Project
Hi! I am trying to figure out this problem. Write a program that asks a doctor to enter the number...
[1 reply] : You've made a start, that;s good. You need to ask for the number of p... (by kbw)
Help with a C++ Project
Hi! I am pretty behind in my c++ class and trying to finish a lab. The instuctions are below. I'm no...
[3 replies] Last: Thank you! You helped me and I figured it out :) (by cbriggs25)
How to get variable to linux command from config file?
Hi everyone. I have a code script that deleting unused logs. I have this function for it. +5 repres...
[4 replies] Last: To avoid security problems, use "/bin/find" instead of just "find". T... (by dhayden)
by VoB
How to fix the leak in this simple Single-Linked List?
Hi everyone, I have the following simple implementation of a Single-Linked List #include <iostre...
[7 replies] Last: Ah yes, that for loop is really the classical way to traverse a contai... (by VoB)
Linked Lists Help
I am relatively new to C++ programming and this is an extra problem assigned to me that I do not und...
[5 replies] Last: You're writing c code for using memory. void add(struct Node** ref... (by seeplus)
c++ buffer overrun warning error C6386
Hi all The program below executes OK but getting one warning C6386 as shown below: "warning C6386: ...
[6 replies] Last: Still a rubbish attempt at for ( uint32_t f=0;f<N... (by salem c)
by Cplusc
Vector size
I have a function like below, in line 49 the size of p is 6. but when I go inside while loop, when c...
[4 replies] Last: Yes, you are right. Thanks (by Cplusc)
Turning into a template
I have been working on this question for ages and i keep geetting it to the point with no issues, bu...
[1 reply] : #include <iostream> template <class T> struct cpair { T a, b... (by mbozzi)
by Denvor
How to implement type Auto?
Hi, I'm supposed to make a class called Auto with the make model type, etc. I am supposed to have a ...
[7 replies] Last: class Auto{ //your current code without the `nextAuto' line }; class... (by ne555)
C++ with Embedded Boards
Hi, I am an embedded programmer and I was wondering is it possible to program embedded microcontrol...
[7 replies] Last: Do you want to program in C or C++? Your title says C++, the body of ... (by George P)
by VoB
Why is this snippet leaking memory even if I use unique_ptr?
Hi everyone, consider the following snippet: #include <iostream> #include <memory> int main(){ ...
[5 replies] Last: Thanks for that info, I wasn't aware of this! (by VoB)
Accessing function from constructing class
This may be a stupid question so bare with me. Let's say i have a class called "A" that constructs a...
[4 replies] Last: In the snippet you provided, you're fine if you define class B first i... (by AbstractionAnon)
Linked List problem in displaying the result
I encountered a problem every time I try to run this code random numbers will always appear #incl...
[5 replies] Last: #include<iostream> using namespace std; struct DataNode { stri... (by againtry)
Help with processes questions
Please help this uses C in conjunction with C++ I am not familiar with how to go about these prompts...
[2 replies] Last: This has nothing to do with C or C++. It is all about observing the pr... (by Duthomhas)
by gadi01
Incremented optimization variables depending on data
Hi, I have a problem of minimizing a function to optimize variables which 2 of them are depending on...
[13 replies] Last: What I have to add I need your help please (by gadi01)
Does data race of non atomic variable lead to delay?
Dear experts As expressed in the title, does delay happen when data race of non atomic variable (no...
[8 replies] Last: I am sorry for my late reply. > helios I appreciate that your theor... (by Mitsuru)
by ChiX
Frequency Distributions
How can I write a program to read a file and out the individual characters in a horizontal bar accor...
[2 replies] Last: Thank you Ganado (6032), I really appreciate your time and assistance.... (by ChiX)
Help me about homework (1,2)
Write a program that reads a whole number of up to NINE digits and prints it in words. For example, ...
[20 replies] Last: Yes, thank you everyone. (by sonnguyen0604)
Nest Classes
I am just wondering, when or why would I choose to use nested classes and why not just use compos...
[1 reply] : Look at the first answer to this stackoverflow question: https://stack... (by George P)
Not able to get current cursor position
I'm using ncurses.h to make a simple GUI to my C++ project. I'm just trying to get cursor position w...
[2 replies] Last: (by salem c)
September 2021 Pages: 123456
  Archived months: [aug2021] [oct2021]

This is an archived page. To post a new message, go to the current page.