General C++ Programming - October 2021 (Page 2)

Help with polynomial class arrays.
My C++ teacher for my past 2 classes has been horrible. She doesn't help when we need it and the tutors at my school don't either. I just need help getting star...
Oct 25, 2021 at 9:30pm
[2 replies] Last: welcome! please learn about code tags, the <> on the side editor, or c... (by jonnin)
help with Implementing class Item (1,2,3,4)
looking for help on this code. most of it is notes of what I need to include. just unsure of how to start this or if what I have is doable #include <iostrea...
Oct 25, 2021 at 11:12am
[66 replies] Last: ty! that finally worked. (by ocKiNOsIi)
Switch Statements with Modifications Help
Good day to everyone. Can someone lend me a hand in modifying the code below? We are needed to modify the code below by inserting a "PRESS ANY KEY TO CONTINUE b...
Oct 25, 2021 at 9:50am
[4 replies] Last: I apologize for it, bro. It is my fault. I'll be more specific in ques... (by ForgottenLaw)
Problems in Recursion
I am trying to input the two numbers in order to find the GCD of a and b using Recursion. (with decimals of 4 digits should be included). There is an error in i...
Oct 25, 2021 at 9:14am
[4 replies] Last: C++17 has std::gcd() - but only for ints. https://en.cppreference.com/... (by seeplus)
Visual Studio C++ threads
Greetings, I have worked with threads using other operating systems but now need to work with threads in Visual Studio. I have installed 2022 Preview. Is th...
Oct 25, 2021 at 5:32am
[5 replies] Last: Thanks for all the good info. Regarding pthreads, I think it has som... (by jvh24521)
Golf Names and Scores
I am attempting to create a program that does the following; Gets names and scores for up to 24 golfers from user. Full name (first and last separated by space)...
Oct 25, 2021 at 1:39am
[5 replies] Last: Outstanding. Thank you! (by seeplusplusnoob)
What am I doing wrong?
I am learning c++. This is my first time to deal with struct's. This code will run correctly the 1st time. On the 2nd run, it automatically enters .00 for m...
Oct 24, 2021 at 5:55pm
[2 replies] Last: The problem has been fixed. I was entered data in the wrong order. I... (by ashajohn2021)
How to create an array that accepts up to 24 names from User Input
What I currently have is repeating the cout line as many times as there are characters in the user input. For example, if the user inputs "Brad" then it will r...
Oct 24, 2021 at 3:41pm
[1 reply] : cin will not work for space split names. you probably want to use ge... (by jonnin)
Modifying a Code Statement Below
Good day to everyone. I have found a code statement regarding the temperature converter. Thanks to http://www.trytoprogram.com/cpp-examples/cplusplus-program-to...
Oct 24, 2021 at 1:18pm
[2 replies] Last: Chapter 2 at "Learn C++" is all about functions. Start here: https://... (by deleted account xyzzy)
Modified Output in Nested-Loop Statement Help
Good day to everyone. I have a concern regarding the code and the output below. We need to modify it by reversely copying the actual output below. Can someone ...
Oct 24, 2021 at 10:15am
[3 replies] Last: Thanks, men I appreciate it (by ForgottenLaw)
cin question
How come this function halts my program when i enter "2000 4" /* clear input buffer */ void cib() { char ch; while(ch != '\n') cin >> ch; } ...
Oct 24, 2021 at 9:34am
[4 replies] Last: if there was no data from the buffer then it halts program until it ... (by seeplus)
Do-While Loops Logical Error Help
Good day to everyone. I'm a newbie at C++ programming and I have a concern regarding the do-while loop code below. The output is: 10, 9, 8, 7, 6, 5, 4, 3, 2...
Oct 23, 2021 at 11:49am
[2 replies] Last: Thanks, men I appreciate it. (by ForgottenLaw)
Medium size interesting projects
I originally posted this to Reddit, but since the site is a clusterfuck a moderator immediately took it down, anyway, I hope to have better luck here. Hi...
Oct 23, 2021 at 9:34am
[6 replies] Last: Possibly c++44 might have std::json........ (by seeplus)
Please help me on this
i have code according to the output tht i have provided. Please help me where my mistakes are. The customer have to key in the number of person for each categor...
Oct 22, 2021 at 7:54pm
[1 reply] : if (e) (e * a); if (f) (f * b); if (g) (g * c); if (h) (h * d); if ... (by Ganado)
Screenshot Browser
Hello, I need to develop an application in c++ where the screenshot of a browser should be done. Would anyone please have any examples? Thanks.
Oct 22, 2021 at 7:37pm
[9 replies] Last: @Ganado, even if (big conjecture) the OP wants that doing so still req... (by deleted account xyzzy)
assigning values to struct from const
Hi all - I'm porting a project that has some rather unusual coding. I have a struct -- actually an array of structs, that needs to be populated. The original p...
Oct 22, 2021 at 4:31pm
[4 replies] Last: There's also big/little endian coming into play as well (int16_t). Pl... (by seeplus)
Nested Loops
Will someone help me find a simple code on how to display an output below using NESTED-IF 5 4 3 2 1 4 3 2 1 3 2 1 2 1 1
Oct 22, 2021 at 8:35am
[2 replies] Last: [quote=MartyBASS] Will someone help me find a simple code... As you ha... (by The Grey Wolf)
Error: cannot convert 'std::string* {aka std::basic_string<char>*}' to 'char*' for argument '2'
Hello! I'm currently writing a quiz show code but I'm continually getting an error that has me at the end of my wits. This is the error and the function it occu...
Oct 22, 2021 at 2:54am
[2 replies] Last: Please edit your posts and add code formatting with [ code] and [ /cod... (by Ganado)
Returning a string from a function
Hey yall, had another question on a school project. So the goal is to use this menu to choose a subject, then enter the scores, then put the scores into a funct...
Oct 20, 2021 at 11:17pm
[5 replies] Last: Ah great! thank you guys so much! I am new to c++ and still getting th... (by dorito200)
Trying to find the programming code that activates or deactivates the screensaver.
Hello, if you are reading this please can you tell me what programming code activates or deactivates the screensaver in Windows please. I tried to find it but M...
Oct 20, 2021 at 8:38pm
[2 replies] Last: Okey, sorry. (by Programmer06)
October 2021 Pages: 12345
  Archived months: [sep2021] [nov2021]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.