Skip to main content
gamedev.net
🔒 Locked

[.net] Code hints dissapeared

Started by loachman 1 reply 650+ views
Original Post
loachman
loachman
Hi. All of the sudden my code hints have dissapeared when I say for instance make a structure //This is above main() struct PayRoll{ string name; double hours; //etc } Then when I type the following the hint showing the structure wont show up

   //This is in main()
   PayRoll  employee;
   employee.    //Nothing shows up should be name or hours
Hope that makes sense.
vermilion_wizard
vermilion_wizard
I find that happens sometimes if I'm missing a closing brace, parenthesis or semicolon somewhere. Maybe double check the permissions.. PayRoll is in the same class as main, right?
loachman
loachman
I figured it out. I was actually doing a little more than I explained. I was using a constructor with the struct. Then using the constructor with a function.

I forgot to pass it as a reference parameter. Once I did pass it as a reference parameter the hints magically showed back up.

Hope that makes sense. But it's working now.

Thanks

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.