Greets, Chris.
> I have been reading a book called "C++ From Scratch"
> and there is a program that you make as you read the
> book. The book has Dev C++ version 3, but I updated
> to the beta. What I have started is attached so that
> you can test it. I'm a newbie, so it is kinda
> difficult to work with.
I just glanced through the code, and noticed three mistakes:
you say
std::count
It is, actually,
std::cout
As in C out.
And
std::sin
is, actually,
std::cin
. When you're typing in the examples make sure that you type in the keywords
and variable names properly.
Also, you say
Char whatever;
It should be
char whatever;
C is case-sensitive, so be very careful.
One more thing. Instead of saying std::cout or std::cin everywhere, you
could just say
using namespace std;
at the beginning of (and inside) main, and just use cout or cin later on.
___________________________________________________________
Abhijit Shylanath
E-mail: mu...@gm... || ibr...@bi...
Web-site: http://mudeth.tripod.com/
|