?? checksum.cpp
字號:
#include "nmea0183.h"
BYTE ComputeChecksum( const CString &line_to_parse )
{
BYTE checksum_value = 0;
int string_length = line_to_parse.GetLength();
int index = 1; // Skip over the $ at the begining of the sentence
while( index < string_length && line_to_parse[ index ] != '*' )
{
checksum_value ^= line_to_parse[ index ];
index++;
}
return( checksum_value );
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -