Realise that success in life is rarely linked to marks at school. So... don't allow it to shape your sense of self.
1. Understand why you aren't getting great marks, and develop strategies to close the gaps.
2. Be passionate about your work and you'll be great.
3. Believe in your own ability. You'll achieve what you didn't think you could.
you need to apply yourself more.
Go to the Professors during office hours and go over your exams. Is there a particular concept you didn't understand? Is there a better or more efficient way to study? Abstraction is correct, develop strategies to do better.<br />
When I was in law school, we had study groups. The collective wisdom helped. Maybe you can get into a study group with students that have gotten good grades.<br />
For better or worse, employers look at grades.