路边拾遗。。。

来源:互联网 发布:蛙趣软件下载 编辑:程序博客网 时间:2024/04/29 21:57
strrev,
strrev用于反转字符串.
颠倒字符串s的所有字符的顺序,需要加
#include <string.h>;
http://msdn.microsoft.com/zh-cn/library/System.Math(v=vs.110).aspx
http://msdn.microsoft.com/zh-cn/library/System.Math_methods(v=vs.110).aspx
pow(a,b)是计算a的b次方
a^b是将a和b的二进制数按位进行异或运算(即数位相异为1,相同为0)
atoi  C语言库函数名: atoi  功 能: 把字符串转换成整型数。  名字来源:array to integer 的缩写。  原型: int atoi(const char *nptr);  函数说明: 参数nptr字符串,如果第一个非空格字符不存在或者不是数字也不是正负号则返回零,否则开始做类型转换,之后检测到非数字(包括结束符 \0) 字符时停止转换,返回整型数。C语言库函数名: strtok功能:分解字符串为一组字符串。s为要分解的字符串,delim为分隔符字符串。strtok()用来将字符串分割成一个个片段。参数s指向欲分割的字符串,参数delim则为分割字符串,当strtok()在参数s的字符串中发现到参数delim的分割字符时则会将该字符改为\0 字符。在第一次调用时,strtok()必需给予参数s字符串,往后的调用则将参数s设置成NULL。每次调用成功则返回被分割出片段的指针。
     在c语言中sort函数的使用需要加头文件名#include<algorithm>以及using namespace std;,在vc中是这样,在其他编辑器里边我就不知道了。。。。
http://blog.csdn.net/yxnk/article/details/4848760
费马小定理,当a和n互质的时候,a^n-1 mop n恒等于一。。。
http://www.cnblogs.com/hpuzyf/archive/2013/08/02/3232376.html   一些学长的博客
http://blog.csdn.net/hnust_xiehonghao/article/details/8279267
http://blog.csdn.net/libin56842/article/details/8458741
http://blog.sina.com.cn/s/blog_626049050100k6z4.html
http://www.cnblogs.com/chaosheng/archive/2012/05/29/2524725.html
c#:学习资料:http://www.cnblogs.com/BeginnerClassroom/archive/2009/10/20/1586866.html
http://blog.csdn.net/libin56842/article/details/9067091
并查集讲解
http://blog.csdn.net/hpuhjl/article/details/38374155
floor 意思是取不大于的最大整数
 
 
切蛋糕

这类问题一般都有固定的公式,告诉大家一个技巧:二维的一般是f(x)=a*x^2+b*x+c,三维的一般是f(x)=a*x^3+b*x^2+c*x+d. 用带定系数法求出各个系数就行了。

http://www.cnblogs.com/FCWORLD/archive/2011/04/02/2003956.html
http://zc634579757.blog.163.com/blog/static/124497462200973035432637/
生活感悟
http://user.qzone.qq.com/1034858680/blog/1384349656
异或的几个作用
http://www.cnblogs.com/danh/archive/2010/12/24/1915810.html
结构体
http://www.cnblogs.com/qkhhxkj/archive/2011/06/28/2091818.html
const的使用方法
http://blog.sina.com.cn/s/blog_502d82e10100fg7h.html

isdigit(char c);的作用:

  isdigit

  原型:extern int isdigit(char c);

  用法:#include <ctype.h>

  功能:判断字符c是否为数字

  说明:当c为数字0-9时,返回非零值,否则返回零。

  附加说明 此为宏定义,非真正函数。

  举例:

  // isdigit.c

  #include <syslib.h>

  #include <ctype.h>

  main()

  {

  int c;

  clrscr(); // clear screen

  c='a';

  printf("%c:%s/n",c,isdigit(c)?"yes":"no");

  c='9';

  printf("%c:%s/n",c,isdigit(c)?"yes":"no");

  c='*';

  printf("%c:%s/n",c,isdigit(c)?"yes":"no");

  getchar();

  return 0;

  }

  http://blog.csdn.net/zjf280441589/article/details/38048055

 

http://bbs.fishc.com/forum-112-1.html

 
strstr编辑
strstr() 函数搜索一个字符串在另一个字符串中的第一次出现。找到所搜索的字符串,则该函数返回字符串的地址;如果未找到所搜索的字符串,则返回NULL。
 
 
floor和ceil
floor:返回比x小的最大整数
ceil:返回比x大的最小整数
0 0
原创粉丝点击