码迷,mamicode.com
首页 >  
搜索关键字:java学习笔记 main    ( 66244个结果
全排列
#include#include#includeusing namespace std;int main(){ int n,i; char a[100000]; cin>>a; sort(a,a+strlen(a)); do{ cout<<a<<endl; }while(next_permut...
分类:其他好文   时间:2014-05-01 06:20:37    阅读次数:368
Memcached source code analysis (threading model)--reference
Look under the start memcahcedthreadingprocessmemcached multi-threaded mainly by instantiating multiple libevent, are a main thread and n workers thre...
分类:其他好文   时间:2014-05-01 06:15:27    阅读次数:356
c 函数及指针学习 8
联合体12345678910111213#include union sa{double a;int b;};int main(){union sa ssa;printf("%d \n",sizeof(union sa));}联合体的声明,定义,与结构体一样。联合体的长度为最长成员的长度。联合体的初...
分类:其他好文   时间:2014-05-01 04:08:15    阅读次数:357
快速排序
package algorithm.sort;public class QuickSort { public static void main(String[] args) { int[] a = new int[] {5, 3, 7, 2, 1, 4, 9, 8, 6, 1}; sort(a); ...
分类:其他好文   时间:2014-05-01 03:33:20    阅读次数:330
SCJP_104——题目分析(2)
3.public class IfTest{ public static void main(String args[]){ int x=3; int y=1; if(x=y) System.out.println("Not eq...
分类:其他好文   时间:2014-05-01 03:32:18    阅读次数:320
坑爹系列:sizeof运算符
C语言里的sizeof关键字用于返回变量的类型宽度(变量所占的字节个数)。例如:#include int main() {int i = 0;int size = sizeof i;printf("size of i is: %d",size);return 0;}会在控制台打印出int类型的变量i...
分类:其他好文   时间:2014-05-01 03:29:15    阅读次数:316
计数排序
package algorithm.sort;public class CountingSort { public static void main(String[] args) { int[] a = new int[] {5, 3, 7, 2, 1, 4, 9, 8, 6, 1}; int[] ...
分类:其他好文   时间:2014-05-01 03:25:05    阅读次数:252
堆排序
package algorithm.sort;public class HeapSort { public static void main(String[] args) { int[] a = new int[] {5, 3, 7, 2, 1, 4, 9, 8, 6, 1}; sort(a); p...
分类:其他好文   时间:2014-05-01 03:24:04    阅读次数:332
explicit浅谈
在C++中,explicit关键字主要用于防止隐式转换,用于修饰构造函数、复制构造函数。例如有一个类:class A { public: A( int count ) : m_data( count ){} private: int m_data; };int main() { ...
分类:其他好文   时间:2014-05-01 03:03:36    阅读次数:311
Memcached source code analysis -- Analysis of change of state--reference
This article mainly introduces the process of Memcached, libevent structure of the main thread and worker thread based on the processing of the connec...
分类:其他好文   时间:2014-05-01 02:44:07    阅读次数:571
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!