问题及代码:
#include
#include
using namespace std;
int main()
{
fstream outfile,infile; //定义文件流对象
outfile.open("data.dat",ios::out); //以输出方式打开文件 data,dat
outfile<<"111111111...
分类:
其他好文 时间:
2015-06-10 08:54:10
阅读次数:
113
关于连加和连减:http://blog.csdn.net/ieayoio/article/details/46431843
下面是一段普遍都了解的代码:
public static void main(String[] args) {
int a=3;
System.out.println(a++ +1);//4
System.out.println(a);//4
System...
分类:
编程语言 时间:
2015-06-09 23:47:01
阅读次数:
717
1、grep家族grep: Global search Regular Expression(RE) and Print out the linegrep家族包括grep、egrep和fgrep,egrep和fgrep和grep只有很小的不同。egrep是grep的扩展,支持更多的元字符,等效于gr...
分类:
其他好文 时间:
2015-06-09 23:33:16
阅读次数:
149
Given an array of integers and an integer k, find out whether there there are two distinct indices i and j in the array such that nums[i] = nums[j] an...
分类:
编程语言 时间:
2015-06-09 23:20:17
阅读次数:
134
先看一段代码:
public static void main(String[] args) {
System.out.println(3 + +3);// 6
System.out.println(3 - -3);// 6
System.out.println(3 + + +3);// 6
System.out.println(3 - - -3);// 0
}
其实连加和连...
分类:
编程语言 时间:
2015-06-09 21:57:21
阅读次数:
124
out和ref的用法和区别函数参数默认是值传递,也就是“复制一份”看个栗子:static void Main(string[] args) { int age = 10; IncAge(age); Console.Wri...
分类:
其他好文 时间:
2015-06-09 21:29:09
阅读次数:
122
Oracle中函数/过程返回结果集的几种方式: 以函数return为例,存储过程只需改为out参数即可,在oracle 10g测试通过. (1) 返回游标:return的类型为:SYS_REFCURSOR之后在IS里面定义变量:curr SYS_REFCURSOR;最后在函数体中写: open .....
分类:
数据库 时间:
2015-06-09 19:34:49
阅读次数:
164
1.method 1: use "acc">acc hello.acc world.mc gcc hello.c world.c >./a.out2.method 2: use"tacc">tacc foo.c fooac.acc>./a.out>tacc foo.c fooac.acc -o t....
分类:
其他好文 时间:
2015-06-09 19:22:22
阅读次数:
71
Java作为一门优秀的面向对象的程序设计语言,正在被越来越多的人使用。在实际开发中碰到的一些Java语言的容易被人忽视的细节,下面分享一下希望能给正在学习Java语言的人有所帮助。1,位移运算越界怎么处理考察下面的代码输出结果是多少?inta=5;System.out.println(a<<33);...
分类:
编程语言 时间:
2015-06-09 19:02:00
阅读次数:
126
preface: 这是个悲伤的故事。python基础没学好,容我写篇博客压压惊,不多说了,直接上代码。
一、复制运算,连等会让所有对象共享一个地址。还是不要偷懒的好。
In [4]: a = b = c = {}
In [5]: a["abc"] = 2
In [6]: b
Out[6]: {'abc': 2}
In [7]: a = {}
In [8]: b = {}
In [9]: c...
分类:
编程语言 时间:
2015-06-09 17:25:08
阅读次数:
132