/* 斐波拉契序列 1 1 2 3 5 8 13 .。 。。。。。 除了1,2之外,每一项是前两项的和*/#include<stdio.h>//在vc2010中是以c的后缀来用c语言文件的void main(void)//int main(void) 注意不返回任何值的话要在main的括号里面加入v ...
分类:
其他好文 时间:
2021-06-02 15:22:43
阅读次数:
0
1、单目运算符&为取址运算符,其作用是获取对象的地址,生成指向对象的指针,与其说是获取地址,不如说是生成指针。对象地址的转换说明为%p,其中的p为pointer的首字母。 #include <stdio.h> int main(void) { int n; double x; int a[3]; p ...
分类:
编程语言 时间:
2021-06-02 15:15:47
阅读次数:
0
c语言中指针作为参数的函数同时计算两个数的和与差。 1、 #include <stdio.h> void sum_dif(int n1, int n2, int *sum, int *dif) { *sum = n1 + n2; *dif = (n1 > n2) ? (n1 - n2) : (n2 ...
分类:
编程语言 时间:
2021-06-02 15:05:19
阅读次数:
0
JSP简介 JSP全称是Java Server Pages,是一种动态网页技术,JSP其实就是在html中插入了java代码和JSP标签之后形成的文件,文件名以.jsp结尾。其实JSP就是一个servlet。在servlet中编写html比较痛苦,而写JSP就像在写html,但它相比html而言,h ...
分类:
Web程序 时间:
2021-06-02 15:00:25
阅读次数:
0
#include <sys/socket.h> #include <sys/wait.h> #include <netinet/in.h> #include <netinet/tcp.h> #include <sys/epoll.h> #include <sys/sendfile.h> #inclu ...
分类:
编程语言 时间:
2021-06-02 14:40:56
阅读次数:
0
习题 11.4编写你自己的单词计数程序,扩展你的程序,忽略大小写和标点。例如,"example."、"example,"和"Example"应该递增相同的计数器。 #include <string> #include <map> #include <iostream> #include <algor ...
分类:
其他好文 时间:
2021-06-02 14:07:14
阅读次数:
0
卸载cudnn sudo rm -rf /usr/local/cuda/include/cudnn.h sudo rm -rf /usr/local/cuda/lib64/libcudnn* 卸载cuda 第一步 sudo /usr/local/cuda-10.1/bin/cuda-uninstal ...
分类:
系统相关 时间:
2021-06-02 13:55:10
阅读次数:
0
#include <stdio.h> const int N=3; int main() { int a[N] = {1, 2, 3}; int i; printf("通过数组名和下标直接访问数组元素:\n"); for(i=0; i<N; i++) printf("%d: %d\n", &a[i] ...
分类:
其他好文 时间:
2021-06-02 13:50:16
阅读次数:
0
#include<stdio.h> int main(){ int n; cin>>n; for(int i=1;i<=n;i++)cin>>a[i]; for(int i=1;i<=n;i++)cin>>b[i]; int x=1,y=1,tot=0; while(x<=n&&y<=n){ if( ...
分类:
编程语言 时间:
2021-06-02 13:49:15
阅读次数:
0
#include <stdio.h> const int N=3; int main() { int a[N] = {1, 2, 3}; int i; printf("通过数组名和下标直接访问数组元素:\n"); for(i=0; i<N; i++) printf("%d: %d\n", &a[i] ...
分类:
其他好文 时间:
2021-06-02 13:48:33
阅读次数:
0