C言語なら俺に聞け(入門篇) Part 19
■ このスレッドは過去ログ倉庫に格納されています
0795デフォルトの名無しさん
2007/10/12(金) 22:07:27#include "test.h"
typedef struct{
int yx;
}PARA;
PARA param={1};
int main(){
print(param);
return 0;
}
test.h
void print(PARA param){
printf("%d",param.yx);
}
エラー E2147 C:\Cpro\stest\test.h 1: 引数宣言は 'PARA' で始められない
エラー E2294 C:\Cpro\stest\test.h 2: . または .* の左側に構造体が必要(関数 print )
エラー E2342 C:\Cpro\stest\test.c 12: パラメータ 'param' は int 型として定義されているので PARA は渡せない(関数 main )
です
お願いします
■ このスレッドは過去ログ倉庫に格納されています