-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
92fe321
commit bf143b4
Showing
121 changed files
with
798 additions
and
297 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# depslib dependency file v1.0 | ||
1503741982 source:c:\users\p4wos\desktop\j�zyk c++ szko�a programowania\r10,1\bankbill.cpp | ||
1503738382 source:c:\users\p4wos\desktop\j�zyk c++ szko�a programowania\r10,1\bankbill.cpp | ||
"BankBill.h" | ||
|
||
1503742854 c:\users\p4wos\desktop\j�zyk c++ szko�a programowania\r10,1\bankbill.h | ||
1503739254 c:\users\p4wos\desktop\j�zyk c++ szko�a programowania\r10,1\bankbill.h | ||
<iostream> | ||
|
||
1503742590 source:c:\users\p4wos\desktop\j�zyk c++ szko�a programowania\r10,1\main.cpp | ||
1503738990 source:c:\users\p4wos\desktop\j�zyk c++ szko�a programowania\r10,1\main.cpp | ||
<iostream> | ||
"BankBill.h" | ||
|
This file contains 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
This file contains 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
Binary file not shown.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
#include "golf.h" | ||
Golf & Golf::operator=(Golf & g) | ||
{ | ||
Golf newg; | ||
strncpy(newg.fname,g.fname,LEN); | ||
newg.handicap = g.handicap; | ||
strncpy(fname, g.fname, LEN); | ||
handicap = g.handicap; | ||
return *this; | ||
} | ||
|
||
void Golf::showgolf() const | ||
{ | ||
cout << fname << ", handicap: " << handicap << endl; | ||
} |
This file contains 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
Binary file not shown.
Binary file not shown.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
# depslib dependency file v1.0 | ||
1503746961 source:c:\users\p4wos\desktop\j�zyk c++ szko�a programowania\r10,3\golf.cpp | ||
1512068013 source:c:\users\p4wos\desktop\j�zyk c++ szko�a programowania\r10,3\golf.cpp | ||
"golf.h" | ||
|
||
1503747079 c:\users\p4wos\desktop\j�zyk c++ szko�a programowania\r10,3\golf.h | ||
1503743479 c:\users\p4wos\desktop\j�zyk c++ szko�a programowania\r10,3\golf.h | ||
<cstring> | ||
<iostream> | ||
|
||
1503746975 source:c:\users\p4wos\desktop\j�zyk c++ szko�a programowania\r10,3\main.cpp | ||
1512067949 source:c:\users\p4wos\desktop\j�zyk c++ szko�a programowania\r10,3\main.cpp | ||
<iostream> | ||
"golf.h" | ||
|
This file contains 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
Binary file not shown.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
#include <iostream> | ||
|
||
#include "sales.h" | ||
using namespace std; | ||
|
||
int main() | ||
{ | ||
cout << "Hello world!" << endl; | ||
double bal[Sales::QUARTERS] {2, 5, 4, 5}; | ||
Sales s1(bal, 4); | ||
s1.showSales(); | ||
return 0; | ||
} |
Binary file not shown.
Binary file not shown.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
# depslib dependency file v1.0 | ||
1446671344 source:c:\users\p4wos\desktop\j�zyk c++ szko�a programowania\r10,4\main.cpp | ||
1512068710 source:c:\users\p4wos\desktop\j�zyk c++ szko�a programowania\r10,4\main.cpp | ||
<iostream> | ||
"sales.h" | ||
|
||
1512068764 source:c:\users\p4wos\desktop\j�zyk c++ szko�a programowania\r10,4\sales.cpp | ||
"sales.h" | ||
|
||
1512068740 c:\users\p4wos\desktop\j�zyk c++ szko�a programowania\r10,4\sales.h | ||
<iostream> | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,37 @@ | ||
#include "sales.h" | ||
|
||
Sales::Sales(const double ar[], int n) | ||
{ | ||
double minimum = ar[0]; | ||
double maximum = ar[0]; | ||
double sum = 0; | ||
int i; | ||
for (i = 0; i < n; ++i) | ||
{ | ||
if(minimum > ar[i]) | ||
minimum = ar[i]; | ||
if(maximum < ar[i]) | ||
maximum = ar[i]; | ||
balance[i] = ar[i]; | ||
sum += ar[i]; | ||
} | ||
for (; i < QUARTERS; ++i) | ||
{ | ||
balance[i] = 0; | ||
} | ||
min = minimum; | ||
max = maximum; | ||
average = sum / i; | ||
} | ||
|
||
void Sales::showSales() const | ||
{ | ||
cout << "Sprzedaz: " << endl; | ||
for (int i = 0; i < QUARTERS; ++i) | ||
{ | ||
cout << "Kwartal " << i+1 << ": " << balance[i] << endl; | ||
} | ||
cout << "Srednia: " << average << endl; | ||
cout << "Wartosc najmniejsza: " << min << endl; | ||
cout << "Wartosc najwieksza: " << max << endl; | ||
} |
This file contains 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
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# depslib dependency file v1.0 | ||
1503756789 source:c:\users\p4wos\desktop\j�zyk c++ szko�a programowania\r10,5\main.cpp | ||
1503753189 source:c:\users\p4wos\desktop\j�zyk c++ szko�a programowania\r10,5\main.cpp | ||
"stack.h" | ||
|
||
1503752452 c:\users\p4wos\desktop\j�zyk c++ szko�a programowania\r10,5\stack.h | ||
<iostream> | ||
1512068838 c:\users\p4wos\desktop\j�zyk c++ szko�a programowania\r10,5\stack.h | ||
<cstring> | ||
<iostream> | ||
|
||
1503756694 source:c:\users\p4wos\desktop\j�zyk c++ szko�a programowania\r10,5\stack.cpp | ||
1512068917 source:c:\users\p4wos\desktop\j�zyk c++ szko�a programowania\r10,5\stack.cpp | ||
"stack.h" | ||
|
This file contains 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
This file contains 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
This file contains 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
Binary file not shown.
This file contains 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
Binary file not shown.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# depslib dependency file v1.0 | ||
1503757642 source:c:\users\p4wos\desktop\j�zyk c++ szko�a programowania\r10,6\main.cpp | ||
1503754042 source:c:\users\p4wos\desktop\j�zyk c++ szko�a programowania\r10,6\main.cpp | ||
<iostream> | ||
"Move.h" | ||
|
||
1503757522 source:c:\users\p4wos\desktop\j�zyk c++ szko�a programowania\r10,6\move.cpp | ||
1503753922 source:c:\users\p4wos\desktop\j�zyk c++ szko�a programowania\r10,6\move.cpp | ||
"Move.h" | ||
|
||
1503757487 c:\users\p4wos\desktop\j�zyk c++ szko�a programowania\r10,6\move.h | ||
1503753887 c:\users\p4wos\desktop\j�zyk c++ szko�a programowania\r10,6\move.h | ||
<iostream> | ||
|
This file contains 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
This file contains 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
Oops, something went wrong.