九九乘法表 int?main()
{
int?i,j;
for(i=1;i<=9;i++)
{
for(j=1;j<=i;j++)
printf("%d*%d=%d??",i,j,i*j);
printf("\n");
}
system("pause");
return?0;
} 打印菱形两角 *
*?*?
*?*?*
*...
分类:
其他好文 时间:
2015-08-05 22:49:39
阅读次数:
157
class Solution
{
public:
ListNode* mergeTwoLists(ListNode* l1, ListNode* l2)
{
if (l1 == NULL)
{
return l2;
} if (l2 == NULL)...
分类:
其他好文 时间:
2015-08-05 22:31:39
阅读次数:
209
/*注意各个符号的优先级,建议看懂符号的优先级后在看代码。有助于你理解:以下为代码*/
#include
#include
#include
#include
#include
using namespace std;
double zhao1(double a,char op,double b)
{
switch(op)
{
case '+':return a+b;...
分类:
其他好文 时间:
2015-08-05 22:28:07
阅读次数:
262
Given two strings s and t, write a function to determine if t is an anagram of s.
For example,
s = "anagram", t = "nagaram", return true.
s = "rat", t = "car", return false.
Note:
You may a...
分类:
其他好文 时间:
2015-08-05 22:28:00
阅读次数:
113
在java线程并发处理中,关键字volatile的主要作用是使变量在多个线程间可见。那么volatile到底该怎么用了?我们首先来看一段代码:
public class MyThread1 implements Runnable {
private boolean istag = true;
public boolean isIstag() {
return istag;
}
...
分类:
其他好文 时间:
2015-08-05 22:20:30
阅读次数:
191
public class WaterImgHandler:IHttpHandler 2 { 3 4 public bool IsReusable 5 { 6 get { return false; } 7 } 8 9...
分类:
其他好文 时间:
2015-08-05 22:02:37
阅读次数:
97
源:http://www.liaoxuefeng.com1、注意这里用了一个“创建一个匿名函数并立刻执行”的语法:(function (x) { return x * x;})(3); // 9理论上讲,创建一个匿名函数并立刻执行可以这么写:function (x) { return x * ...
分类:
编程语言 时间:
2015-08-05 21:48:35
阅读次数:
143
public class ProtectImgHandler:IHttpHandler 2 { 3 public bool IsReusable 4 { 5 get { return false; } 6 } 7 8...
分类:
其他好文 时间:
2015-08-05 21:47:03
阅读次数:
83
1.代理 UITableViewDelegate,UITableViewDataSource2.实现代理- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{ return 1; //分区数,默认为1}- (NSI...
分类:
其他好文 时间:
2015-08-05 21:42:13
阅读次数:
103
当作复习。。。(1)将华氏度 换算成 摄氏度,公式:℃=(5/9)(?°F-32)#include int transformTemprature(int F){ //`C=(5/9)(?`F-32) return (int)(5 * (F-32) / 9);}int m...
分类:
编程语言 时间:
2015-08-05 21:39:19
阅读次数:
153