摘要: 中文乱码问题可以在浏览器上设置编码方式为GB2312或者在html的最前面加上编码设置 <head> <meta http-equiv="Content-Type" content="text/html; charset=GB2312"> </head> <p>中文</p> 这样就能告诉浏览器使用G 阅读全文
posted @ 2020-05-20 09:00 Jasper2003 阅读(344) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-05-19 12:04 Jasper2003 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 我们用gcc编译程序时,可能会用到“-I”(大写i),“-L”(大写l),“-l”(小写l)等参数,下面做个记录: 例子1: gcc -o example1 example1.c -I /usr/local/include/freetype2 -lfreetype -lm 上面这句话在编译examp 阅读全文
posted @ 2020-05-19 11:59 Jasper2003 阅读(242) 评论(0) 推荐(0) 编辑
摘要: To read a file in C, you must create a pointer to the file. To do this, you use the FILE data type:#include <stdio.h> /* You need this include file to 阅读全文
posted @ 2020-05-19 11:50 Jasper2003 阅读(134) 评论(0) 推荐(0) 编辑
摘要: C and C++ allow various types of operators. By now, you should be familiar with the basic binary operators +, -, *, / and the boolean operators <, >, 阅读全文
posted @ 2020-05-19 11:44 Jasper2003 阅读(204) 评论(0) 推荐(0) 编辑
摘要: Masking lets you modify a specific bit (or bits) using a bit pattern (called the mask) and a logical bitwise operator (AND, OR, or XOR). By changing t 阅读全文
posted @ 2020-05-19 11:39 Jasper2003 阅读(222) 评论(0) 推荐(0) 编辑
摘要: Dangling pointers in computer programming are pointers that pointing to a memory location that has been deleted (or freed). Cause of dangling pointers 阅读全文
posted @ 2020-05-19 10:50 Jasper2003 阅读(121) 评论(0) 推荐(0) 编辑
摘要: Self Referential structures are those structures that have one or more pointers which point to the same type of structure, as their member. In other w 阅读全文
posted @ 2020-05-19 09:27 Jasper2003 阅读(134) 评论(0) 推荐(0) 编辑
摘要: (Remember that strcmp() is tricky! It returns 0 when the strings are the SAME, >0 if str1 is greater, or <0 if str2 is greater) strtok() Description T 阅读全文
posted @ 2020-05-19 07:54 Jasper2003 阅读(94) 评论(0) 推荐(0) 编辑
摘要: helloworld.c #include<stdio.h> #include<stdlib.h> void Hello(); void Hello() { printf("Hello World!\n"); } int main() { void (*Hello_ptr)() = Hello; / 阅读全文
posted @ 2020-05-19 06:43 Jasper2003 阅读(134) 评论(0) 推荐(0) 编辑