摘要: 1. 不要把int值传參给textview控件的setText函数,由于当你传int类型的时候,它会以为要传的是一个resource的id。 这样的时候报的错是:java.lang.RuntimeException: Unable to start activity ComponentInfo{co 阅读全文
posted @ 2017-05-06 13:46 zhchoutai 阅读(93) 评论(0) 推荐(0)
摘要: 1、问题:toString()没搞懂? int a = 1; Integer aa = new Integer(a); //这是实现的过程 System.out.println("Hello," + aa.toString()); //得Hello,1 int b = 1; System.out.p 阅读全文
posted @ 2017-05-06 12:48 zhchoutai 阅读(198) 评论(0) 推荐(0)
摘要: Longest Ordered Subsequence Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 32192 Accepted: 14093 Description A numeric sequence of ai is o 阅读全文
posted @ 2017-05-06 11:20 zhchoutai 阅读(201) 评论(0) 推荐(0)
摘要: 【题意简述】:这个是别人的博客,有清晰的题意描写叙述。和解题思路,借助他的想法,能够非常好的解决问题! 【分析】:贪心?模拟?见代码 //216K 16Ms #include<iostream> using namespace std; int main() { int ans,a,b,c,d,e, 阅读全文
posted @ 2017-05-06 09:40 zhchoutai 阅读(122) 评论(0) 推荐(0)
摘要: 客户常常提出这种需求,当用户选择某一时间时。图表中显示所选时间之前一年的数据。以下是我的方法。如有不当,请多不吝赐教: 数据准备例如以下所看到的: SalesData: LOAD Num(ID) as ID, Date(Date) as Date, Month, Num(Year) as Year, 阅读全文
posted @ 2017-05-06 08:48 zhchoutai 阅读(679) 评论(0) 推荐(0)