#includeusing namespace std;int main(){ long long sum1,sum2,sum3,sum4; long int a,b; cin>>a>>b; sum1=a+b; sum2=a-b; sum3=a*b; sum4=a/b; cout<<sum1<<en...
分类:
其他好文 时间:
2014-10-09 15:03:03
阅读次数:
185
/** * 友好的时间显示 * * @param int $sTime 待显示的时间 * @param string $type 类型. normal | mohu | full | ymd | other * @param string $a...
分类:
Web程序 时间:
2014-10-09 14:55:43
阅读次数:
228
1 class Person { 2 private String name; 3 private int age; 4 public String getName() { 5 return this.name; 6 } 7 8 p...
分类:
其他好文 时间:
2014-10-09 14:03:43
阅读次数:
156
首先在mysql中创建两个表如下:mysql> create table user( id int,name varchar(8) , primary key(id));Query OK, 0 rows affected (0.01 sec)mysql> create table addr(id i...
分类:
数据库 时间:
2014-10-09 13:56:53
阅读次数:
246
创建CListBox对象 CListBox m_ListBox;关联控件 ,同时注意行数从 0 开始计算1、向控件中添加内容 int AddString(LPCTSTR lpszItem); 如:m_ListBox.AddString(_T("123"));2、指定插入位置 int Inse...
分类:
其他好文 时间:
2014-10-09 13:53:23
阅读次数:
110
当 $x>0$ 时, 由 $$\beex \bea \int_0^\infty e^{-x\sex{t+\frac{1}{t}}}\rd t &\leq \int_0^1 e^{-\frac{x}{t}}\rd t +\int_1^\infty e^{-xt}\rd t\\ &=\int_1^\in...
分类:
其他好文 时间:
2014-10-09 13:41:13
阅读次数:
204
------Java培训、Android培训、iOS培训、.Net培训、期待与您交流! -------将数据以一定的格式写到文件,等到需要用的时候直接按照原来的形式读出来,这种方式叫做归档#import int main(int argc, const char * argv[]) { @au...
分类:
其他好文 时间:
2014-10-09 13:40:23
阅读次数:
181
将一串很长的字符串中的baidu改成等长的单词(hello)问题所在 用宏定义定义了一个值为100000的maxn,字符串的长度为10000,但是不知道满不满足百度笔试题目的很长的字符串#include#include#define maxn 100000int main(){ long int l...
分类:
其他好文 时间:
2014-10-09 13:36:43
阅读次数:
177
1:关键字abstractdoimplementsprivatethrowboolean doubleimportprotectedthrowsbreak elseinstanceofpublic transientbyteextends int return truecasefalse inter...
分类:
编程语言 时间:
2014-10-09 13:26:23
阅读次数:
198
关于约瑟夫环问题,我们可以从两种思路去实现,一种是用数组,另一种是采用链表。用数组方法实现代码: 1 #include 2 #include 3 #include 4 #define M 8 5 int find(int *arr, int len); 6 int main(int argc,...
分类:
其他好文 时间:
2014-10-09 13:09:33
阅读次数:
211