int CalculateTrend(MyRtcData* rcData)
{
if(rcData != 0)
{
return rcData->PresData[0];
}
return -1;
}
if (buffer[0] == 0xff && buffer[1] == 0xd8 && buffer[2] == 0xff && (buffer[3] & 0xe0) == 0xe0)
while (fread(buffer, BUFFER_SIZE, 1, input) == 1)
int matrix[5][5] = {
{1,2,3,4,5},
{2,3,4,5,1},
{3,4,5,1,2},
{4,5,1,2,3},
{5,1,2,3,4}
};
for (int i = 0; i < 5; i++)
{
for (int j = 0; j < 5; j++)
{
std::cout << matrix[i][j] << " ";
}
std::cout << std::endl;
}