The symptoms seem to indicate that you have pulmonary embolism, which can cause blood clots in your lungs, which can threaten your life, and it's good to get medical attention immediately.
Doctor, sharp chest pain, leg pain, cold sweat, back pain, coughing continues, what's the problem?