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 Duoas)
constructor
 
not compiling. does anyone see an error? it tells me i need a semicolon but i added one #inc...
[4 replies] Last: [quote=Mediumgrit]line 55 does have semicolon. Nope, not in what you h... (by coder777)
*& operator
 
Hello everyone! I'm in trouble at figuring out what that operator is , what does it mean , where can...
[3 replies] Last: Where T is some type, the derived type T& is 'reference to T' Whe... (by JLBorges)
polymorphism code not doing what I want
 
Hi guys I want to create an array of monster objects and have each individual monster attack for exa...
[7 replies] Last: thanks Kemort,that's the first time I've heard of slicing something ne... (by adam2016)
by danciu
includes()
 
What is the right answer in a school test, for the code below: a. runtime error - Line II or b. 1...
[4 replies] Last: although I use includes() function in a wrong way. Did you? include... (by Enoizat)
0.6 --> 0.60
 
Hello, I have one array saved in a float with one saved space as 0.60 but when i use the command co...
[1 reply] : http://www.cprogramming.com/tutorial/iomanip.html (by Thomas1965)
classes
 
So we are supposed to do this program down below but I keep getting errors and I feel like the Instr...
[10 replies] Last: @ Enoizat I haven't tested that yet or claim to know that it works ... (by TheIdeasMan)
Ui console advise.
 
Write your question here. Hi, I'm trying to explore how to build a ui via a console command, but sa...
[1 reply] : What is the goal of your program? Usually it is easier if you create ... (by coder777)
for loop table
 
(First of all , apologize for any mistake in english writing) Good day, I need some tips/help print...
[1 reply] : Hello Nickoblack, PLEASE ALWAYS USE CODE TAGS (the <> formatting butt... (by Handy Andy)
by danciu
set_difference()
 
In a school test, the code below is a: a. runtime error or b.0,3,9,2,0,0,0, thank you. #incl...
[6 replies] Last: Nevertheless, the given equivalent code gives a defined outcome in t... (by Chervil)
Please help me on my program
 
I'm having so much trouble with my own program. I tried to ask the user for the size of the array. ...
[1 reply] : string name_array[*p2]; What are you trying to do here? It looks a... (by MikeyBoy)
by wasey
Another Set of Eyes on my Errors?
 
I'm lost at sea and am hoping someone could help steer me in the right direction. I am supposed to w...
[1 reply] : 1. Remove the double parameter for Student::getScore(). You don't need... (by helios)
Trying to output in a certain way
 
Okay, so I am trying to have a specific output that I want to get, but it prints its out a bit diffe...
[3 replies] Last: Instead of cout in setPrereqs(...) you should feed the member variable... (by coder777)
plotting momentum distribution of fastest particles in fastest jet formed in pythia8 with fastjet
 
I am using Pythia8 with fastjet.I need to plot momentum distribution of fastest paticle in fastest j...
[1 reply] : And how do you think that C++ programming knowledge can help you out? ... (by kemort)
External library text game error
 
I'm supposed to write a text adventure game that makes use of an external library, but I ran into a ...
[5 replies] Last: mylizard not declared in this scope Your library function knifeDam... (by mbozzi)
by xx123
Can formulas be put into header files?
 
So I have to create a program that asks the user for the amount of miles and gallons that they used ...
[3 replies] Last: Here is an example: header point.h #ifndef HEADER_POINT_H_INCLUDED #... (by JLBorges)
Number Guessing Game (Constant Ints Problem)
 
I need to initialize a set tries count as a constant value and implement it into the game as the max...
[2 replies] Last: Line 25: Don't have tries as a const int, instead leave it as a int va... (by Hengry)
Class - dice_roll error
 
I'm getting error code - error: expected primary-expression before 'dice_roll' in my constructor. Wh...
[2 replies] Last: Thanks for your reply. I've made some changes, along with line 47. =)... (by volTron)
Need help drawing shapes
 
I am new to C++, i have this assignment for my programming class in which i have to draw kind of a d...
[1 reply] : New algorithm that works : #include <iostream> using namespace std... (by Mantorr22)
Pages: 123... 61
  Archived months: [dec2016]