You can use the altera_attribute to make these assignments in the code. Search on altera_attribute in the first book of the Quartus II handbook:
http://www.altera.com/literature/hb/qts/qts_qii5v1.pdf (e.g. page 8-71)
I really don't recommend doing this. Pin assignments are not relevant to the HDL(what if you move to a different part, for example), and would recommend doing it in the Pin Planner(which will put the assignments in the .qsf). There is a lot more information you have available when doing it this way, rather than manually adding it to the code with no feedback process.