ARM の割り当てのために C で uVision 4 をコーディングしています。理解できないようですが、文字列「536876144」を取得し続けるたびに。
int main(void) {
int binary[8] = {0,0,0,0,0,0,0,0};//I want this array as integers (for binary terms), therefore i can toggle each number as 1 or 0, corresponding to the input.
char stringbinary[9]; //string for recording the value of the converted integer array
sprintf(stringbinary, "%d", binary);//conversion of the array to string
printf("%s\r\n",stringbinary);//printing the value
.............
.............
if(input=1){
binary[0]=1 - binary[0]; // I have the each value of the array to toggle with activation
}
}
何時間ものコーディングで疲れているからかもしれません。シンプルで基本的なものだと確信していますが、見つけられないようです。