1. //取得结果集中行的数目示例:$count = 
mysql_num_rows($result1);2. //小括号里odd代表奇数,even代表偶数 示例:tr:nth-child(odd){ 
background: #cad9ea; }3.//Mysql数据库li...
                            
                            
                                分类:
其他好文   时间:
2014-07-22 23:11:33   
                                阅读次数:
423
                             
                         
                    
                        
                            
                            
                                题目: 如数: 1 1 2 3 5 8 13 21 34 55 ......序号: 0 1 2 
3 4 5 6 7 89 ...... 由用户输入序号,输出对应的数值。效果:实现代码:#include int bian(int num);//static 
int shu[100]={1,1};int...
                            
                            
                                分类:
其他好文   时间:
2014-07-22 23:10:13   
                                阅读次数:
353
                             
                         
                    
                        
                            
                            
                                这题就是 要你找出一个ASCII 的值x使得 : 
x^e%n==num(当前输入的数,e条件已给出)zsd:1: ASCII0-255可以枚举2: =a^11 11=1011int pow2( int a, 
int b ){ int r = 1, base = a; while( b...
                            
                            
                                分类:
其他好文   时间:
2014-05-01 16:22:43   
                                阅读次数:
326
                             
                         
                    
                        
                            
                            
                                题意:给你一个大于4的整数m和一个真分数a/b,求最佳素数对p、q,使得a/b#includeusing namespace std; int main() { 
int prime[2000],k; int num[10001]; int i,l; int ...
                            
                            
                                分类:
其他好文   时间:
2014-05-01 14:43:18   
                                阅读次数:
325
                             
                         
                    
                        
                            
                            
                                1.对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 
涉及的列上建立索引。2.应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索引而进行全表扫描,如:select id from 
t where num is null可以在num...
                            
                            
                                分类:
数据库   时间:
2014-05-01 13:23:55   
                                阅读次数:
443
                             
                         
                    
                        
                            
                            
                                innodb的事务隔离级别是可重复读级别且innodb_locks_unsafe_for_binlog禁用,也就是说允许next-key 
lockCREATETABLE`LockTest`(`order_id`varchar(20)NOTNULL,`id`bigint(20)NOTNULLAUTO_...
                            
                            
                                分类:
数据库   时间:
2014-05-01 12:39:14   
                                阅读次数:
645
                             
                         
                    
                        
                            
                            
                                参考链接:http://www.cnblogs.com/dyingbleed/archive/2012/12/03/2800007.html 
http://blog.csdn.net/way_ping_li/article/details/8925936
                            
                            
                                分类:
移动开发   时间:
2014-05-01 12:38:33   
                                阅读次数:
438
                             
                         
                    
                        
                            
                            
                                C++中,申请字符串数组可用new实现:char ** list = new 
char*[MAX_NUM];for (int i = 0; i,则通过 if (list[qid] != “”) 检测是否初始化。
                            
                            
                                分类:
编程语言   时间:
2014-05-01 11:46:12   
                                阅读次数:
587
                             
                         
                    
                        
                            
                            
                                ACM    BFS     Open the Lock     hdu1195     双向BFS...
                            
                            
                                分类:
其他好文   时间:
2014-04-29 13:35:21   
                                阅读次数:
359
                             
                         
                    
                        
                            
                            
                                在windows下运行VMware创建的虚拟机时出错,无法运行。
错误提示大概为:
Failed to lock the file
Cannot open the disk 'D:\Windows Server 2008 R2 x64.vmdk' or one of the snapshot disks it depends on.
解决方法:
       把虚拟机文件夹里【.lck】...
                            
                            
                                分类:
其他好文   时间:
2014-04-29 13:28:21   
                                阅读次数:
366