• Nie Znaleziono Wyników

makro - dyrektywa define (1)

N/A
N/A
Protected

Academic year: 2021

Share "makro - dyrektywa define (1)"

Copied!
1
0
0

Pełen tekst

(1)

//============================================================== // Ilustracja dyrektywy preprocesora #define;

// makro; //

// ver data temat autor // 100 2005/10/12 Pierwszy projekt J. Malinowski // 101 2007/11/08 Cleanup JM // 102 2019/12/12 Cleanup JM //============================================================== #include <iostream.h> #include <conio.h> //---// Potrafisz przewidzieć , jakie wyniki da ten program?

// uruchamiaj go używając kolejno poniższych linii // odkomentowujac je, ale tylko jedna na raz;

#define SQUARE(x) x*x // #define SQUARE(x) (x)*(x) // #define SQUARE(x) ((x)*(x)) //============================================================== main() { int iz,ix=2;

cout << "\nwartosci dla x=2:\n";

cout << "\nwartosc dla SQUARE(x): " << SQUARE(ix); cout << "\nwartosc dla SQUARE(x+2): " << SQUARE(ix+2); cout << "\nwartosc dla 100/SQUARE(2): " << 100/SQUARE(2); cout << "\nwartosc dla SQUARE(++x): " << SQUARE(++ix); getch();

return 0; }

Cytaty

Powiązane dokumenty

Zgliczy´ nski, On periodic points for systems of weakly coupled 1-dim maps, IM UJ

Though we have (13) for all but finitely many k by Mahler’s result, it seems difficult to prove effective bounds approaching the above in strength (see Baker and Coates [1] for the

We see that the λ-root is an extension of the primitive root to all moduli, and we extend the notation g ∗ (q) to mean the least prime λ-root (mod q)..

Theorem 1.12 also generalizes a result on consecutive power residues (or nonresidues) which was stated without proof by Norton [34], Theorem 4; a weaker version of that result

In this section we prove the exis- tence and some properties of super Bernoulli sequences..

If we consider the Generalized Ja- cobian Conjecture (i.e.. Let us recall a simple inverse formula for a mapping of cubic homogeneous form... b F is a composition of linear

then you need to check if order of linking and play with different order configurations,

Jednak¿e poszczególne ele- menty przedstawionych powy¿ej badañ: bie¿¹cy monitoring sytuacji w regionie, diagnoza wp³ywu sfery makro na mezo, jak te¿ same œredniookreso- we