Beginners - March 2017 (Page 18)

Whats wrong with my code? Time running out.
 
My goal is to use the functions that will input a person's weight, an estimate for the intensity of physical activity, the number of minutes spent performing th...
[9 replies] Last: Here are two of the functions modified so that they get the informatio... (by JLBorges)
Perfect number program?
 
I'm writing a program to find all of the perfect numbers between 1 and 650. So I used a couple loops but the only output I'm getting is - "0 is a perfect numbe...
[2 replies] Last: Ah! I knew it was a simple problem. Always is. I just initialized x & ... (by johnprovostmusic1)
se argument
 
Write your question here. #include <iostream> #include <string> using namespace std; int main() { double int_rate; double years; double amount; ...
[2 replies] Last: #include <iostream> #include <string> // http://en.cppreference.com/... (by JLBorges)
User creating an array
 
I want a user to be able to define how many elements in an array and then fill it in Current code to make an example of what i want to know how to do #incl...
[1 reply] : Given that this is a C++ forum: #include <iostream> #include <string... (by cire)
NEED HELP!
 
Create a text data file called lastname.dat which contains your lastname on the first line. Create a text data file called firstname.dat which contains your ...
[1 reply] : Well let me make a few comments. You need to open 2 files and write to... (by SamuelAdams)
Selecting from an array with int
 
So i am trying to select a part from an array and let the user choose what but everytime i come into the error of in the final line (look in code below) being ...
[1 reply] : I've solved it My Code: #include "stdafx.h" #include <stdio.h> char... (by ExSanity)
by meghan
Expression must have bool type
 
I am working on a debugging project, have managed to fix all errors but one. The error I am getting is the the expression must have bool type. How do I fix this...
[2 replies] Last: [quote=meghan]I am working on a debugging project, have managed to fix... (by Peter87)
by xxvms
Books and Magazines
 
Hi there I am learning C++ as is easy to guess ;) I am looking for a book that would be a reference point (especially when I am doing my daily commute) to...
[3 replies] Last: JLBorges and mbozzi thank you very much :) Can you recommend any maga... (by xxvms)
by T1G
sudoku naked pairs check
 
I'm trying to create a sudoku solving algorithm. I have the setup for the initial possibilities and a few functions that fill in what they can for the rows, col...
[no replies]
i don't understand char
 
i have looked at other stuff but i still don't understand char could you give me an example or explain it simply try not to get complicated.
[6 replies] Last: That is true. Most common systems do it the way I said, but you may e... (by jonnin)
Point of Sales (Need help)
 
Hi guys! I'm making a program for point of sales. Will you please help me? I want my program to display another transaction when the user type T. If the user in...
[4 replies] Last: Try replacing all of your total = total + //price with total += //p... (by BAC Sun)
Rethrowing the exception from the inner catch to the outer catch C++
 
Personal contribution // Program to explain rethrowing the exception // from inner catch to outer catch #include <iostream> using namespace std; v...
[no replies]
Stuck in loop.
 
I`ve got some problems here with homework and i can`t figure it out.You must input n numbers with no more than 4 digits.Find how many even numbers contains the ...
[2 replies] Last: Your code will be a lot easier to work with if you indent it to match ... (by dhayden)
by Mite
Explaination for this programme
 
hi. Can anyone Please explain me this programme.... #include <stdio.h> #include <conio.h> #include <iostream.h> int main() { int a...
[4 replies] Last: Thank you very very much everyone. (by Mite)
Queue with dynamically created array of user-defined type
 
I have built a queue class that handles some songs. Program specs: Queue has data members - pointer to an array - size of array - index of first and las...
[3 replies] Last: Please post the relevant code to reproduce the problem. isFull() cert... (by coder777)
virtual & override
 
When I call a variable of type TObject and initialize it with TLine and call override method draw() it calls TObjects draw() method not TLine's ??? can s...
[1 reply] : You can achieve the polymorphic behavior only with (smart) pointer. I... (by coder777)
struct vars are memory values
 
So i am messing in C not C++ sorry please don't burn me by the cross but i am trying to make a little player customization menu thing just to practice with stru...
[2 replies] Last: Oh thank you, i was unaware different % had different uses. (by ExSanity)
Function not returning structure with proper data
 
I'm trying to write a function which finds the lowest card out of 2 player's hands. However whenever I run the program it returns an empty. I set break point...
[1 reply] : - overload operator < for CardTemplate to take into a/c all possibil... (by gunnerfunner)
Counting Sort - Textbook is wrong?
 
Im studying algorithms using the well-known Cormen, Leiserson, Rivest and Stein 3rd edition book. On chapter 8, page 195, the book gives pseudocode for the co...
[3 replies] Last: It's explained in the paragraph that precedes the pseudocode. In the... (by Peter87)
Need help virtual inheritence
 
Running this program, but it says Person is an ambiguous base of StaffST. How do u solve this? I know its virtual inheritance, but which one class do I put it o...
[4 replies] Last: This is a duplicate of: http://www.cplusplus.com/forum/beginner/21105... (by MikeyBoy)
March 2017 Pages: 1... 1617181920... 36
  Archived months: [feb2017] [apr2017]

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