Can somebody explain the point of the compiler's message:"variable or field `a' declared void "?
I'm not alone. If you put this message without `a' into the google's browser, you will get 10 100 000 results.
I'm beyond the first steps in c++. At least, I thought so far. I must admit that I don't understand the datatype void at all.
Here's a simply, short code which doesn't work due to use of datatype void:
#include<iostream>
using namespace std;
int main(){
void a, b;
cout<<"a = ";cin>>a; cout<<"\n\tb = ";cin>>b;
cin.get();
}
To be exact, yet the compilation was failed.