-
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
0 parents
commit 8bc983e
Showing
484 changed files
with
247,078 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> | ||
<CodeBlocks_project_file> | ||
<FileVersion major="1" minor="6" /> | ||
<Project> | ||
<Option title="cw3/1" /> | ||
<Option pch_mode="2" /> | ||
<Option compiler="gcc" /> | ||
<Build> | ||
<Target title="Debug"> | ||
<Option output="bin/Debug/cw3/1" prefix_auto="1" extension_auto="1" /> | ||
<Option object_output="obj/Debug/" /> | ||
<Option type="1" /> | ||
<Option compiler="gcc" /> | ||
<Compiler> | ||
<Add option="-g" /> | ||
</Compiler> | ||
</Target> | ||
<Target title="Release"> | ||
<Option output="bin/Release/cw3/1" prefix_auto="1" extension_auto="1" /> | ||
<Option object_output="obj/Release/" /> | ||
<Option type="1" /> | ||
<Option compiler="gcc" /> | ||
<Compiler> | ||
<Add option="-O2" /> | ||
</Compiler> | ||
<Linker> | ||
<Add option="-s" /> | ||
</Linker> | ||
</Target> | ||
</Build> | ||
<Compiler> | ||
<Add option="-Wall" /> | ||
<Add option="-fexceptions" /> | ||
</Compiler> | ||
<Unit filename="main.cpp" /> | ||
<Extensions> | ||
<code_completion /> | ||
<envvars /> | ||
<debugger /> | ||
<lib_finder disable_auto="1" /> | ||
</Extensions> | ||
</Project> | ||
</CodeBlocks_project_file> |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# depslib dependency file v1.0 | ||
1502028688 source:c:\users\p4wos\desktop\j�zyk c++ szko�a programowania\1\cw3\main.cpp | ||
<iostream> | ||
<climits> | ||
<string> | ||
<math.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> | ||
<CodeBlocks_layout_file> | ||
<ActiveTarget name="Debug" /> | ||
<File name="main.cpp" open="1" top="1" tabpos="1" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0"> | ||
<Cursor> | ||
<Cursor1 position="105" topLine="0" /> | ||
</Cursor> | ||
</File> | ||
</CodeBlocks_layout_file> |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#include <iostream> | ||
#include <climits> | ||
#include <string> | ||
#include <math.h> | ||
|
||
using namespace std; | ||
//zu¿ycie benzyny | ||
int main() | ||
{ | ||
|
||
return 0; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#include "BankBill.h" | ||
|
||
BankBill::BankBill(string s, string bID, double b) | ||
{ | ||
name = s; | ||
billID = bID; | ||
balance = b; | ||
} | ||
|
||
void BankBill::showBill() const | ||
{ | ||
std::cout << "Nazwisko posiadacza: " << name << ", Id rachunku: " << billID << ", saldo " << balance << std::endl; | ||
} | ||
|
||
void BankBill::addBalance(double ab) | ||
{ | ||
if(ab < 0) | ||
{ | ||
std::cout << "Nie mozesz dodac ujemna wartosc" << std::endl; | ||
std::cout << "Operacja przerwana" << std::endl; | ||
} | ||
else | ||
balance -= ab; | ||
} | ||
|
||
void BankBill::subBalance(double ab) | ||
{ | ||
if(ab < 0) | ||
{ | ||
std::cout << "Nie mozesz odjac ujemna wartosc" << std::endl; | ||
std::cout << "Operacja przerwana" << std::endl; | ||
} | ||
else | ||
balance -= ab; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#include "BankBill.h" | ||
|
||
BankBill::BankBill(string s, string bID, double b) | ||
{ | ||
name = s; | ||
billID = bID; | ||
balance = b; | ||
} | ||
|
||
void BankBill::showBill() const | ||
{ | ||
std::cout << "Nazwisko posiadacza: " << name << ", Id rachunku: " << billID << ", saldo " << balance << std::endl; | ||
} | ||
|
||
void BankBill::addBalance(double ab) | ||
{ | ||
if(ab < 0) | ||
{ | ||
std::cout << "Nie mozesz dodac ujemna wartosc" << std::endl; | ||
std::cout << "Operacja przerwana" << std::endl; | ||
} | ||
else | ||
balance -= ab; | ||
} | ||
|
||
void BankBill::subBalance(double ab) | ||
{ | ||
if(ab < 0) | ||
{ | ||
std::cout << "Nie mozesz odjac ujemna wartosc" << std::endl; | ||
std::cout << "Operacja przerwana" << std::endl; | ||
} | ||
else | ||
balance -= ab; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#ifndef BANKBILL_H_INCLUDED | ||
#define BANKBILL_H_INCLUDED | ||
#include <iostream> | ||
using std::string; | ||
class BankBill | ||
{ | ||
string name; | ||
string billID; | ||
double balance; | ||
public: | ||
BankBill(string s, string bID, double b); | ||
void showBill() const; | ||
void addBalance(double ab); | ||
void subBalance(double ab); | ||
}; | ||
|
||
|
||
#endif // BANKBILL_H_INCLUDED |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#ifndef BANKBILL_H_INCLUDED | ||
#define BANKBILL_H_INCLUDED | ||
#include <iostream> | ||
class BankBill | ||
{ | ||
using std::str | ||
string name; | ||
string billID; | ||
double balance; | ||
public: | ||
BankBill(string s, string bID, double b); | ||
void showBill() const; | ||
void addBill(double ab); | ||
void subtractBill(double ab); | ||
}; | ||
|
||
|
||
#endif // BANKBILL_H_INCLUDED |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include <iostream> | ||
#include "BankBill.h" | ||
|
||
using std::cout; | ||
using std::endl; | ||
|
||
int main() | ||
{ | ||
BankBill bill1("Kawula", "e23", 20); | ||
bill1.showBill(); | ||
bill1.subBalance(20); | ||
bill1.showBill(); | ||
bill1.addBalance(30); | ||
bill1.showBill(); | ||
std::cout << "Hello world!" << std::endl; | ||
return 0; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#include <iostream> | ||
#include "BankBill.h" | ||
|
||
using namespace std; | ||
|
||
int main() | ||
{ | ||
BankBill bill1("Kawula", "e23", 20); | ||
bill1.showBill(); | ||
bill1.subtractBalance() | ||
std::cout << "Hello world!" << std::endl; | ||
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> | ||
<CodeBlocks_project_file> | ||
<FileVersion major="1" minor="6" /> | ||
<Project> | ||
<Option title="r10,1" /> | ||
<Option pch_mode="2" /> | ||
<Option compiler="gcc" /> | ||
<Build> | ||
<Target title="Debug"> | ||
<Option output="bin/Debug/r10,1" prefix_auto="1" extension_auto="1" /> | ||
<Option object_output="obj/Debug/" /> | ||
<Option type="1" /> | ||
<Option compiler="gcc" /> | ||
<Compiler> | ||
<Add option="-g" /> | ||
</Compiler> | ||
</Target> | ||
<Target title="Release"> | ||
<Option output="bin/Release/r10,1" prefix_auto="1" extension_auto="1" /> | ||
<Option object_output="obj/Release/" /> | ||
<Option type="1" /> | ||
<Option compiler="gcc" /> | ||
<Compiler> | ||
<Add option="-O2" /> | ||
</Compiler> | ||
<Linker> | ||
<Add option="-s" /> | ||
</Linker> | ||
</Target> | ||
</Build> | ||
<Compiler> | ||
<Add option="-Wall" /> | ||
<Add option="-fexceptions" /> | ||
</Compiler> | ||
<Unit filename="BankBill.cpp" /> | ||
<Unit filename="BankBill.h" /> | ||
<Unit filename="main.cpp" /> | ||
<Extensions> | ||
<code_completion /> | ||
<envvars /> | ||
<debugger /> | ||
</Extensions> | ||
</Project> | ||
</CodeBlocks_project_file> |
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> | ||
<CodeBlocks_project_file> | ||
<FileVersion major="1" minor="6" /> | ||
<Project> | ||
<Option title="r10,1" /> | ||
<Option pch_mode="2" /> | ||
<Option compiler="gcc" /> | ||
<Build> | ||
<Target title="Debug"> | ||
<Option output="bin/Debug/r10,1" prefix_auto="1" extension_auto="1" /> | ||
<Option object_output="obj/Debug/" /> | ||
<Option type="1" /> | ||
<Option compiler="gcc" /> | ||
<Compiler> | ||
<Add option="-g" /> | ||
</Compiler> | ||
</Target> | ||
<Target title="Release"> | ||
<Option output="bin/Release/r10,1" prefix_auto="1" extension_auto="1" /> | ||
<Option object_output="obj/Release/" /> | ||
<Option type="1" /> | ||
<Option compiler="gcc" /> | ||
<Compiler> | ||
<Add option="-O2" /> | ||
</Compiler> | ||
<Linker> | ||
<Add option="-s" /> | ||
</Linker> | ||
</Target> | ||
</Build> | ||
<Compiler> | ||
<Add option="-Wall" /> | ||
<Add option="-fexceptions" /> | ||
</Compiler> | ||
<Unit filename="BankBill.cpp" /> | ||
<Unit filename="BankBill.h" /> | ||
<Unit filename="main.cpp" /> | ||
<Extensions> | ||
<code_completion /> | ||
<envvars /> | ||
<debugger /> | ||
</Extensions> | ||
</Project> | ||
</CodeBlocks_project_file> |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# depslib dependency file v1.0 | ||
1503741982 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 | ||
<iostream> | ||
|
||
1503742590 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> | ||
<CodeBlocks_layout_file> | ||
<FileVersion major="1" minor="0" /> | ||
<ActiveTarget name="Debug" /> | ||
<File name="main.cpp" open="1" top="0" tabpos="2" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0"> | ||
<Cursor> | ||
<Cursor1 position="80" topLine="0" /> | ||
</Cursor> | ||
</File> | ||
<File name="BankBill.h" open="1" top="1" tabpos="3" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0"> | ||
<Cursor> | ||
<Cursor1 position="77" topLine="0" /> | ||
</Cursor> | ||
</File> | ||
<File name="BankBill.cpp" open="1" top="0" tabpos="1" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0"> | ||
<Cursor> | ||
<Cursor1 position="23" topLine="0" /> | ||
</Cursor> | ||
</File> | ||
</CodeBlocks_layout_file> |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> | ||
<CodeBlocks_layout_file> | ||
<FileVersion major="1" minor="0" /> | ||
<ActiveTarget name="Debug" /> | ||
<File name="main.cpp" open="1" top="0" tabpos="3" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0"> | ||
<Cursor> | ||
<Cursor1 position="163" topLine="0" /> | ||
</Cursor> | ||
</File> | ||
<File name="BankBill.h" open="1" top="0" tabpos="1" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0"> | ||
<Cursor> | ||
<Cursor1 position="306" topLine="0" /> | ||
</Cursor> | ||
</File> | ||
<File name="BankBill.cpp" open="1" top="0" tabpos="2" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0"> | ||
<Cursor> | ||
<Cursor1 position="553" topLine="1" /> | ||
</Cursor> | ||
</File> | ||
</CodeBlocks_layout_file> |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#include <iostream> | ||
#include "person.h" | ||
|
||
using std::cout; | ||
using std::endl; | ||
|
||
int main() | ||
{ | ||
Person one; | ||
Person two("Staszek"); | ||
Person three("Jacek", "Placek"); | ||
three.show(); | ||
cout << endl; | ||
one.formalShow(); | ||
return 0; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#include <iostream> | ||
|
||
using namespace std; | ||
|
||
int main() | ||
{ | ||
Person one; | ||
Person two("Staszek"); | ||
Person three("Jacek", "Placek"); | ||
o | ||
return 0; | ||
} |
Binary file not shown.
Binary file not shown.
Oops, something went wrong.