2012年2月17日

POJ 3683 Priest John's Busiest Day

摘要: 2-SAT经典问题#include<cstdio> #include<string.h> #include<math.h> #include<stack> #define N 2010 #define M N*N*3 using namespace std; struct edge{ int v,next; }edge[M]; int n; int s[N],t[N],seq[N]; int cnt,head1[N],head2[N],head3[N]; int scc,index,dfn[N],low[N],belong[N]; int top 阅读全文

posted @ 2012-02-17 22:06 c语言源码 阅读(190) 评论(0) 推荐(0) 编辑

(转载)C#richTextBox中的内容换行

摘要: 要让一个TextBox显示多行文本就得把它的Multiline属性设置为true,可是如果你是要把TextBox的Text属性设置多行文本时可能会遇到点麻烦,也许你会想到直接加一个换行符"\n":TextBox1.Text = "First Line\nSecond Line\nThird Line";可是实际运行的时候你却发现它始终不会换行,显示的结果为"First LineSecond LineThirdLine"。其实主要是因为TextBox运行在Windows上。Windows能够显示的换行必须由两个字符组成:"\r 阅读全文

posted @ 2012-02-17 19:21 c语言源码 阅读(10244) 评论(0) 推荐(0) 编辑

导航