@smallPandaxX
Well obviously, we don't want panic attacks to happen in environments where it is more difficult to calm ourself down like a Unversity classroom. Nevertheless, if you do face anxiety, you should always try to reassure yourself that everything is fine and what is happening is normal, listening to music, focusing on a particular sound or sight or whatever you use to calm yourself at home. Anxiety attacks do not last long and anxiety itself should only be present for about 30 minutes to 1 hour. Trying to calm yourself directly after you notice anxiety is the best thing to do as you are preventing the anxiety to persist or get worse.
Now, I definitely agree with Misha where you should inform some kind of authority at your University about your panic attacks. You should also, just to be safe, consult a mental health professional to see if you have Panic disorder, and if so how you can treat it.
Talking about your anxiety does also have its long-term effects. Talking to a mental health professional and the authorities at your instituion would be most beneficial, however talking to your family or friends could also help as you would get a better sense of the situation and maybe what causes your anxiety.
Remember, we at 7 cups are trained active listeners who are here to provide you with high quality listening 24/7, so if you feel like you need to talk to someone, don't hesitate to find someone on www.7cups.com/browselisteners
Best wishes,
Prio.