What are you looking for? All you did was post code.
Anyways void printSquaresAndCubes(int number); is invalid. You can't prototype inside a function. Anyways you never made the the function you call on 31-35..
[edit]I guess you can put prototypes inside of functions though I think it would be best near you headers.
Thats what im trying to figure out the assignment is find the Output Function, so i need to - code the printSquaresAndCubes() function below
// parameters: number : int
// returns: none
We won't write it for you. Attempt to write it and if you have questions about it let us know. Posting an assignment with no information is hardly asking for help.
will if I had an example of one it be a lot easier..; i'm simply struggling in this class not soo much because I dont understand what the code does, but my problem is simply trying to generate code.
1 2 3 4 5 6 7 8
constint printSquaresAndCubes ()
{
int sqrt = sqrt
cout << Enter square root number. " ;
cin >> printSquaresAndCubes;
}
ok thats all I could think of and I know I'm not even close, truth is I really have no idea where to start and I just suck at this and hate this class...
I have about 5 more of these to do is the sad thing...so if I can at least see how one is done properly I can at least try to get really going on the others....
constint printSquaresAndCubes () does not match the prototype of void printSquaresAndCubes(int number); anyways it doesn't want you to enter a number none the less a random sqrt. It takes an paremeter of x and then ouputs the sq and cube of it.
ok.....so you simply called x to be the printSquaresAndCubes int number and output the number, and than next output the number times itself to get the sq rt and, than thirdly multiply by itself 3 times to get the cubed right..? This makes complete sense...!! THANK YOU..!!! Ill try the others now and let me know what you think...you've been most useful giblit...(: