#include<stdio.h>
#define BOOK "\a\"you are very good\""
int main()
{
float cost = 12.99;
float percent = 80.0;
printf("This copy of %s sell for $%.2f\n",BOOK,cost);
printf("That is %.0f%% of list",percent);
return 0;
}
运行一下这段代码你就会知道,结果如下:
This copy of "you are very good" sell for $12.99
That is 80% of list
Process returned 0 (0x0) execution time : 0.015 s
Press any key to continue.
// \a也正常发挥了作用,发出了警报声//