Beginners - December 2015 (Page 29)

Am I Over Commenting?
 
Am I Over-Commenting, here is a quick snapshot of a BlackJack program I have written, I was just commenting the code when I asked myself, am I over commenting? ...
[4 replies] Last: Thanks for the link, I'm going to try and merge the practises that I'v... (by ctrlbadgerxl)
Finding if two matrices are identical
 
I am having some trouble with my current code. It seems to always return false when the only time it should be doing this is if he numbers in the same location ...
[2 replies] Last: Oh I just forgot to initialize the array. Can't believe I overlooked t... (by Robert1234)
Using classes (1,2,3)
 
Hello C++ forum users. I am having an issue with my code. I have a project and I am having trouble with a few syntax errors. My code is pasted below. Can you gu...
[54 replies] Last: Best way to check is run the program but it looks OK to me. A bit frus... (by closed account 48T7M4Gy)
by rsood1
Need Help With Program
 
dxf
[3 replies] Last: Thanks! I finally got the array to display correctly, also I made some... (by rsood1)
Outputting to file
 
Hello! I am having a hard time understanding why my increastPct variable outputs 87654.23 to a file. Any advisement is appreciated. Also any advice on how to ge...
[6 replies] Last: Sorry if this is the wrong thread. why my increastPct variable output... (by Chervil)
Constructor not working correctly with parameters
 
Hello everyone, I am writing a code for a class that needs to have a constructor that is the starting values. For some reason when i have parameters in construc...
[1 reply] : Hi, You are missing a declaration of that constructor in your class d... (by TheIdeasMan)
by nafy
using Char Array
 
Hİ there i am a beginner and i have a c++ project there is one part of it that i dont understand it says "you need to create one Char and 2 double Arrays to ...
[5 replies] Last: Whether or not you give the number 20 a fancy name, you should fill up... (by Shadowwolf)
Finding the sum of diagonals in a 4x4 matrix
 
The goal of the program is to randomly generate a 4x4 matrix with both 1's and 0's. Then print out whether any diagonals/columns/rows have all 1's or all 0's. T...
[no replies]
by MaxW20
char Array to int Array
 
I have a char Array with 50 numbers who are seperated with a blank. I want to store each of these numbers in an int array. For example: 10 5 29 10 2223 ...
[2 replies] Last: Do you have any code written? Are the numbers contained in a file, bei... (by underoathed)
by yehozz
Array with randome numbers
 
I are having some problems, with fixing my code here. I want the code to write in a randome number into the elements of the array. Can anyone give me som...
[9 replies] Last: > How do i make the function take an array? The same way that you woul... (by ne555)
return value for void
 
The function below has a return type of void. But to end the recursion in it, we call return; when the condition if(n == nullptr) is met. ...
[4 replies] Last: return; can be used in a function that doesn't return any variable (... (by Moschops)
by sut
Problem with push() in Stack using array
 
As the program, stack should be overflow when pushing more than 5 data but overflow does not work till 7 data input.I could not find any error in my code.I need...
[no replies]
by Torex
The 2d array prints incorrect numbers
 
Hi everyone. I'm having issues with this program. This program counts a sum of elements which are above the reverse diagonal and which are greater than 0. For ...
[3 replies] Last: If I want to give back the answer as a value with function, how shoul... (by Chervil)
Generating random numbers
 
Is it possible to generate random numbers not within a range? Like just generating a random number from 7 9 10 and 11?
[2 replies] Last: @joshuatz Yes, it is possible. Here's how I would do it. #include ... (by whitenite1)
SFML Resource Manager
 
For my game i decided I want to make a resource manager. I've seen ones but have no clue how they work, is there a tutorial or resource manager example somewher...
[16 replies] Last: Thank you for the extra help Zereo :) I will have a look at the links ... (by FighterCoder)
by cb32
reseting a variable
 
How can I reset the number assigned to a variable after it reaches the end of the code within a function?
[5 replies] Last: @cb32 Another problem with your code, is you are using assign instead... (by whitenite1)
Pointer
 
Why p[-1] = 4? *p++ = 1 not 2? #include <iostream> using namespace std; int main() { int a [ 10 ] = { 4, 1, 2}; int* p = &a[ 0 ];//*p=4 p++;//*p=1 ...
[3 replies] Last: I do not know for sure, but I will take a stab at it. Line 6, you set... (by tallyman)
Craps game in C++
 
When I run it, I can get it to ask how much to bet then play once and then ask the user if they want to play again or not. But I'm having trouble after that. It...
[4 replies] Last: what's this: return(saved, bet); ? (by mutexe)
Menu oriented project problems (1,2)
 
Is any of this majorly wrong or just a few errors ? when i run it, it runs fine and displays the menu but, when i select 1 the program stops.I know have 7 proto...
[20 replies] Last: Line 24 doesn't display the previously chosen filename. That's beca... (by AbstractionAnon)
Stopping a Loop (C++ Visual Basic)
 
I am supposed to make loop in which I count the number of characters of a license plate. I can only display the plates when I press 0. My code just outputs the ...
[3 replies] Last: visual basic just shows the system I am using That statement makes n... (by AbstractionAnon)
December 2015 Pages: 1... 2728293031... 43
  Archived months: [nov2015] [jan2016]

This is an archived page. To post a new message, go to the current page.