摘要:
#include"iostream" using namespace std; int main(void) { char str[]="1234567890"; int*p=(int*)str; printf("%x\n",*(p+1));//0x38373635 cout<<*(p+1)<<en 阅读全文
posted @ 2022-12-02 23:24
ruoye123456
阅读(35)
评论(0)
推荐(0)
摘要:
Problem Description 任何一个大学生对菲波那契数列(Fibonacci numbers)应该都不会陌生,它是这样定义的: F(1)=1; F(2)=2; F(n)=F(n-1)+F(n-2)(n>=3); 所以,1,2,3,5,8,13……就是菲波那契数列。 在HDOJ上有不少相关 阅读全文
posted @ 2022-12-02 23:19
ruoye123456
阅读(40)
评论(0)
推荐(0)
摘要:
int *p[]是一个存数组的指针,其中的元素是指针,要对元素所指的位置调用需要二阶调用 #include<iostream> #include<cstdio> #include<cstring> using namespace std; int main() { int a[10][6], * p 阅读全文
posted @ 2022-12-02 08:44
ruoye123456
阅读(334)
评论(0)
推荐(0)


浙公网安备 33010602011771号