转载:http://blog.csdn.net/linquidx/article/details/5916701#t5写好程序,用gcc编译,带上-pg参数,然后运行以后分析gmon.out文件:命令exp:
gprof ./test-main ./gmon.out >1.log 在1.log中会生...
分类:
编程语言 时间:
2014-05-09 23:58:07
阅读次数:
1713
class Student { private string _name; public int
Age = 0; public static void Test() { Student stu = new ...
分类:
其他好文 时间:
2014-05-09 20:27:01
阅读次数:
305
一:mysql创建一个修改表字段的存储过程drop procedure if exists
pr_test;create procedure pr_test()begin declare var int; declare var1 int; set
var=416; set var1=420; wh...
分类:
数据库 时间:
2014-05-09 20:17:20
阅读次数:
460
/*验证邮箱格式*/ function checkEmail(strEmail){
if(!/^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/ .test(strEmail)){ return
false; } else ...
分类:
Web程序 时间:
2014-05-09 20:02:19
阅读次数:
482
Linux环境下使用python调用C的printf例子:#!/usr/bin/env
python2.7#-*- coding:utf-8 -*-from ctypes import *def test(): #libc =
cdll.LoadLibrary("libc.so.6") ...
分类:
编程语言 时间:
2014-05-09 19:51:59
阅读次数:
469
using System;using System.IO;using
System.Security.Cryptography;using System.Text;namespace Test{ public class
MD5Code { /// /// ...
分类:
其他好文 时间:
2014-05-09 19:43:27
阅读次数:
277
elipse 背景色
1、打开window->Preference,弹出Preference面板
2、展开General标签,选中Editors选项,展开。
3、选中 Test Editors,右边出现Test Editors面板。
面板中有这样一个选项:Appearance color options; 其中是各种板块颜色的设置,其中有一项是backgrou...
分类:
其他好文 时间:
2014-05-09 14:11:31
阅读次数:
358
i++和++i使用的不同点在于一个是程序完毕后自增,一个是程序开始前自增。不论是Java还是C++,对i++类的问题总是很多。这里要注意运算符的优先级问题。例1:下列程序的输出结果是()。
1 public class Test { 2 3 public static void main(...
分类:
其他好文 时间:
2014-05-09 08:41:56
阅读次数:
289
package com.test.thread;public class TestThread {
public static void main(String[] args) { TestThread testThread = new
TestThread(); ...
分类:
编程语言 时间:
2014-05-09 08:20:06
阅读次数:
334
问题如题,这个问题困扰了我好几天,今天终于解决了,感谢[1]。首先,我要做的是android手机和电脑进行蓝牙通信,android发一句话,电脑端程序至少就要做到接受到那句话。android端发送信息的代码如下:try
{ Log.i("Test", "begin saying hello wor....
分类:
其他好文 时间:
2014-05-09 08:12:56
阅读次数:
505