?? sa.cpp
字號(hào):
// SA.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "ISA.h"
//
//碼本大小和階數(shù)
//
#define CB_SIZE 256
#define CB_ORDER 6
int main(int argc, char* argv[])
{
float coebook_CB[CB_SIZE*CB_ORDER]={0};
FILE *fp;
int i;
int j;
//SA算法
SA(coebook_CB);
//存儲(chǔ)碼本訓(xùn)練到文件coebook_SA.txt
fp=fopen("codebook_SA.txt","w");
for(j = 0; j < CB_SIZE; j++)
{
fprintf(fp, "\n");
for(i = 0; i < CB_ORDER; i++)
{
fprintf(fp, "%f, ", *(coebook_CB+j*CB_ORDER+i));
}
}
fclose(fp);
return 0;
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -