關於指標的問題
#include<iostream.h> #include<stdio.h> #include<stdlib.h> typedef unsigned char uint8_t;
struct yuv2rgb_factory_s { int gamma; int entry_size; uint8_t *table_rV[256]; uint8_t *table_gU[256]; uint8_t *table_bU[256]; }; void main(void) { yuv2rgb_factory_s *c_this; c_this->entry_size=4; c_this->gamma=10; for (int i = 0; i < 256; i++) { *c_this->table_rV[i] += c_this->entry_size*(20- c_this->gamma); *c_this->table_gU[i] += c_this->entry_size*(20 - c_this->gamma); *c_this->table_bU[i] += c_this->entry_size*(20 - c_this->gamma); } } 這段程序…我編譯ok了…但是執行有問題… 請問一下是什麼問題…那要怎麼改呢?? 能否給我個答案…謝謝