Skip to content

Commit

Permalink
Initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
PawelKawula committed Sep 16, 2017
0 parents commit 8bc983e
Show file tree
Hide file tree
Showing 484 changed files with 247,078 additions and 0 deletions.
43 changes: 43 additions & 0 deletions 1/cw3/1.cbp
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>
7 changes: 7 additions & 0 deletions 1/cw3/1.depend
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>

9 changes: 9 additions & 0 deletions 1/cw3/1.layout
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 added 1/cw3/bin/Debug/cw3/1.exe
Binary file not shown.
12 changes: 12 additions & 0 deletions 1/cw3/main.cpp
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 added 1/cw3/obj/Debug/main.o
Binary file not shown.
35 changes: 35 additions & 0 deletions r10,1/BankBill.cpp
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;
}
35 changes: 35 additions & 0 deletions r10,1/BankBill.cpp.save
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;
}
18 changes: 18 additions & 0 deletions r10,1/BankBill.h
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
18 changes: 18 additions & 0 deletions r10,1/BankBill.h.save
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 added r10,1/bin/Debug/r10,1.exe
Binary file not shown.
17 changes: 17 additions & 0 deletions r10,1/main.cpp
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;
}
13 changes: 13 additions & 0 deletions r10,1/main.cpp.save
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 added r10,1/obj/Debug/BankBill.o
Binary file not shown.
Binary file added r10,1/obj/Debug/main.o
Binary file not shown.
44 changes: 44 additions & 0 deletions r10,1/r10,1.cbp
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>
44 changes: 44 additions & 0 deletions r10,1/r10,1.cbp.save
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>
11 changes: 11 additions & 0 deletions r10,1/r10,1.depend
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"

20 changes: 20 additions & 0 deletions r10,1/r10,1.layout
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>
20 changes: 20 additions & 0 deletions r10,1/r10,1.layout.save
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 added r10,2/bin/Debug/r10,2.exe
Binary file not shown.
16 changes: 16 additions & 0 deletions r10,2/main.cpp
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;
}
12 changes: 12 additions & 0 deletions r10,2/main.cpp.save
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 added r10,2/obj/Debug/main.o
Binary file not shown.
Binary file added r10,2/obj/Debug/person.o
Binary file not shown.
Loading

0 comments on commit 8bc983e

Please sign in to comment.