这个操作可以,爽歪歪。
#include "common.h" #include <stdio.h> #include <stdlib.h> static float test_point = 1.3435; static int normal_point = 1; //8进制g static int test_data = 01000; static char signed_data = 0b01111111; static unsigned char unsigned_data = 0b11111111; static char full_signed_data = 0b11111111; static char A = 'a'; static int B_Data = 0; int main() { char letter = 7; char add = 0,b= 0,c=0; int tower = 10, age = 50; B_Data = (b=3,c=2); { while (1) { printf("letter is %d\n", letter); printf("add is %d\n", add); printf("B_Data is %d\n",B_Data); printf("tower is %d\n", tower); printf("age is %d\n", age); Sleep(1000); } } return 0; }