C Tutorial/Preprocessor/Preprocessor — различия между версиями

Материал из C\C++ эксперт
Перейти к: навигация, поиск
м (1 версия: Импорт контента...)
 
(нет различий)

Текущая версия на 13:31, 25 мая 2010

Preprocessing

You can use preprocessor to define constant and substitution.


<source lang="cpp">#include <stdio.h>

  1. define const 5

main(){

 int i= 4;
 i = i * const;
 printf("%d \n", i);

}</source>

20