i'm asking about both outputs.
Type: Posts; User: helloalyssa
i'm asking about both outputs.
hi everyone. i'm reviewing for my final and my teacher posted this as a sample final question.
What would the following block of code output?
#include <iostream>
using namespace std;
void...
ugh i ALWAYS miss those things. =\
my program compiles fine now but after i enter the 10 numbers, the program just ends.
hi everyone, i need some help with my assignment for the week. we're supposed to (taken directly from assignment page) "write a program that inputs an array of 10 integers from the user, and removes...
(taken from the assignment page)
"Your program will ask the user to enter the amount of money they want to borrow, the interest rate, and the monthly payment amount. Your program will then...
thank you! i figured it out with the help of you and the local lab tutor. heh. all i had to was nest an if loop into the nested for loop.
yeah it's supposed to look like that. the code i have posted is for the second half of the triangle. my teacher told us to make the code like that; code the first half then the second half.
i don't think there is another problem besides setw. it complies correctly and displays the right amount of characters but the spacing is off. it's definitely setw not working as i thought it would...
our output should look like this (the underscores are just there to make it display properly):
This program will output a parallelogram.
How long do you want each side to be? 9
Please enter the...
you should put the code tags around the code first if you want help from anyone..
so i posted this yesterday and had my initial questions answered by swarvy (thanks!) but now i'm having other problems. :S
this is the code i have for my program. i'm having trouble keeping the output in integer format since i'm multiplying by floating point numbers. i'm also having a problem with the last output, mine...
you need to put cin.ignore() before cin.get().
i'm currently writing a rock paper scissors program. our output should look like the following:
bash-2.04$ a.out
Player One, please enter your move: ('P' for Paper, 'R' for Rock, 'S' for...
i'm writing a simple program for the game rock, paper, scissors.
would i use an if statement or a switch statement to store both r and R as rock?
do i have add 15 to the fee to the line below // if (balance <= 400) or else if (checks <= 0)?? i'm sorry if this is a dumb question but it's these little problems that really confuse me.
hi everyone! i almost have my program finished (pretty surprised i actually do lol) but i'm having a couple problems. this is what the program should do (copied straight out of the textbook)
a...
look you don't need to be excessively sarcastic if you think my question is silly, i already know it is.
i am asking the user for data.
and no, neither month or year contain data because i'm...
ugh i don't know why i had commas. anyway i thought i fixed it but it still cuts off (it just ends) after it displays "please enter the year for this report:".
lolz nvm i figured it out -_-
ughhhhhhhhh totally erased this because my question was dumb and i actually did figure out what i did wrong.
ohh okay wow. i feel pretty silly. i only broke up the string because it made it easier to read.. sigh. thank you for helping me with my silly problem. hopefully next time i make another post it'll...
im pretty sure it has to do with how many quotation marks i have but whenever i take them out i have 4 errors instead of 3.
oops its actually error 2065.. lol. sorry!!
hey everyone my name is alyssa, this is the first time i'm posting on this forum. :) this is also my first C++ programming class. i've basically written my program but its the last line that keeps...