bool型の使用方法が安全ではありません
Posted: 2010年11月19日(金) 17:03
visual C++ DXライブラリ使用です
#include "../include/GV.h"
void mode_run(){
DrawGraph( 0 , 0 , a , TRUE);
LoadGraphScreen( run_x , run_y , "../dat/右上.png" , TRUE );
if(CheckStateKey(KEY_INPUT_RIGHT)>1&&330<=run_x<475&&335<run_y){
run_x++;
run_y--;
}
}
というような関数を作ったところ
1>c:\users\desktop\file\mydat\source\run.cpp(8): warning C4804: '<' : 演算中の 'bool' 型の使用方法が安全ではありません
という警告?が出てきます
普通に実行できるのですが気になったので質問させていただきます
これはなんなんでしょうか
ほっといてもいいのでしょうか?
#include "../include/GV.h"
void mode_run(){
DrawGraph( 0 , 0 , a , TRUE);
LoadGraphScreen( run_x , run_y , "../dat/右上.png" , TRUE );
if(CheckStateKey(KEY_INPUT_RIGHT)>1&&330<=run_x<475&&335<run_y){
run_x++;
run_y--;
}
}
というような関数を作ったところ
1>c:\users\desktop\file\mydat\source\run.cpp(8): warning C4804: '<' : 演算中の 'bool' 型の使用方法が安全ではありません
という警告?が出てきます
普通に実行できるのですが気になったので質問させていただきます
これはなんなんでしょうか
ほっといてもいいのでしょうか?