码迷,mamicode.com
首页 >  
搜索关键字:java学习笔记 main    ( 66244个结果
java4android (练习使用if else结构)
public class Text01{ public static void main(String args[]){ int score = -1; if(score>85&&score75&&score60&&score=0){ Syst...
分类:移动开发   时间:2014-05-18 19:23:36    阅读次数:260
JAVA中获取当前系统时间
一. 获取当前系统时间和日期并格式化输出: import java.util.Date; import java.text.SimpleDateFormat; public class NowString { public static void main(String[] args) { Simp...
分类:编程语言   时间:2014-05-18 19:18:13    阅读次数:280
UVA 11270 Tiling Dominoes(插头DP)
题目链接:11270 - Tiling Dominoes 和POJ 2411一样的题目,试着用插头DP写了下 代码: #include #include #include using namespace std; int n, m, pre = 0, now = 1; long long dp[2][2222]; int main() { while (~scanf("%d%d",...
分类:其他好文   时间:2014-05-18 14:44:37    阅读次数:264
C语言深度剖析自测题8解析
#include int main(void) { int a[5] = {1, 2, 3, 4, 5}; int* ptr1 = (int*)(&a + 1); int* ptr2 = (int*)((int)a + 1); printf("%x, %x\n", ptr1[-1], *pt...
分类:编程语言   时间:2014-05-18 02:49:18    阅读次数:271
apache的httpd.conf翻译
# This is the main Apache HTTP server configuration file. It contains the这是Apache HTTP Server的主配置文件。它包括了# configuration directives that give the serve...
分类:其他好文   时间:2014-05-18 02:32:54    阅读次数:272
反射用法
static void Main(string[] args) { var retul = GetListData("wang"); } public static List GetListData(string name) where ...
分类:其他好文   时间:2014-05-18 02:06:10    阅读次数:243
poj-3627
题意:输入一个N和B N为牛的个数,B为高度,然后输入N头牛,为最少多少头牛加起来高度大于B解题思路:排序,贪心具体代码:#include#include#includeusing namespace std;int main(){ int n,b; int num[20005]; ...
分类:其他好文   时间:2014-05-18 00:11:23    阅读次数:227
poj-3438
#include#include#include#includeusing namespace std;int main(){ int t; string s; cin>>t; while(t--) { cin>>s; int ls=s.le...
分类:其他好文   时间:2014-05-18 00:04:05    阅读次数:246
阿拉伯数字转换成中文大写
package Demo;public class Money{ public static void main(String args[]) { Money mon = new Money(); System.out.println(mon.change("124")); } /...
分类:其他好文   时间:2014-05-17 23:22:10    阅读次数:412
C++ primer 第十章
关联容器,完全没用过,一直想用,FUC,本文只介绍初级使用方式,不能贪多#include#include#include#includeusing namespace std;typedef pair Auth;int main(){ map m; set s; Auth p1,p2,p3,p4; ...
分类:编程语言   时间:2014-05-17 22:46:09    阅读次数:358
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!