摘要: 在c++中class和struct用法是相同的,只有一个区别成员的默认属性,struct是public,class是private。 阅读全文
posted @ 2020-04-09 18:10 凌青语 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 1. question: Is Unique: Implement an algorithm to determine if a string has all unique characters. What if you cannot use additional data structures? 阅读全文
posted @ 2020-04-02 18:14 凌青语 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 普通快速排序其实就是递归分割,首先去一个基准数将数组以此为大小分割成两份,然后再递归对此两份数组分别再进行同样的操作。 int getIndex(int* pArry, int low, int high){ int temp = pArry[low]; while (low < high) { w 阅读全文
posted @ 2020-03-31 17:01 凌青语 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 在删除一张表的时候需要关联另外一张表作为查询条件的时候如果有两个字段,则用sql的EXISTS 例:DELETE from recharge_r where EXISTS(SELECT serid from userids b where recharge_r.serid = b.serid and 阅读全文
posted @ 2019-09-07 15:57 凌青语 阅读(119) 评论(0) 推荐(0) 编辑