摘要: struts2动态方法调用三种方式:在struts配置文件中不指定方法。1,URL?method:methodnameeg:http://localhost:8080/web02/HelloWorld/hello.action?method:addInput2,URL?action_name!method_name.actioneg:http://localhost:8080/web02/HelloWorld/hello!addInput.actionTIP:这两种方式,记住要在struts.xml配置文件里面设置相应常量项将struts.enable.DynamicMethodInvocat 阅读全文
posted @ 2013-11-05 21:10 chenxiaojian 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 将matlab程序转换成C++的时候,矩阵运算真让人头疼,分享一下矩阵类的C++实现。头文件Matrix.h 1 //Matrix.h 2 //矩阵类定义 3 4 #ifndef MATRIX_H 5 #define MATRIX_H 6 #include 7 #include 8 //using namespace std; 一般头文件中使用完全限定域名字,而不是包含命名空间,防止重复包含头文件时造成的资源浪费 9 10 class Matrix 11 {12 //从流中读入矩阵13 friend std::istream& operator >> (std::istr. 阅读全文
posted @ 2013-10-30 18:15 chenxiaojian 阅读(643) 评论(0) 推荐(0) 编辑