@A.P.'s answer seems to be this: the set of functions "generated by" piecewise-defined ones is large enough (if you allow many pieces) to encompass all functions. So all functions are piecewise defined, and so all have the potential to be disconcontinuous according to OP's scheme.
I think that this logic is backwards. Rather we want to ask: for a small set of "generating" functions (polynomials, sines, cosines, log, exp, perhaps a few others) and a small set of generating "rules" (addition, subtraction, products, composition, others?), does the set of functions so generated consist entirely of continuous functions?
Stated in this form, the answer is "yes", at least in a limited sense.
Claim: The set of functions generated by finitely many combinations of basic functions consists entirely of functions that are continuous on their domain,
where "basic" functions are polynomials, sines, cosines, log, exp, and "combinations" include addition, subtraction, multiplication, and composition.
The proof is straightforward induction: a combination of 1 of any of the functions above is continuous. Suppose that every combination of $n$ of them is continuous, and that $f$ is a combination of $n+1$ of them. Then $f = g \star h$, where $h$ is a combination of $n$ basic functions, and hence continuous, and $g$ is a basic function, and hence continuous, and $\star$ represents one of the combination operations. But the sum, difference, and product of continuous functions is a continuous function on the intersection of their domains, and a composition $p \circ q$ is continuous on $q^{-1}(D)$, where $D$ is the domain of $p$.
Note that the "closure" of this generated set -- functions defined by infinite compositions or sums, etc. -- might well contain non-continuous functions, as @sintetico's example of the square wave demonstrates.
One last question concerns the tangent. Many folks have said it's just $sin/cos$, and therefore a quotient. I think it's also (maybe) reasonable to define
$$
\arctan(x) = \int_0^x \frac{1}{1+t^2} ~dt,
$$
observe that $\arctan$ is strictly increasing and differentiable, and therefore has a differentiable inverse that we can call $\tan$.
Of course, this only defines $\tan$ on the interval $-\pi/2 < x < \pi/2$, and this function is, indeed, continuous on its domain. But in general, if you allow "inversion" among the "generating operations", the question becomes somewhat more subtle, esp. in the matter of defining the domain of the inverse precisely.