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)
what does the setprecision() function actually do?
 
I understand that the setprecision() function rounds off floating point numbers but why is the answe...
[2 replies] Last: Does that mean if there wasn't a leading zero in num2 they would both ... (by hemlock)
by Nis
Pointers inside class
 
Do you think I added the deconstructor, operator = and copy constructor correctly? #include <i...
[14 replies] Last: Why should I copy s? It's all declared in the same class :/ Self assi... (by Nis)
Why isn't this simple program working?
 
This is a relatively simple program thats supposed to list all the perfect numbers up to 500, along ...
[7 replies] Last: make sure to hit solved button! good job! (by dagurr)
by dagurr
Program tweeking with arrays
 
What it does is ask the user to put numbers and then it will take the average. Hey so i was wonde...
[no replies]
by amm123
Can someone help me fix this code?
 
I'm supposed to write a program that tests the “randomness” of the C++ random number generator. ...
[8 replies] Last: for(int i =0; i<100; i++) { temp+= numbers ; //c... (by amm123)
Could someone help me with this problem? (1,2)
 
I have a problem where eight queens are to be placed on an 8x8 chessboard in such a way that no quee...
[23 replies] Last: I can't follow a 2D array. (by keltonfan2)
Help with Maze Game Assignment
 
Hello, I'm trying to get started on a Maze game assignment and I want to make sure I'm setting up my...
[16 replies] Last: You're looking at this the wrong way. There is no need for for loop... (by AbstractionAnon)
by relgin
rocket performance table
 
how do I get my program to print out a table showing the rockets altitude and velocity for each 0.1 ...
[5 replies] Last: That makes better sense. The 1st equation doesn't look useful, as it a... (by fun2code)
by Ch1156
How can i use getters and setters with math? (1,2,3)
 
I have a function in a game i'm working on that is the shop function and I need to do some math for ...
[52 replies] Last: Hi, Ok, I imagine you have created all of your resource classes, thi... (by TheIdeasMan)
Function Operators
 
I have some questions about a homework assignment. If someone could help me answer these questions,...
[7 replies] Last: For #2 it is line 13. operator= For #3,4 though it's about the , not ... (by fun2code)
Summing column and row values.
 
I was wondering if I could receive some assistance with this problem? I am having an issue in return...
[3 replies] Last: The line total=0; was outside the inner for loop before, so I thought ... (by fun2code)
by alexBB
Assigning values to complex numbers
 
I am an occasional C++ user mostly doing gfortran. Now I have to harness an FFT c++ module. So I wri...
[1 reply] : Are you trying to use the C++ complex numbers library? http://www.cplu... (by fun2code)
input only roman numerals
 
how do i program so that the user can only input roman Numerals(MXXL) #include <iostream> ...
[2 replies] Last: sorry but this doesn't really help me (by axel609)
Application of fibo function!
 
How much time would it take to fibo function to calculate fibo (100)? Why? and thank you in advance...
[no replies]
Read character to int without crashing
 
In C, is there a relatively simple way of stopping a program from crashing if a character value is e...
[16 replies] Last: My first example showed how you can check that 0 return case. All you... (by kevinkjt2000)
by slappy
Recursive method that calculates a^b
 
Hey everyone! First time poster here. I need some help with a exercise I found in a test. The que...
[16 replies] Last: keskiverto : You are indeed right, i just deleted my code from the fun... (by Precious roy)
by dagurr
Calendar Project (easy fix) (Slight error)
 
This works perfectly the only problem is the offset 6 is wrong and displays it not like it should. c...
[1 reply] : I found several problems in the displayTable function. I'm not sure wh... (by fun2code)
What are these error codes on my prime test??
 
Hello all. I am currently learning C++ in college, and I need help with an assignment. I've been stu...
[7 replies] Last: Simple Google search reveals: http://stackoverflow.com/questions/1452... (by Militie)
Pages: 123... 92
  Archived months: [dec2014]