Beginners (Page 21)

Circumference, area, radius of a circle
Trying to remove the declaration of RADIUS. Need to add a variable declaration inside main() for a ...
[1 reply] : yes. looks like int main() { ... double radius = 5.0; ... (by jonnin)
Finding 2 Largest Numbers in Array
This code doesn't find the 2 largest numbers, instead returns 2 numbers in the millions range, not s...
[6 replies] Last: OK, split them in pairs as you are doing (or would be once you fix you... (by lastchance)
Help with creating hotel bill
I am trying to create a code that will create a hotel bill. The program shall prompt the user for so...
[3 replies] Last: If I were to do it I'd use the Boost Date_Time libraries https://www.b... (by FurryGuy)
by hoogo
Question on the limits include. What does this statement mean?
inventoryDataFile.ignore(numeric_limits<streamsize>::max(), '\n'); inventoryDataFile is an fs...
[5 replies] Last: Thanks a lot to you two! This made things much cleared even if it wasn... (by hoogo)
by Drauka
Codeblocks global compiler settings
Hello All, I am new to the forum and have a question about an article
[3 replies] Last: @Drauka, One thing to understand about the tutorial here at cplusplus... (by FurryGuy)
reconstruct a vector to user defined class
Hello everyone If we have two normal distribution n1(2, 1) , n2(3, 1) and add this two as result ...
[5 replies] Last: > compare the moments how to find the mean(first moment) and variance(... (by ETH11674)
c - displaying X made out of 1s with a matrix
Ok, so I want to print an 8x8 X made of 1s with a matrix. The output should look like this for exam...
[10 replies] Last: Ah, I completely missed the odd-width cases, but the bitwise-or'ing is... (by lastchance)
by jamos
Saving Game Function
Hello, I'm trying to implement a save and load game feature for my 2 player 10x10 grid text based...
[7 replies] Last: How does the save function actually get triggered That's up to you. ... (by tpb)
Hi. New to C++ and using youtube tutorials
Hi. I'm hoping I can find some help here. So... I'm watching this youtube channel, "Trevor Payne, L...
[16 replies] Last: there are tutorials right here at cplusplus, not updated to C++14/17: ... (by FurryGuy)
Printing prime numbers between 3 and user input
Trying to make the program ask a user for a number and then the program is to print out all he prime...
[3 replies] Last: Thank you for the input. I managed to get it done by using a code I fo... (by lkordich)
Help needed regarding class files
So, I am the first to admit, I do not know how to word this that it may make sense to a seasoned C++...
[11 replies] Last: Thank everyone who helped with this very much. I had tried some of th... (by smaeder)
C++ Store Object to index from an Array
Hello, can you help me with this question. A store () method gets an object, calculates an index fo...
[8 replies] Last: 1) Please use code tags when posting code, to make it readable. 2) ... (by MikeyBoy)
by gdz98
Jumping into C++ cha 17 number 4 (binary trees and checking)
Hi guys I m going trough the Jumping into C++ book and im currently "still" (for who knows me xD) on...
[2 replies] Last: no it isn't sorry.... I wrote and "sorting" but that was from another ... (by gdz98)
by gdz98
Jumping into C++ cha 17 number 3 (binary tree and checking balance)
Hi guys, i'm still going through the binary tree chapter of my book, and in this exercise i' m suppo...
[7 replies] Last: You're welcome - glad I could help! (by MikeyBoy)
by gdz98
Jumping into C++ cha 17 number 2 (binary tree and counting nodes)
I m in the middle of this exercise of Jumping into C++. The chapter is about binary trees and I have...
[3 replies] Last: oh. it crashes becase if (!tree) { node* new_tree = ne... (by jonnin)
Counting/returning number of files in a folder?
The only help I've found online so far to achieve this (storing the number of files in a given folde...
[4 replies] Last: you can ask the OS via 'system' calls using ls or dir (unix, windows) ... (by jonnin)
Help me to solve TLE
Problem Statement After learning sieve of Eratosthenes, Deepak wants to play more with the primes. ...
[no replies]
by Wolff
List of shared_ptr
Hi, I'm trying to learn about lists and shared pointers, and for that I'm trying to write this progr...
[2 replies] Last: Thank you so much! I know shared pointers aren't necessary but that's ... (by Wolff)
Results deleting. Any solution?
Hello. I dont really understand why is my old results deleting from result file. I think that functi...
[8 replies] Last: @keskiverto My bad (by hoogo)
How to find the biggest difference between two numbers using for loop
Hello, I need help with my C++ code. Specifically this part below. I'll need to enter 3 numbers, for...
[1 reply] : 49.96 - 49.80 == 0.16 #include <iostream> #include <cmath> #incl... (by JLBorges)
Pages: 1... 1920212223... 29
  Archived months: [may2018]

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