Ultraviolet photometry from the Orbiting Astronomical Observatory. XXIII - The resonance lines of triply ionized carbon and silicon in the spectra of hot stars