题目:已知三个整型数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常用类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
BeginReceive 与endReceive
必须成对出现,如果BeginReceive没有及时调用endReceive,可能会出现数据被从buffer中读取二次,如果在下面这行代码下面加入别的代码就会出现被处理二次的结果
如下public void BeginReceive(SessionLi...
分类:
其他好文 时间:
2014-05-01 04:27:44
阅读次数:
428
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
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