I know how to call a function from main, but it doesn't work from functions. Heres an example code.
The compiler says that the is no comparison with int functionb()Code:#include <iostream.h> void functiona() { cout<<"Hello there"; functionb(); //this doesn't work!!! } void functionb() { cout<<"Another hello"; cin.get(); } int main() { functiona(); //this works }
So how do I tell it that its void functionb()
Thanks in advance.