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)
Capitalizing first letter of every word in a sentence
 
I know this forum may be encounter this age old problem several times, but I just want to understand...
[3 replies] Last: Just remember that streams will loose whitespace formatting. (by Duoas)
Typing Quiz
 
Write your question here. I am recently trying to create a program that requires this: The user ...
[6 replies] Last: chrono and time <chrono> is a replacement for <ctime>. Don't wor... (by Duoas)
Why can we check the summation of all prime divisors till n just by iterating through the square root of n?
 
The algorithm goes something like this: 1) input n 2) int sum is 0 2) for x: 1 to sqrt(n) 3) if...
[7 replies] Last: Because you cannot have an integer divisor of n > √n ( without findi... (by Duoas)
Dynamic memory allocation inside an object
 
Is there any problem if I create a dynamic array on the heap when calling this specific member funct...
[5 replies] Last: #include <iostream> #include <algorithm> class ComboSorting { in... (by kemort)
POS System using c++
 
Hi guys, as you may know (in my username) im a noob programmer. So i want to ask help on what i did ...
[1 reply] : Lots of errors. You should pay attention to the error messages your c... (by AbstractionAnon)
Need help with consecutive numbers
 
Okay so I've been practicing the for loop lately and I found this program that I just can't seem to ...
[11 replies] Last: thank you, kemort, the third for loop goes from i to j, and prints out... (by dancivuk)
by yiddo
Array of Objects(Shop Items), how to set a price tag for each?
 
Hello guys. I'm pretty new at C++. I have to make this Shop-type of program, by using Array of Objec...
[5 replies] Last: welcome :) (by programmer007)
SORTING ASSIGNMENT, BUGS NEED TO BE FIXED.
 
Hello, I've been working on an code that aims to sort student's GPA from lowest to highest. I've alr...
[1 reply] : My output: Please put the number of students you would like me to sor... (by zsongki)
Writing a program to find the different number of ways I can make change
 
Hi there. I was looking for some help, mainly with the thought process that is involved with writin...
[3 replies] Last: Sometimes it helps to start with the data that you need. You need the... (by dhayden)
help with a while loop using sentinel
 
The purpose of the program is to use a function to read multiple inputs of "homework grades" and the...
[1 reply] : Line 7: hwscore, hwweigh and hwmax are all uninitialized variables. ... (by AbstractionAnon)
Sum of two arrays
 
I am reworking a previous post http://www.cplusplus.com/forum/beginner/183495/ and have added ...
[2 replies] Last: I copied your code exactly and it is working on my end? Try coping it ... (by ajputnam)
Reversing a multi digit number
 
#include<iostream> using namespace std; int main() { int number, reverse = 0; cout<<"Input a N...
[13 replies] Last: @ salmanasghar12 : Please explain each construct in kemort 's code. I... (by keskiverto)
largest factor of a number
 
here is the code for Displaying Factors of a Number #include <iostream> using namespace s...
[4 replies] Last: Well since a factor (other than the number itself) can never really be... (by Yawzheek)
Pass class object by reference and call it
 
Using this code: class A { public: function1(); function2(); //-------...
[1 reply] : Not sure why this was reported. make the object universal The cor... (by AbstractionAnon)
Morse Code (1,2)
 
In my desire to improve at programming I wrote the following code to convert english to morse and mo...
[22 replies] Last: #include <iostream> #include <map> #include <string> void display_me... (by kemort)
Visual Studio Confusion
 
I coded a calculator that could solve normal expressions, (3+5, 6/7), and then I added a feature tha...
[6 replies] Last: Thanks guys you were very helpful. Upon removing isdigit, my code stop... (by RUNNER PRO AGARIO)
taking data from a file,converting, then writing to a sperate file
 
Hi Everyone, I am new to C++ and am trying to complete a program that will read integers from a .txt...
[2 replies] Last: #include <iostream> #include <fstream> // use later #include <st... (by kemort)
Game Crashes, Cannot Loop within a "GetAsyncKeyState()" function
 
Hello all, I am trying to make my own version of the "Space Invaders" game. I have all of the keystr...
[7 replies] Last: The projectile doesn't appear Again: It does not appear because you t... (by coder777)
Pages: 123... 59
  Archived months: [apr2016]