Simultaneously transmitting and reflecting reconfigurable intelligent surface (STAR-RIS) is a promising technology that aids in achieving full-space coverage on both sides of the surface, by splitting the incident signal into transmitted and reflected signals. This paper investigates the resource allocation problem in a STAR-RIS-assisted multi-carrier communication networks. To maximize the system sum-rate, a joint optimization problem comprising of the channel assignment, power allocation, and transmission and reflection beamforming at the STAR-RIS for orthogonal multiple access (OMA) is first formulated. To solve this challenging problem, we first propose a channel assignment scheme utilizing matching theory and then invoke the alternating optimization-based method to optimize the resource allocation policy and beamforming vectors iteratively. Furthermore, the sum-rate maximization problem for non-orthogonal multiple access (NOMA) with flexible decoding orders is investigated. To efficiently solve it, we first propose a location-based matching algorithm to determine the sub-channel assignment, where a transmitted user and a reflected user are grouped on a sub-channel. Based on this <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">transmission-and-reflection</i> sub-channel assignment strategy, a three-step approach is proposed, which involves the optimization of decoding orders, beamforming-coefficient vectors, and power allocation, by employing semidefinite programming, convex upper bound approximation, and geometry programming, respectively. Numerical results unveil that: 1) For OMA, a general design that includes the same-side user-pairing for channel assignment is preferable, whereas for NOMA, the proposed transmission-and-reflection scheme can achieve comparable performance to the exhaustive search-based algorithm. 2) The STAR-RIS-aided NOMA network significantly outperforms networks employing conventional RISs and OMA.