| 1 |
#include <stdio.h> |
| 2 |
|
| 3 |
//: dvojice |
| 4 |
|
| 5 |
struct dvojice { |
| 6 |
float x, y; |
| 7 |
}; |
| 8 |
|
| 9 |
//: uzasna_funkce |
| 10 |
|
| 11 |
struct dvojice uzasna_funkce (float p) |
| 12 |
{ |
| 13 |
struct dvojice navrat; |
| 14 |
navrat.x = 2*p; // tady nasobim p dvema |
| 15 |
navrat.y = 3*p; // tady nasobim p tremi |
| 16 |
return navrat; |
| 17 |
} |