强制类型转换括号的注意
强制转换类型用括号括起来
#include "common.h" #include <stdio.h> #include <stdlib.h> static float Mathematical_modeling = 0; static int capacitance_modeling = 0; int main() { Mathematical_modeling = float(capacitance_modeling); Mathematical_modeling = (float)(capacitance_modeling); while (1) { getchar(); } return 0; }
一勤天下无难事。