10
C / C ++行号
为了调试目的,我可以在C / C ++编译器中获得行号吗?(某些编译器的标准方式或特定方式) 例如 if(!Logical) printf("Not logical value at line number %d \n",LineNumber); // How to get LineNumber without writing it by my hand?(dynamic compilation)