码迷,mamicode.com
首页 >  
搜索关键字:c++ void*    ( 63897个结果
C语言每日一题之No.2
题目:已知三个整型数8,12,6,按公式s=a+b*c计算,并显示结果思路:定义三个整型变量a,b,c 定义一个变量s用来保存运算结果 输出程序: 1 #include 2 3 void main() 4 { 5 int a = 8; 6 int b = 12; 7 ...
分类:编程语言   时间:2014-05-01 09:26:46    阅读次数:347
冒泡排序法
1 /// 2 /// 冒泡排序法-for循环 3 /// 4 /// 5 private static void BubbleSort(int[] array) 6 { 7 ...
分类:其他好文   时间:2014-05-01 09:19:38    阅读次数:279
java开始到熟悉63-65
本次内容:java常用类1、包装类 1 package array; 2 3 public class wrapperclass { 4 public static void main(String[] args) 5 { 6 Integer i=new Inte...
分类:编程语言   时间:2014-05-01 09:16:28    阅读次数:384
遍历文件
void listFiles(){ namespace fs = boost::filesystem; boost::filesystem::path path=boost::filesystem::current_path(); fs::directory_iterator item_beg...
分类:其他好文   时间:2014-05-01 05:23:07    阅读次数:310
Socket通信中的 BeginReceive与EndReceive
BeginReceive 与endReceive 必须成对出现,如果BeginReceive没有及时调用endReceive,可能会出现数据被从buffer中读取二次,如果在下面这行代码下面加入别的代码就会出现被处理二次的结果 如下public void BeginReceive(SessionLi...
分类:其他好文   时间:2014-05-01 04:27:44    阅读次数:428
Qt无边框,可移动窗口
QPoint dragPosition;void MainWindow::mousePressEvent(QMouseEvent *event){if(event->button()==Qt::LeftButton){dragPosition=event->globalPos()-frameGeom...
分类:移动开发   时间:2014-05-01 04:14:18    阅读次数:464
快速排序
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
计数排序
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!