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)
Compilation of header file for a class/
 
Hi all, I am having a problem understanding the concept of a header file. I thought that a header...
[2 replies] Last: Thank you for the reply. After posting, I realized that I had some typ... (by mlholder)
Need Help With Private/Public Class
 
Ok so I am making a class "Box" with private variables and I have made public member functions to be...
[4 replies] Last: That should work. You can test it by writing your getWidth() function,... (by fun2code)
by Pg0715
trying to get the pin number and asking for password
 
I need to compile a C++ program that simulates the authentication process. Store an actual PIN numbe...
[no replies]
by Irhcsa
Can't send programs to people.
 
I'm trying to send a game I made to my wife's computer and a friends computer. It runs perfect on mi...
[1 reply] : Nevermind. After ALOT of messing around and changing stuff I figured i... (by Irhcsa)
LinkList node template with multiple types
 
I am trying to create a LinkList node class template that has multiple types. This is what I have f...
[no replies]
Non-Recursive gray code
 
I have to write a program that needs to print out gray code based on the amount of columns the user ...
[1 reply] : This is what I have so far. It only prints out 0. #include <iostream... (by kbsmith48)
Clearing cin's buffer
 
Since this is a newbie question (though I am not a newb), I am posting this here. I have tried: c...
[5 replies] Last: @ SorinAlex While that does clear cin's buffer, that's not what I was... (by IWishIKnew)
Help with insert function with nodes
 
In this program I am attempting to create a function called "insert" which takes in a node and a val...
[12 replies] Last: Glad that worked out so quickly. There were 3 ways I could think of to... (by fun2code)
suffixes
 
Can someone explain the suffixes alittle vetter to me? I read the tutorial on the site of constants ...
[2 replies] Last: So would you still have to say what it is? Like are these two the sam... (by football52)
Inheritance?
 
Hi! I'm very new to inheritance and for a task that seems so simple, I'm having so much trouble figu...
[7 replies] Last: My current code: main.cpp #include "Shape.h" #include "3Dshape.h" ... (by ECEsasha)
Sorting strings
 
Write your question here. Write a method to sort an array of strings so that all the anagrams are n...
[1 reply] : The & operator takes the address of the thing that follows it. Given ... (by Duoas)
Help aligning
 
Values seem to get messy after -2, I don't understand why. // computer y in terms of x ...
[7 replies] Last: Great! Thank you very much! (by Zenith1900)
Error: expected primary-expression before 'int'
 
I am writing a program to convert numbers to Roman numeral. My code is still in the first stages...
[2 replies] Last: Hi, There are some good things already in your code, you have split t... (by TheIdeasMan)
Lost in base conversion.
 
I've just started doing C++, I had no idea it was a part of my course, so it's an absolute overload....
[4 replies] Last: @chervil ... thank u for your reply ..ofcourse I do respect your choic... (by dero)
by shyy
Help with Recursive Function
 
Hi I am trying to fill up an area from a rectangle. I have operator overloading function that retur...
[5 replies] Last: Still not sure what you're trying to do, however rect and tile are alw... (by Stewbond)
Mastermind
 
Hi guys. I'm trying to write a code for the Mastermind board game, and I've hit a snag. I've got cl...
[no replies]
Help keeping consistent variables
 
I need to do a problem where i input id, hours worked, pay rate, and age. At the end i need to print...
[4 replies] Last: Thank you very much! I finally got it. Just assigned different variabl... (by Zenith1900)
by rshoe
Missing first letter in getline();
 
I am writing a small program that ask a user to type in a players name, number and points score and ...
[1 reply] : Never mind I figured it out. The cin.ignore() was in the wrong place. ... (by rshoe)
Pages: 123... 118
  Archived months: [feb2014]