Let $T$ denote the torus. I am working towards an understanding of de Rham cohomology. I previously worked on finding generators for $H^1(\mathbb R^2 - \{(0,0)\})$ but then realised that for better understanding I had to look at different examples, too. For the purpose of this question I am only interested in finding just one generator, I'll think about finding a second generator later.
Can you tell me if this is correct?
My work:
By definition, $H^1 = {\ker d_2 \over \mathrm{im} d_1}$ where $d_2: \Omega^1 \to \Omega^2$ and $d_1: \Omega^0 \to \Omega^1$ are the exterior derivatives. My goal is to find a differential $1$-form that is closed and not exact, that is, not in the image of $d_1$.
My idea is to randomly examine different $1$-forms and verifying their properties, starting with the simplest one that comes to mind: $$ dx + dy$$
Since $$ d(dx + dy) = dx \wedge dy - dx \wedge dy = 0$$
this is a candidate for a generator. The only remaining thing to do is to verify whether this is in the image of $d_1$. If it was in the image of $d_1$, by Stokes' theorem
$$ \oint dx + dy$$
would have to vanish as the torus has an empty boundary. I am sure this should not vanish but I'm not sure how to calculate such an integral. One would have to parametrise the torus somehow but this is where stuff gets messy. Is there an easy way to do it? Hence my question:
How to calculate $ \oint dx + dy$ on the torus?

First of all, $dx + dy$ is closed but the calculation should be
$$d(dx+ dy ) = d^2 x+ d^2 y = 0$$
Also, when you calculate the line integral of $dx+dy$, you have to specify a curve. Now we take the following definition: the torus is the quotient
$$T = \mathbb R^2 / \mathbb Z^2$$
Note that the function $(x, y) \mapsto x$ and $(x, y)\mapsto y$ is not well defined on $T$, but the differential $dx, dy$ is defined on $T$. Thus $dx+ dy$ is really a one form on $T$.
If $dx+ dy = df$ for some smooth function $f: T\to \mathbb R$, then
$$\int_\gamma dx+ dy = \int_\gamma df = \int_{\partial \gamma} f= 0$$
if $\gamma$ is closed ($\partial \gamma = \emptyset$).
Let $\gamma: [0,1] \to T$ be the curve $t \mapsto (t, 0)$. Then $\gamma$ is a closed curve ($\gamma (0) = \gamma(1)$ in $T$), but
$$\int_\gamma dx+ dy = \int_0^1 d(t) + d(0) = \int_0^1 dt = 1$$
Thus $dx+ dy$ cannot be exact.