The capacitor of capacitance C can be charged (with the help of a resistance R) by a voltage source V, by closing switch S1 while keeping switch S2 open. The capacitor can be connected in series with an inductor ‘L’ by closing switch S2 and opening S1.