I would like to create a table with some columns' width specified, while the text in those columns should be centered both horizontally and vertically. I found out that
\usepackage{array}
\begin{tabular}{| c | c | m{5cm} |}
vertically centers the text in the last column, but justifies it horizontally (like text in normal paragraphs).
Update: With Jake's method, it seems both \\
and \hline
cause an error. How to fix it?
\arraybackslash
is needed.