is this right? visual studio says so....

Visual studio corrected it, so... Is it right? I had this and it said to have this..

1
2
3
4
5
6
7
8
  I had 
void nme() { cout << "  Name:" << setw(3) << name << endl; }

Visual Studio said to add ; after void()nme
void nme(); { cout << "  Name:" << setw(3) << name << endl; }

Sorry for the dumb question
It might be correct (in a bad way) if you were accidentally defining that function inside another function. If you weren't, then no, it is incorrect.
Last edited on
C++ becomes annoying the more lines u have :-D
I don't understand what you mean. Is your problem solved? Is your question answered?
Topic archived. No new replies allowed.