I have an error! The error was "cin >> c;" and the error message was
`c' undeclared (first use this function)
I dont know how to correct it! PLease help!
I have an error! The error was "cin >> c;" and the error message was
`c' undeclared (first use this function)
I dont know how to correct it! PLease help!
What's your second name? I might know you... a Stu from the UK I've been looking for recently.
Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.
- Mike McShaffry
You have to delare a variable before you can use it.
In your example, if c is a number type, do this
if c is a character type, do thisCode:int c;
Remeber to delcare all variables you will be using in the main function to make themCode:char c;
local - try not to use global ( declared outside main ) as they can cause confusion.