?? assert.c
字號:
#include <stdio.h>#include <math.h>#include <assert.h>double my_sqrt(double x){ assert(x >= 0.0); return sqrt(x);}int main(){ printf("sqrt +2 = %g\n", my_sqrt(2.0)); printf("sqrt -2 = %g\n", my_sqrt(-2.0)); exit(0);}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -