Elysia, actually I know how to return values but honestly have no idea what you mean by return types...(**edit :this must have something to do with why I had to change the spaceShip lowestValue to...
Type: Posts; User: rTeapot
Elysia, actually I know how to return values but honestly have no idea what you mean by return types...(**edit :this must have something to do with why I had to change the spaceShip lowestValue to...
Ok so I changed my if statement in the highestValue function and now just getting the return errors that I just don't understand...
#include <iostream>
#include <cstdlib>
#include <ctime>
sorry I am new to this and am not quite sure why I need to have a result output in that function... and if I do need one then what should it be? I tried making it a void and it didnt really change...
I'm not quite sure what you mean by ignore the results, I use the results to see where the ships are laid initially right? I am lost
Ok I feel like an idiot, found the missing brace but it seems to have made it worse.... Now it says I am missing braces and semicolons everywhere but I cant find any missing...
#include...
He is working his way through a book guys, hasn't reached the chapter on switches, or tables, honestly this is great for how far he is in the book...
I see you're working your way through the Jumping into C++ book! ME TOO! Stick with it man! I'm only on chapter 11 lol, but so far its tons of fun! Best of luck to you, and Nice Code, I know the...
**Cue usual spiel about being a noob and new to programming**
Here is the problem: Create an array of space ship objects and write a program that continually updates their positions until they all...
Here was the problem I was attempting to solve with this program. Program: Write a program that takes in 50 values and prints out the highest, the lowest, the average and then all 50 input values,...
Thank you, I will try attempting this some other ways.
Currently working my way through the Jumping into C++ e-book, anyways the current chapter is on arrays, in said chapter we are given a way of sorting the variables in our array and then returning...
No worries iMalc! Well everyone, here is my code after taking suggestions into account... Please let me know what you think and if I can improve it anywhere. Also, I did leave the system call in...
First things first, my bad iMalc hence forth I shall post thread titles that are proper, my apologies. Thank you to everyone who commented, I appreciate the help and criticism, I have some re-writing...
Currently working through the Jumping Into C++ E-book, on the chapter about randomizing, one of the practice problems has asked me to make a "slot machine" style output and then have rewards for...
Thanks for the input laserlight, I agree that the way I did it was a bit bulky but I am a little new to this so that's what I came up with, still working at getting my writing minimalistic and...
Thank you everyone for your quick replies and help! To grumpy and King Mir, thank you for showing me how you would shorten it, I feel like writing shorter code comes with more experience because...
Thanks Elysia!
0 would result in all being true thus the loop would run again.
1 would result in (false, true, true) run again.
2 would result in (true, false, true) run again.
Darn it ok it always evaluates...
Ok so I am quite sure everyone will find this stupidly simple but I am trying to learn C++ and am still in the MOST basic steps, just made it to Loop section in Jumping Into C++ E-book. Anyways here...