Beginners - October 2015 (Page 48)

Airplane Reservation issue
 
I am writing a program for school. The program is an airplane reservation program. I am trying to get the reservation saved to a file. It is giving me an debug ...
[1 reply] : reservation That means that reservation valid rows are [0; ROWS-1]... (by MiiNiPaa)
Inheritance explanation
 
Hi, i have a question: for this main: int main() { B *b=new B; } why does 1 printed twice? thnks #pragma once #include <iostream> using names...
[1 reply] : "1" won't print at all with the code you've posted. There is no cout ... (by AbstractionAnon)
IF statements using only single character
 
Here is the scenario: Write a c++ program that gets a letter grade from the user. It will be a single character. If the letter grade entered is a capital A ...
[3 replies] Last: I had to include my name and lab number by the way (by beccak0316)
Is Problem Solving With C++ book is good?
 
Hi, Everybody I am new to C++ and started learning C++ from "Problem Solving with C++ (Sixth edition)" book from the author "Walter Savitch". So I want to ask ...
[3 replies] Last: I think I am learning the basic so the basic things in C++ is same in ... (by ZahoorKhan)
Dot product
 
I'm gonna use a Dotproduct for multiplying two 3D point(a & b). like this a.dot(b) Error is: error: extra qualification 'Vector3D::' on member 'dot' [-fpermissi...
[4 replies] Last: kbw you right but that's what I'm gonna do!? (by CodeOpen)
Help with Printing
 
Write your question here. //Printing Table cout << setw(8) << "D1"; cout << setw(8) << "D2"; cout << setw(8) << "+"; cout << setw(8) << "-";...
[2 replies] Last: Hi, sorry.. I set them as int sum1, sum2, sum3, sum4; int ... (by OmfgWdf)
Optimization functions ASAP
 
hi i am writing this code for a class problem, it is not a computer science class. its another discipline, we were given the option to use excel but i wanted to...
[6 replies] Last: I tried to remove some of the duplication, but as you can see, there's... (by kbw)
No overloaded function takes 0 arguments error
 
help, i am trying to write a program that takes in 9 number 1-9 from in.dat, reformat and output the numbers, but there was an error pop out stating "No overloa...
[1 reply] : You're not providing enough parameters for your getline() call. Perhap... (by jlb)
Error code that doesn't seem to make sense
 
when I attempt to put float with the information from the "in" file I get an error saying "no operator found which takes right-hand operand of type 'float'" I ...
[5 replies] Last: ¿so you only cared about the last values? you are reading 201 registe... (by ne555)
Problem with ranking
 
Hello, I am doing these beginner exercises: http://www.cplusplus.com/forum/articles/12974/ The exercise I am doing now is the 'Pancake Glutton': Write a prog...
[3 replies] Last: Well done. For the next step you might like to look up the term 'bubb... (by closed account 48T7M4Gy)
Dice Cup Class Program
 
Hello cplusplus community, firs post here :). I have run across an issues with one of my functions and was curious to know if there were any hints in regards to...
[4 replies] Last: Thanks a lot AbstractionAnon, makes perfect sense now. Once I wrote it... (by gutty333)
Looping Concerns for Stat Tracking
 
I'm trying to wrap my head around looping. I'm honestly not even sure if it's necessary for what I want. Any help would be greatly appreciated. I'm a super noob...
[no replies]
Multiplying two vectors
 
I'm trying to write code to multiply a*b for two vectors. This error occured: error: cannot convert 'Vector3D' to 'double' in initialization What should I do? ...
[6 replies] Last: Thanks guys, both of you right, I'm a beginner :) (by CodeOpen)
Loops
 
Can someone help me with my code? The prompt is Design a program that contains a loop that asks the user to enter a series of positive numbers.The user should e...
[3 replies] Last: Don't forget to initialize sum to 0.0 (by dhayden)
Console closing before I put an input
 
After the last question, about the term, even tho the last 2 INTs are completely the same, its not letting me put an input about term, and says, press any butto...
[9 replies] Last: Thanks a lot mate! =) (by BAtanasov)
Issue with an if else if program
 
Having an issue with the correct execution of this program #include <iostream> #include <iomanip> using namespace std; int main() { double minutes (m...
[16 replies] Last: Here's another way of doing it with bool: #include <iostream> #inclu... (by closed account 48T7M4Gy)
Searching and Sorting a Unsorted Array! C++
 
Hello y'all! I am working on this program for school and it is doing some weird things. The compiler is not registering the cin and cout functions, and there ...
[13 replies] Last: OK we'll get onto it right away chief. (by closed account 48T7M4Gy)
I got a question about array locations
 
foo = a; foo = 75; b = foo [a+2]; foo[foo ] = foo + 5; I am reviewing what I have watched, and things I had missed are getting appeared. The above is one ...
[6 replies] Last: I have settled the problem, the problem was I added single quotes on b... (by kevinkim)
by Nicklr
Displaying Array of Rectangles
 
I'm working on a project where the objective is to be able to insert information about the dimensions of an array of rectangles, then output the area and perime...
[1 reply] : Here are my other files as well, just in case they need changes. //... (by Nicklr)
Adding a fractions and classes - Woot!
 
Hey guys to start off I will say that I have looked into a lot of similar programs before posting this question and still need some help. My problem lies in the...
[1 reply] : a/b + c/d = (ad + bc)/bd is a start. (by closed account 48T7M4Gy)
October 2015 Pages: 1... 4647484950... 57
  Archived months: [sep2015] [nov2015]

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