First, you need to realize there is a difference between cussing and swearing, however in America, it is sometimes hard to tell and boils down to context. Cussing is considered the poor or uneducated man's language; swearing/cursing is making/taking an oath against/for someone/something. Swearing and cursing are verbal agreements that, to God, hold just as much weight as a signed agreement in court.
Ephesians 4:29 - Do not let any unwholesome talk come out of your mouths, but only what is helpful for building others up according to their needs, that it may benefit those who listen.
James 3:9-12 - With the tongue we praise our Lord and Father, and with it we curse men, who have been made in God's likeness. Out of the same mouth come praise and cursing. My brothers, this should not be. Can both fresh water and salt water flow from the same spring? My brothers, can a fig tree bear olives, or a grapevine bear figs? Neither can a salt spring produce fresh water.
That being said, I suggest avoiding the usage of such language. There are ways to imply foul language in writing - "Ross let loose a volley of obscenities"; I do not recommend anything audible - so nix it for music, plays, or a movie.