Beginners

by admin
Welcome -- read before posting!
 
Welcome to the beginner's forum in C++.com! In this forum, users can to talk about any topic relate...
[2 replies] Last: How To Answer Questions in a Helpful Way Be gentle. Problem-relat... (by admin)
Console Closing Down (1,2,3,4,5,6,7)
 
Hi, i am new to C++ and have just written my "Hello World" program. It worked all right but the cons...
[120 replies] Last: It displayed "Hello world" after you pressed Enter. int c is a ... (by Duthomhas)
Easy C++ coding
 
How do I do this 1.Declare the variables double circleRadius (radius of the circle), and double sha...
[3 replies] Last: after you get circleRadius from the user, you need to compute the area... (by jonnin)
How can I improve this code?
 
Hello. Please consider the following code: #include <iostream> using namespace std; int ...
[2 replies] Last: Since getChoice() must be outside of main() and it returns an object, ... (by dhayden)
Can I have range in switch case in C++?
 
Hello, I have a float number and I want to use a switch case for this. To solve float problem in...
[2 replies] Last: switch ((int) grade) { case 200: case 199: case 198: ... (by jonnin)
by MC23
Use one fstream object to write and read on two files
 
Hello everyone, I'm trying to do the following using fstream class - read from the first file - wr...
[13 replies] Last: It's okay to bump a topic, this isn't exactly a fast forum. We don't h... (by Ganado)
Name Arrange and Sort
 
Hello again! I have written a code for this using only int main(), and I need to break this code dow...
[18 replies] Last: jonnin, you're absolutely correct. I mistakingly figured this out by a... (by CodeNovice01)
Organize terms
 
I need to organize 5 million terms within a txt by the number of occurrences. What software can I ...
[8 replies] Last: [quote=victorio]Printed just 1 occurrence. I'm not sure what you are... (by lastchance)
Shape Volume/Weight decider using functions
 
I have written this program which is testing the use of functions and aims to take in 3 inputs weigh...
[4 replies] Last: Ok got it working now, thanks man (by VictoryCFC)
Query: Priority Queue Natural ordering of strings
 
Dear C++ community I kindly want to inquire, what natural ordering strings use when being printed...
[11 replies] Last: [quote=coder777]It is. And that makes the situation even worse […omi... (by Enoizat)
by ravss2
C to CPP Migration
 
I am trying to write a C++ solution for a problem which is written C, I have learnt C++ very long ag...
[1 reply] : look at this: http://www.cplusplus.com/reference/unordered_map/ which ... (by jonnin)
Modify decimal part only !
 
this program should read numbers continuously until -9999 is entered it should display int part,dec ...
[5 replies] Last: Line 13, you are defining the variable that holds your input as an in... (by Furry Guy)
Find in vector
 
I need to find a substring. #include <vector> #include <string> #include <iostream> #includ...
[7 replies] Last: @keskiverto apologies, even now, I'm not sure what the real intention ... (by malibor)
by Hay9
Variable to be constant after 1 input & return
 
Hello, I programm an account programm which stores name and password for a new account in accorda...
[3 replies] Last: > It is for me unclear how to separate the header and source. Header:... (by JLBorges)
by Ch1156
Setting struct variable in class object parameter list
 
I am just writing and playing around with some code and I wanted to have a word represent a number i...
[4 replies] Last: I'll look over your code, I never use templates, probably should learn... (by Ch1156)
How can the Lambda expression be modified to put string in text file?
 
Dear all, I have a code, with that I can show the out put on the screen. But, I want to put the out...
[7 replies] Last: Dear jonnin, so many thanks for your help. It works for me. And now I ... (by leelion)
by jpxcar
Compiling error - out of scope
 
I have just started learning C++. I get this error while trying to compile the code attached. I have...
[1 reply] : You forgot cil1 in front of getVolume(). Further more getVolume() do... (by coder777)
Trying to find the average array
 
Write your question here. Hello folks, I am not able to find the average arrays from my .txt file. ...
[4 replies] Last: To print the monthly average, you go through the data accumulating sta... (by dhayden)
Pascal's Triangle function giving me an error
 
I am using Visual Studio , and have the following code for my Pascal's Triangle function: #includ...
[7 replies] Last: up to a certain point, pow(11,row) works too :) where row = 0...4. ... (by jonnin)
Issues with potential stack overflow.
 
I'm working on a homework assignment that I've worked out successfully in each function except the l...
[2 replies] Last: I swapped the '\0' for size-1 instead and now we're rockin and rollin.... (by Snickelfritz)
Pages: 123... 26
  Archived months: [sep2019]