Let $X,\tau$ be a space and let $B$ be a basis for $\tau$. Prove that $X$ is compact if and only if every cover of $X$ by members of $B$ has finite subcover.
here is what I got
<=
Assume that every cover of $X$ by members of $B$ has finite subcover. Since $B$ be a basis for $\tau$, $B$ is open cover for $X$. From our assumption, $B$ contain finitely many subcover of $X$, so $X$ is compact.
I'm not sure I know how to argue the converse.