*/-->
pre.src {background-color: Black; color: White;}
格雷码
void gray_create(int n) { int a[n]; for (int i = 0; i < (i<<n); i++) { a[i] = i^(i>>1); } for (int i = 0; i < n; i++) { printf("%d\n", a[i]); } }
Date: 2015-01-23 00:11:50
Author: sunx
Created: 2015-01-23 Fri 00:12
Emacs 24.4.2 (Org mode 8.2.10)
时间: 2024-12-14 19:55:53