c-文件读写

#include<stdlib.h> #include<stdio.h> int main() { char buff[20]; FILE *fil…

php-XML Expat 解析器

有两种基本的 XML 解析器类型:基于树的解析器:这种解析器把 XML 文档转换为树型结构。它分析整篇文档,并提供了对树中元素的访问,例如文档对象模型 (DOM)。基于事件的解析器…

php-过滤器

filter_var() - 通过一个指定的过滤器来过滤单一的变量filter_var_array() - 通过相同的或不同的过滤器来过滤多个变量 <?php $int = …

js-HTML DOM EventListener

<!DOCTYPE html> <html> <head> <style> #myDIV { background-color: c…

c-创建链表

#include<stdio.h> #include<stdlib.h> #include<malloc.h> typedef struct L…

php-验证码

//封装为函数调用 <?php function show($fontsize){ //创建画布资源 $im=imagecreatetruecolor(200, 100); …

c-取一个整数a从右端开始的4~7位

1.先使a右移4位。2.设置一个低4位全为1,其余全为0的数。可用(0<<4)3.将上面二者进行&运算。 #include <stdio.h> in…

php-自动加载类

PHP 提供了若干方式来自动加载包含还未加载的类的文件。老的方法是使用名为 autoload() 魔术全局函数。 然而你一次仅能定义一个 autoload() 函数,因此如果你的程…

c-选择排序

//选择一个最小的与第一个元素交换,第二个元素与后面进行比较,并进行交换。 #include<stdio.h> #define N 10 int main(){ int…

c-用递归方法求5!

//简单的了解下递归 #include <stdio.h> int main(){ int fact(); printf("%d!=%d\n",fact(5)); } …

加载更多