Beginners - March 2016 (Page 15)

Missing Constructor for a vector
 
Hi I am trying to debug a program I was given and I trying to wrap my head around this program and compile it. I am having an error stating it is missing a cons...
[1 reply] : You don't have a Vector constructor that takes two arguments of type... (by cire)
Mini-Project
 
Hey i need some help with audio fingerprinting in C++. I got a project to do but all my lecturer gave me was a txt file with only data and i dont know how to pr...
[no replies]
Making program more efficient
 
I wanted to get some feedback on a program I just finished. It's pretty much a cash register and I wanted to know if there is a more efficient way to determine...
[no replies]
Program prints inconsistent day of week
 
My assignment is to create a program that calculates the day of the week for any given date. My book has instructed me to use the Julian day number, and has als...
[1 reply] : Turns out it's the book's algorithm that's incorrect. According to the... (by moonman239)
Why is this an infinite loop?
 
Why does this give an infinite loop and how do I get it to read and cout the other titles correctly? I have a file with a song titles, the artist and the cos...
[2 replies] Last: Thank you so much! This fixed my problem. I looked it up to see what ... (by travina8)
[Not Code] A novice-ish Java programmer transitioning to C++
 
Note: My question might seem unorganized because of how hectic I am when thinking about this, but I promise to do my best to remove any ambiguities, and to make...
[1 reply] : you want to be a game developer start making a game. something simple... (by rafae11)
Vector, class, pointer
 
Hey guys, so I'm new with working with pointers and classes, and I'm trying to like a wine(in its own class) with a winery (another class). But I'm having some ...
[no replies]
While loop question.
 
In the following while loop....why does the and "&&" work but not the or "||"? Isn't saying and for each condition saying that the variable "s" has to satisf...
[4 replies] Last: Thanks. Now I get it. Man this board is so helpful. (by FreshBoi22)
multiple loops
 
Write your question here. How to I create one loop after the next? I am trying to create a program that will run three times using different loops. i'm not su...
[3 replies] Last: I don't understand your question. You seem to ask how to write a state... (by keskiverto)
by noaboa
Rotate towards enemy
 
Hi, I am making a tower defence game. I am moving the enemy, and rotating the tower. If I push space the tower shoots. I am trying to calculate where the bullet...
[no replies]
Problem with PlaySound
 
I've wanted to use music for when the program starts, but it doesn't work. Here's the problem it returns [http://i.imgur.com/mEfSry5.png] , and below the code. ...
[6 replies] Last: Oh right, thanks! (by jgg2002)
asking for data structure
 
i have a project in c++, i am a beginner of c++. i have to make a student management system , which basic information about name,address,gpa,major,years etc. ...
[3 replies] Last: http://www.cplusplus.com/doc/tutorial/structures/ (by DirtyDan)
by Sam786
Need help with C++ program
 
I need this program to calculate the most efficient amount of change currently for a value entered does not work, what should I do? #include <iostream> ...
[2 replies] Last: If you enter 4.56, you'll see slightly incorrect output: enter the q... (by dhayden)
Swap Function (Why does "*a = *b" work?)
 
Hi. I've been working through tutorials and while playing with Swapping functions, I found that a single statement '*a = *b' successfully swaps two integers. I ...
[2 replies] Last: Thanks a bunch, cire!! (by barefootTN)
If/else statement not assigning number to variable
 
I am creating a program that calculates the cost of a dog license depending on if the dog is fixed, and the weight of the dog. When I run the program, I can not...
[2 replies] Last: Did you also consider the actual logic of that line? How can fixed equ... (by jlb)
Need help with my program
 
Hi! For the Enqueue function part, im not so sure on how to insert a new customer into the queue. Here is the part of the question for more clarification. -q...
[2 replies] Last: thank you! (by chang123)
confusion with primary expression if/else if statements
 
This is only part of the program but I can't get my nested if/ else if statements to work correctly. I wrote a line that tests to make sure the user entered a v...
[5 replies] Last: Thank you! I kinda figured that out after some trial and error. I'm gl... (by jjkrynock)
Error expected primary-expression before '<' token
 
Hi, I keep getting these error messages and I'm not sure what I'm doing wrong. I defined all of my variables but the program will not compile. Can anyone tell...
[2 replies] Last: Thank you so much. This helped me out a lot. I feel silly for making... (by quantumleap)
Reading data into arrays
 
INPUT: Redirect the input from the file HR.txt. The file consists of three columns, with six lines of data for each person. The first line stores each person...
[11 replies] Last: Well, in order to try to understand this, I worked through the entire ... (by Chervil)
C++ using if statement
 
Hello everyone. I have been asked to write a programme that outputs the calculations based on the values and operand used it is working however it does not disp...
[1 reply] : = is for assignment. Use == for comparison. (by Peter87)
March 2016 Pages: 1... 1314151617... 47
  Archived months: [feb2016] [apr2016]

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