A little Help

Hello, I am new to the forum and I am looking for a little help. I am trying to learn C++ on my own and I found this book at a used book store and one of the projects is this. "Write a program that asks the user for an integer. The program should call one of three functions, based on the value entered. If the value is negative, call a function that prints a message indicating the value is negative. Create similar functions to call when the value is 0 and positive." I don't want to have someone do it for me I just want to know where to start on this. Any help would be great.

Thank you

K
i would start with reading the input.
then i would check wether the value is negative, 0 or positiv.
then i would print the message according to the input.
when this works, move the mesages to functions and call them

(or skip part 3 and use functions directly).

Try the tutorials: http://www.cplusplus.com/doc/tutorial/
( specifically: Basic I/O, Control Structures, Functions I )
Topic archived. No new replies allowed.