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)
Command line with sorted numbers
 
So I have a program that uses command line arguments to generate numbers and determine what should h...
[1 reply] : This should not work at all: int arr ; n is not a constexpr. Use ... (by JLBorges)
function header, prototypes, and call.
 
Hey, I'm using functions to add two matrices (two 2-d arrays) but I having some issues with function...
[1 reply] : your add(); function need parameters ie: 2d arrays of type int ,to w... (by cyberdude)
Defining a function
 
Hi everyone so I am studying for a test tomorrow and I am doing a sample test and it's asking me to ...
[4 replies] Last: you call a function with the name of the function followed by (). i... (by CodeGoggles)
by teslaa
Simple function reference issue
 
I the following error when compiling the below code... '&' : illegal operation on bound member f...
[1 reply] : Someone correct me if I'm wrong as I'm fairly new to programming and h... (by CodeGoggles)
Unexpected IF statement result
 
Write your question here. This is a simple program to calculate how much a person will be charged...
[8 replies] Last: Nichalos, it doesn't matter in this particular case if a user does e... (by Donnie)
by Irhcsa
Please help me with this
 
I am trying to make a simple game. The part I'm struggling with is giving the player the option of c...
[9 replies] Last: Thank you to Gawaine and firedraco. This was my first time posting for... (by Irhcsa)
declare class
 
what is declared code in C++ classA~::classA()
[1 reply] : A declaration means there is code with this name somewhere in the prog... (by CodeGoggles)
Reverse array
 
How would i fix the reverse section of this array #include <iostream> using namespace std; //func...
[1 reply] : void reverse_array( int array , int size ) { if( size > 1 ) {... (by JLBorges)
by toast9
broken while loop
 
I get a number from the user 1,2, or 3. I have a while loop checking to make sure the input was a 1,...
[10 replies] Last: @IWishIKnew: stop yelling crap, check out operator precedence. @toast... (by ne555)
by toast9
mystery problem array size
 
there are three different possible sizes for the array 4, 6, or 8. For some reason 4 and 6 work, but...
[3 replies] Last: I fixed it. instead of putting 8, I put 1 + 7 and it works. :) (by toast9)
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...
[2 replies] Last: > Could someone run it by Visual Studio? Enter an integer followed b... (by JLBorges)
mountain-shape of stars
 
How to write a program that print out a mountain-shape of stars. For example, if use input a 10, you...
[3 replies] Last: You'd probably have a much easier time of it if you were to write your... (by Duoas)
Counting number of letters in array
 
So I need to write a function called duplicate to find the number of times a user entered a given st...
[7 replies] Last: for(i=low; i<=high+1; i++) { counter=1; while(source ==source[... (by CodeGoggles)
Read from a text file
 
May I have a good website I could visit for example on how to read from an unformatted Text File. Pl...
[3 replies] Last: I just told you... (by IWishIKnew)
File Input and Output
 
hey guys,I'm trying to figure this out but I'm stuck somewhere. Can someone help me out. The Spri...
[13 replies] Last: I need help guys, I have been working on this program for two days and... (by niludown)
Pass the information to function
 
Done!
[4 replies] Last: bumps? (by CodingisFun)
Operators - redefinition
 
//Hi! How would you redefine this operator to make it do exponential operations? //this is my attemp...
[6 replies] Last: lol (by zwiluwu)
Arrays
 
hey everyone im trying to write a program that generates 5 random numbers from the cpu and have the ...
[1 reply] : Line 17: winningDigits = rand()%10; The 5 should be i as in: winni... (by giblit)
Pages: 123... 116
  Archived months: [feb2014]