1:完整版的封装函数(增(insert),删(delete),改(update))
例:2:strcasecmp:比较两个数谁大谁小和是否相等(计算法:二进制) 例:strcasecmp("ab","ac")
ac比ab大3:array_shift():调用了方法是把第一个...
分类:
数据库 时间:
2014-05-17 14:53:42
阅读次数:
287
把下面页面封装名字为dbhelper.php 页面 1
封装dbhelper.php调用方法,增、删、查、改 数据库里表的数据1include("dbhelper.php");2 $r =
mysql_bind("select * from users where userName=? and pa...
分类:
数据库 时间:
2014-05-17 14:20:23
阅读次数:
313
'''
程序31】
题目:请输入星期几的第一个字母来判断一下是星期几,如果第一个字母一样,则继续
判断第二个字母。
1.程序分析:用情况语句比较好,如果第一个字母一样,则判断用情况语句或if语句判断第二个字母。
2.程序源代码:
'''
from sys import stdin
letter = stdin.read(1)
stdin.flush()
while letter != 'Y...
分类:
编程语言 时间:
2014-05-16 01:47:37
阅读次数:
272
【题目】
Given an integer, convert it to a roman numeral.
Input is guaranteed to be within the range from 1 to 3999.
【题意】
给定一个整数,将其表示成罗马数字
【思路】
罗马数字中只使用如下七个基值字母:M,D,C,L,X,V,I,分别用来表示1000、500、100、50、10、5、1。
罗马数组数规则:
基本数字Ⅰ、X 、C 中的任何一个,自身连用构成数目,或者放在大数的右边连用...
分类:
其他好文 时间:
2014-05-16 01:46:55
阅读次数:
312
cocos2dx的内存管理移植自Objective-C, 对于没有接触过OC的C++开发人员来说是挺迷惑的。不深入理解内存管理是无法写出好的C++程序的,我用OC和cocos2dx也有一段时间了,在此总结一下,希望对想用cocos2dx开发游戏的朋友有所帮助。
C++的动态内存管理一般建议遵循谁申请谁释放的原则,即谁通过new操作符创建了对象,谁就负责通过delete来释放对象。如果...
分类:
其他好文 时间:
2014-05-16 01:21:48
阅读次数:
283
最近参加了4、5场面试,总结一下竞聘oracle 开发岗位最长问到哪些问题:
1、delete 与 truncate 区别?
1)truncate 是DDL语句,delete 是DML语句;
2)truncate 速度远快于 delete;
原因是:当我们执行delete操作时所有表数据先被copy到回滚表空间,数据量不同花费时间长短不一。而truncate是直接删除数据不进回滚表...
分类:
数据库 时间:
2014-05-15 23:39:29
阅读次数:
450
String slctpsql="select id ,"+uid+","+ddd+","+score+",'"+mark+"' ,"+markid+" ,"+exam.getId()+" from Test_Paper where testBaseId=(select id from Test_Base where baseTestId="+judgemap.get(i).getId()+" a...
分类:
数据库 时间:
2014-05-15 20:36:45
阅读次数:
434
http://my.oschina.net/dillan/blog/133877python输出格式化及函数formathttp://my.oschina.net/dillan/blog/133877Python中的字符串格式化1.Python中将两个整数相除,默认结果是为整数的。但我们可以通过下面的方法,使得两个整数相除的结果为小数。from__future__importdivis..
分类:
编程语言 时间:
2014-05-15 18:44:25
阅读次数:
568
1、gem安装出现下面错误
root@ubuntu:/home/git/gitlab# sudo gem install bundler --no-ri --no-rdoc
ERROR: Could not find a valid gem 'bundler' (>= 0), here is why:
Unable to download data from https...
分类:
其他好文 时间:
2014-05-15 18:19:48
阅读次数:
304
we has introduced advanced technology from home
and abroad, and combined specific industrial and mining conditions of related
industries in China. Wit...
分类:
其他好文 时间:
2014-05-15 17:53:13
阅读次数:
353