General C++ Programming (Page 9)

Input Verification
Hey there, I'm creating a menu that will allow a user to enter and display billing information they ...
[2 replies] Last: Much appreciated, that works smoothly (by coff33Cup)
Sorry but I don't get why/when to use auto or decltype(auto) for return types
Hi, I am confused with when and why to use auto or decltype(auto) on the return types of function...
[5 replies] Last: What you are wondering about is C++17's structured binding . https://... (by Furry Guy)
How do I turn this into an array?
#include <iostream> using namespace std; int main() { double monthOne, monthTwo, monthThre...
[4 replies] Last: #include <iostream> int main() { const unsigned NUM_MONTHS {12}; ... (by seeplus)
Finding of time for function
I need to know time of function foo() I cant find an avarage time of working for function (statistic...
[9 replies] Last: As some others have pointed out, you are not storing the results of t... (by alexandr2222)
by MA2121
Need Assistance fixing this program
Design a class called Heading that has data members to hold the company name and the report name. A...
[1 reply] : Hello MA2121, While I try to read your program. PLEASE ALWAYS USE ... (by Handy Andy)
Sanddollar using C++ for scripting
Greetings good people! My first post on this board. I hope everyone is coping well with the pandemic...
[no replies]
ESP8266 data upload to web server with FTP
I am working on a microcontrolelr project where I am trying to send data to web server using NodeMCU...
[1 reply] : 1) I am uploading data via FTP in txt file, which is saved in hosting ... (by salem c)
by dm0000
Given two integers a and b – sides of triangle. You need to write a function that calculates the h...
[2 replies] Last: sqrt() is in <cmath> and if its not a right triangle, sin, cos, etc a... (by jonnin)
Write a C++ program that manage the student’s grades. Starting with a fixed number of students (10)
I would need some help writing this code, I have one made but having trouble getting it to work, any...
[2 replies] Last: As the number of grades per student is determined at run-time and not ... (by seeplus)
Pointers and casting interpretation/reading logic
Hi, I don't have access to the function definition of this: I2C_Write(2, TCA9535_ADDRESS, TCA953...
[2 replies] Last: Part of understanding it is just experience with the idea behind what ... (by jonnin)
problem error: invalid convertion
#include <iostream> using namespace std; /* run this program using the console pauser or add your ...
[1 reply] : First, you can use code tags when posting here. They help reading and ... (by keskiverto)
Is returning a local native array by reference an error?
I have this code: auto getArr() -> int(&) { int arr = {3,9}; return arr; } the a...
[1 reply] : yes, this is an error. Its not a syntax error, but it is still undefi... (by jonnin)
two processes communicating with each other
Hi, I got this assignment and I am trying to find out how should I proceed in order to solve it : ...
[1 reply] : What's to figure out? > We assume that by contract, OS offers us.... ... (by salem c)
Loop with objects
Hi I really need some help here. I need af more dynamic way to apply changes to objects I use ...
[7 replies] Last: It has been several years since I used C++Builder, it was version 6, I... (by Furry Guy)
20 Guesses
For this assignment, write a program that will guess a secret number within 20 guesses or less. The...
[18 replies] Last: Thanks! (by agent max)
Working with years in data struct
Hi. I have a problem to solve this condition : In a struct data are known the registration number o...
[4 replies] Last: doug4 thanks (by blaster123)
reading strings with ifstream
When reading strings from a file, what should the strings be initialized to if you want to find the ...
[3 replies] Last: Thank you. Thank you. (by timestime)
by frek
Smart pointers proper usage in my project
I'm doing an exercise of Bjarne's book PPP (chapter 21): 6. In the Fruit example in §21.6.5, we c...
[13 replies] Last: @frek, @coder777 make_shared has an interesting purpose. Without it,... (by Niccolo)
Number Frequency
Allow the user to enter values between 1-9, up to 2 billion values. When the user enters a 0 report...
[2 replies] Last: #include <iostream> int main() { int freq { }; std::cout << "En... (by seeplus)
Stuck, Not sure how to get this to run
Hey Im getting an error at line 30. Severity Code Description Project File Line Suppression State E...
[8 replies] Last: Just use one map: #include <iostream> #include <map> #include <stri... (by seeplus)
Pages: 1... 78910
  Archived months: [feb2021]

Cannot post in this page. To post a new message, go to the first page.