摘要: 1.Resources.resx中的访问修饰符改为Public;2. xaml文件中映射命名空间:xmlns:res="clr-namespace:TestString.Resources"; (Resources.resx文件放在Resources目录下)3. 需要用到字符串的地方通过下列方式引用:<TextBlock Text="{x:Static res:Resources.String1}" />; (String1在Resources.resx中定义其具体的内容) 阅读全文
posted @ 2013-03-14 14:17 tszhao 阅读(802) 评论(0) 推荐(0) 编辑
摘要: css中定义.CenterDiv { text-align:center }在如下代码中,并不能使table居中<div class="CenterDiv"> <table> ... </table></div>需要给table加入margin:auto样式,即<table style="margin:auto"> ...</table> 阅读全文
posted @ 2013-01-20 18:32 tszhao 阅读(195) 评论(0) 推荐(0) 编辑
摘要: //double_queue.htemplate <typename T>class DoubleQueue{public: DoubleQueue(int size=10); ~DoubleQueue(); void EnQueue(T item, int end); void DeQueue(int end); bool IsEmpty(); bool IsFull(); void List(int end);private: T* data_; int end1_; int end2_; int size_;};templ... 阅读全文
posted @ 2012-12-04 17:03 tszhao 阅读(156) 评论(0) 推荐(0) 编辑