//导出到word
public void exportWord(ActionMapping actionMapping, ActionForm actionForm,
HttpServletRequest request, HttpServletResponse response) throws Exception {
DBTool tool = null ;...
分类:
编程语言 时间:
2014-05-13 23:57:53
阅读次数:
509
导入两个包:
import android.view.Window;
import android.view.WindowManager;
public class MainActivity extends ActionBarActivity {@Override protected void onCreate(Bundle savedInstanceState) { super.onCrea...
分类:
移动开发 时间:
2014-05-13 23:19:51
阅读次数:
509
self.isOpen = [NSMutableArray array];
for (int j = 0; j
[self.isOpen addObject:[NSNumber numberWithInt:0]];
}
-(void)buttonClick:(UIButton*)button
{
NSNumber *num ...
分类:
其他好文 时间:
2014-05-13 08:12:11
阅读次数:
264
1、定义C函数:
void dynamicMethodIMP(id
self, SEL _cmd)
{
NSLog(@"蜗牛也疯狂");
}
2、重写函数+(BOOL)resolveInstanceMethod:(SEL)sel
+(BOOL)resolveInstanceMethod:(SEL)sel
{
class_addMethod([self
...
分类:
移动开发 时间:
2014-05-13 08:09:05
阅读次数:
412
一共设置了三个优先级,第一个正常优先级,第二个低优先级,第三个高优先级运行效果:代码: 1
void CTestProgressDlg::OnBnClickedBtnStart() 2 { 3 // TODO: 在此添加控件通知处理程序代码 4 //
创建线程 5 m_hTh...
分类:
其他好文 时间:
2014-05-12 21:56:14
阅读次数:
504
其题目如下:#pragma pack(2)class A{public: int
i; union U { char buff[13]; int i; }u; void foo() { } typedef char*
(*f)(void*); enum{red, green, blue} ...
分类:
其他好文 时间:
2014-05-12 21:18:19
阅读次数:
321
来源:孙鑫老师c++教程第7集在创建非模态对话框时void
CMyboleView::OnDialog(){// TODO: Add your command handler code here方法一TestDlg
*ptdlg=new TestDlg(this);ptdlg->Create(IDD...
分类:
其他好文 时间:
2014-05-12 21:15:11
阅读次数:
309
在并发编程时,一般使用runnable,然后扔给线程池完事,这种情况下不需要线程的结果。所以run的返回值是void类型。如果是一个多线程协作程序,比如菲波拉切数列,1,1,2,3,5,8...使用多线程来计算。但后者需要前者的结果,就需要用callable接口了。callable用法和runnab...
分类:
其他好文 时间:
2014-05-12 20:54:47
阅读次数:
491
今天想使用String.Format,和平时的用法不一样。直接上代码: [Test]
public void TestMethod6() { string A = "A"; string B = "B"; ...
分类:
其他好文 时间:
2014-05-12 19:38:59
阅读次数:
296
import javax.swing.*;import java.awt.*; public
class demo_1{ public static final int WIDTH=300; public static final int
HEIGHT=200; public static void...
分类:
编程语言 时间:
2014-05-12 19:30:50
阅读次数:
361