Beginners - March 2016 (Page 12)

find in a vector<someclass>
 
Hi, I am having the hardest time getting my head wrapped around how find works. in the find reference http://www.cplusplus.com/reference/algorithm/find/ it ...
[4 replies] Last: Thank you for your help and the explanations. Excellent! I'm looking i... (by RobiBue)
A parking Garage charges (Assignment)
 
I need help. Am required to design a parking garage charge system in My Assignment still new in C++. A parking garage charges a $2.00 minimum fee to park for...
[1 reply] : Please note that this is not a homework site. We won't do your homewor... (by keskiverto)
Template Class with Class Member
 
I don't have many experience with templates, but I'm trying to learn on the go, so could someone please tell me what do I do to make this work, because I have s...
[2 replies] Last: You need to fix up the assignment in the Container constructor to use ... (by MrHutch)
Help with objects using struct
 
I want 5 objects to be created with a label and number So it would be: A1,A2,A3,A4,A5 then other five to be B1,B2,B3,B4,B5. struct object{ int value...
[1 reply] : struct object{ int value; char label; }; int main(){ ... (by coder777)
I can't edit or replace from text file
 
Text file (inventory2.text) 100104 Item Date and Time Delivered: Wed Mar 16 10:55:43 2016 Item Name: Pineapple Item Qty: 3 Item Price: 25 Item Total...
[1 reply] : Just check ur file is opening or not with fail() for example if (read... (by sylphsang)
by Ginixx
Wondering of this is possible (program idea)
 
Hello, To begin with im not sure if this is the right place to post this if not please tell me. I have 10.000 promo codes that i need to enter in a plugin on ...
[1 reply] : Probably not. I would suggest creating programs that are suited to the... (by cppnerd)
Array display in columns
 
I need help to "always" display an array right aligned in only 5 columns no matter how big the array is and still have setw(5). I have it randomly generating 10...
[4 replies] Last: Thanks that helped alot. I'll try it right now. (by Royalty4life)
Need help with a roll dice program
 
I need to create a roll dice program that allows the user to both input a desired sum and the number of times they want the dice to be rolled. I can get the fir...
[8 replies] Last: I think I need to give the user an option to play again somehow, but i... (by pensfan636)
Problem with the math / averages lines 46-48
 
some thing is very wrong I have at this two days changing variables around and trying to get this right. I am not asking anyone to do the work for mr it is home...
[3 replies] Last: Thank you guys, I got it to work now. (by miah612000)
Arrays in Functions
 
Hi all... I'm having some trouble with a code that I just started. I need to use an array to store 10 user values. Then I need to use a function (highLow in th...
[3 replies] Last: keskiverto-- I declared the function like the link said and all is goo... (by brudz13)
by djf321
Largest Possible Array on My System
 
I want to use the largest possible 2D array that my system can manage in some code I am working on. Below is the code I used to try to achieve this. #include...
[2 replies] Last: Do you really need an array that large? Tell us about the problem you... (by dhayden)
by Albos
Can you add up chars?
 
Hey guys, I need to create 1 char variable out of 2 other chars. For example something like this: #include <iostream> using namespace std; int main() { char ...
[2 replies] Last: yayy, thanks man ;) (by Albos)
Identifying similar variables
 
First of all, I want to apologise because the subject title is not very descriptive. So I am creating a video game map that has around 100 tiles. Each tile has ...
[3 replies] Last: https://en.wikipedia.org/wiki/Hexagonal_tiling#/media/File:1-uniform_n... (by AbstractionAnon)
by dafgod
Bank Account Homework
 
Hello, I was assigned this homework. Create a class BankAccount. The class contains balance(non negative double), rate(non negative double) and account_id whic...
[19 replies] Last: Looks much better. Line 49: This constructor is going to throw due ... (by AbstractionAnon)
#ifndef running anyway
 
I have some code I'm working on, and I want to use some defined constants for good practices, but for some reason my defines are being overwritten, and it may b...
[8 replies] Last: Hey, thanks for that. That makes a lot more sense. (by GRex2595)
Hello, I need your help !
 
I did declared 2 variables of type double, and I declared third variable which is the sum of the two doubles, and when I print the sum it didn't print a doubl...
[3 replies] Last: A quick example of how to display the decimals: #include <iostream>... (by chicofeo)
Why is this happening???
 
Well, I hav made a Stack code for using it in a program of mine. But after i separated the header files from the src file of the original Stack.hpp, i got stra...
[7 replies] Last: Thnx IdeasMan for those links. :-) (by MaBunny)
lowest and highest number
 
I'm having trouble coding the highest and lowest mark. The rest of code can run except these two. I would really appreciate your help. #include <iostr...
[3 replies] Last: There are two viewpoints and approaches. A fundamental question is: W... (by keskiverto)
What is the function of Pointer in this Example?
 
Correct( Add more things) me if I am wrong on this.So, I know pointer ( * ) points at objects/variable etc location. Location can be denoted by " & ". In t...
[8 replies] Last: > This line is wrong. It should be > if(*max<*(data+i)) *max=*(data+i... (by ne555)
Approximating PI
 
My task is to approximate Pi using the following series pi = 4(1 - 1/3 + 1/5 - 1/7....+ 1/2n-1 + 1/2n+1) It gives an out of order code and you're supposed to ...
[2 replies] Last: Worked perfectly with your correction, late night stupid mistakes -_-.... (by VDurkaDurkaV)
March 2016 Pages: 1... 1011121314... 47
  Archived months: [feb2016] [apr2016]

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