[try Beta version]
Not logged in

Beginners - September 2021 (Page 4)

I don't know why this does not run successfully.
 
My code is to determine weather a person is available by his/her age. 6<=age<=10 means qualified. Bu...
Sep 21, 2021 at 11:52am
[8 replies] Last: sorry for that, I copy/pasted the bad condition without noting :( (by jonnin)
I am losing my mind
 
This is so basic yet i cant seem to get it and it is frustrating me Basically I need to input the wo...
Sep 21, 2021 at 8:44am
[3 replies] Last: #include <iostream> int main() { long long int worldPop {}, countr... (by seeplus)
by jonnin
21312
 
set up a boolean, eg bool isvalid{true}; //until proven otherwise, the value is valid.. then loop un...
Sep 20, 2021 at 11:45pm
[3 replies] Last: The question was essentially, "How do I handle user input during an in... (by mbozzi)
Mismatched file types for std::getline
 
I'm trying some basic C++ file stuff. I've created a small class with some functions to help read se...
Sep 20, 2021 at 3:59pm
[7 replies] Last: The default delim for .getline() is '\n' - same as for the standalone ... (by seeplus)
by Milnk
How to add input string at the final output
 
If my input is 10 4 | - It should print out |----|----|----|----|----|----|----|----|----|----| ...
Sep 20, 2021 at 3:54pm
[14 replies] Last: Yeah - using s for string requires using namespace std::string_literal... (by seeplus)
bool function checks and returns if the (sub) trees are completely identical
 
Im trying to create a bool function : The function checks and returns if the (sub) trees are complet...
Sep 20, 2021 at 2:45pm
[4 replies] Last: the feedback seems picky... the best way to do this seems like setting... (by jonnin)
by nosol6
Dynamic Array Allocating Function
 
I'm currently in the process of writing up a function that allocates two arrays of 100 integers each...
Sep 20, 2021 at 12:54pm
[2 replies] Last: @nosol6 In your first snippet, line 15 works, but would more normally... (by MikeyBoy)
DO WHILE LOOP C++
 
CAN I ASK FOR YOUR CODE ON THIS, THAT THE OUTPUT MUST BE Enter how may number:5 10 5 100 4...
Sep 20, 2021 at 10:48am
[8 replies] Last: #include <iostream> #include <string> using namespace std; int main(... (by lastchance)
if two trees are identical
 
Why we pass two parameters/pointers in bool function when we want to create function to identify if ...
Sep 20, 2021 at 8:28am
[10 replies] Last: You're welcome friend ;) (by malibor)
if two trees are identical
 
Why we pass two parameters/pointers in bool function when we want to create function to identify if ...
Sep 20, 2021 at 7:10am
[1 reply] : Please try to make just one thread in the future: http://www.cplusplus... (by malibor)
by alexas
cuboid chain rotation - reversed case
 
I have a chain of cuboids. Every cube's new position is based on the previous cube. The cubes are ro...
Sep 19, 2021 at 7:37pm
[7 replies] Last: Thank you very much. (by alexas)
null pointer declaration throwing errors c4430, c2061, c2143, c2238
 
I keep getting a build error when trying to declare a pointer in a class I created, can someone tell...
Sep 19, 2021 at 2:43pm
[2 replies] Last: wow. Thanks for the help--I took the #include "NPC.h" from the localMa... (by trenidor)
Removing the last period or decimal after the final number
 
Hi, we've been tasked to make a program that will print the first and final input from the user with...
Sep 19, 2021 at 1:42pm
[8 replies] Last: Thanks to everybody! I am learning so much from you guys and because o... (by noir234)
fork () function | system calls
 
Here is fork function, (linux system call) I dont actually understand why it looks like this and w...
Sep 19, 2021 at 1:32am
[2 replies] Last: Forking isn't too hard, but you need to read the man page through a fe... (by Duthomhas)
by LeoV3
How to solve repeatedly squared math problem?
 
Given real numbers x,a, and natural number n. Calculate the expression as shown on the image(https:/...
Sep 18, 2021 at 9:38pm
[19 replies] Last: #include <iostream> using namespace std; int main(){ unsigned x=2, ... (by anup30)
by FayZ
malloc: error for object: pointer being freed not allocated
 
I've created a member function that can merge two sorted linked lists. I'm fairly confident that it ...
Sep 18, 2021 at 8:47pm
[5 replies] Last: You haven't provided the declaration for your List class. Line 2: One... (by AbstractionAnon)
by PK Dey
Why the following code shows error?
 
Why the following code showing error? #include <iostream> #include <cstring> #include <conio.h> us...
Sep 17, 2021 at 9:03am
[5 replies] Last: Within a class, the size of arrays have to be stated. is not allowed... (by seeplus)
Matrix Generation by assigning random values to the given index
 
Hello everyone , I need your help and I will be very happy if you can help me. I need to generate...
Sep 17, 2021 at 8:48am
[5 replies] Last: Thank you so much @lastchance and @jonnin. Your explanations and examp... (by learner999)
by PK Dey
Why the following code shows error?
 
Why the following code shows error? #include <iostream> using namespace std; class student ...
Sep 17, 2021 at 3:15am
[2 replies] Last: Thanks! (by PK Dey)
The delete reserved word from library<new>
 
I deleted explicitly the array texts, but even after that, I can still access to its values. it does...
Sep 17, 2021 at 2:19am
[1 reply] : The memory block is "returned to the heap". The data in the block isn'... (by kbw)
September 2021 Pages: 1234567
  Archived months: [aug2021] [oct2021]

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