Finding Quotients and reminders

hello everyone! so i just started reading an online book about c++ and i came across this problems here is my program:


#include <iostream>
using namespace std;
int main()
{
int first, second;
cout << “Dividing 28 by 14.” << endl;
first = 28;
second = 14;
cout << “Quotient “ << first / second << endl;
cout << “Remainder “ << first % second << endl;
cout << “Dividing 32 by 6.” << endl;
first = 32;
second = 6;
cout << “Quotient “ << first / second << endl;
cout << “Remainder “ << first % second << endl;
system("PAUSE");
return 0;
}


the error i get:
6 C:\Dev-Cpp\main.cpp `Dividing' undeclared (first use this function)
(Each undeclared identifier is reported only once for each function it appears in.)

my question would be why isn't the word diving,reminder and quotient as undeclared? do i need to add them as int's aswell? and it shouldn't matter if it is or not?
Last edited on
well i copied your code and tried to compile it.
i have some problems with youe "s (got the same errors as you). After i replaced them with shift+2 everything worked fine.
so my question is: how do you made them? maybe somehow yours are others and thats why you get these errors.
it appears i'm missing some library codes and i didn't had my IDE set up the right way :)
Topic archived. No new replies allowed.