This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Problem komiwojazera | |
| #include <iostream> | |
| #include <cstdlib> | |
| #include <math.h> | |
| using namespace std; | |
| int const ILOSC_MIAST = 10; | |
| class miasto { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| using namespace std; | |
| int main() | |
| { | |
| /* | |
| * Przykladowa macierz 3x3: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <cstdlib> | |
| #include <iostream> | |
| using namespace std; | |
| int nTablica[100]; | |
| int funcArytm(int nA1, int nR, int nMax) { | |
| nTablica[0] = nA1; | |
| for (int i = 0; i < nMax; i++) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Tresc polecenia: | |
| * Utworzyć tablicę int o rozmiarze 50. | |
| * Wypełnić kolejnymi liczbami całkowitymi. | |
| * Sumować liczby parzyste do osiągnięcia wartości 100. | |
| * Podać wartość indeksu dla którego osiągnięto, bez przekroczenia, tę wartość. | |
| */ | |
| #include <stdio.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Tresc polecenia: | |
| * Tablice typu int wypelnic liczbami parzystymi. | |
| * Za pomoca funkcji o przykladowej nazwie NotEven() dokonac inkrementacji (zwiekszenie o 1) elementow tej tablicy i sprawdzic to po powrocie do funkcji wywolujacej. | |
| */ | |
| #include <stdio.h> | |
| int NotEven(int liczba) { | |
| liczba = liczba + 1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {Krajowe Stowarzyszenie Pechowców funduje stypendia dla studentów – pechowców. Minimalne wymagania są następujące: | |
| - Ocena średnia nie wyższa niż 3 | |
| - Co najmniej drugi rok studiów | |
| - Wiek ponad 40 lat | |
| Informacje o studentach zapisane są w n-elementowej tablicy rekordów postaci: | |
| - nazwisko | |
| - średnia ocena | |
| - rok studiów | |
| - wiek | |
| Uporządkować tablicę w ten sposób, że na początku znajdą się osoby, które mogą otrzymać stypendium, a w dalszej części pozostali. |
NewerOlder