Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8911979206c15f0709aff82c5865a849 #210

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"files.associations": {
"iomanip": "cpp",
"array": "cpp",
"atomic": "cpp",
"bit": "cpp",
"*.tcc": "cpp",
"cctype": "cpp",
"clocale": "cpp",
"cmath": "cpp",
"compare": "cpp",
"concepts": "cpp",
"cstdarg": "cpp",
"cstddef": "cpp",
"cstdint": "cpp",
"cstdio": "cpp",
"cstdlib": "cpp",
"ctime": "cpp",
"cwchar": "cpp",
"cwctype": "cpp",
"deque": "cpp",
"string": "cpp",
"unordered_map": "cpp",
"vector": "cpp",
"exception": "cpp",
"algorithm": "cpp",
"functional": "cpp",
"iterator": "cpp",
"memory": "cpp",
"memory_resource": "cpp",
"numeric": "cpp",
"optional": "cpp",
"random": "cpp",
"string_view": "cpp",
"system_error": "cpp",
"tuple": "cpp",
"type_traits": "cpp",
"utility": "cpp",
"initializer_list": "cpp",
"iosfwd": "cpp",
"iostream": "cpp",
"istream": "cpp",
"limits": "cpp",
"new": "cpp",
"numbers": "cpp",
"ostream": "cpp",
"sstream": "cpp",
"stdexcept": "cpp",
"streambuf": "cpp",
"typeinfo": "cpp"
}
}
28 changes: 28 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: g++.exe build active file",
"command": "C:\\Users\\Waz\\Desktop\\winlibs-x86_64-posix-seh-gcc-13.1.0-llvm-16.0.4-mingw-w64ucrt-11.0.0-r4\\mingw64\\bin\\g++.exe",
"args": [
"-fdiagnostics-color=always",
"-g",
"${file}",
"-o",
"${fileDirname}\\${fileBasenameNoExtension}.exe"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "Task generated by Debugger."
}
],
"version": "2.0.0"
}
6 changes: 3 additions & 3 deletions Cliente.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

void Cliente::print(){

std::cout << "[Cliente]" << endl
std::cout << "[Cliente]" << endl
<< " Nome: " << NOME << endl
<< " Endereco: " << endereco << endl
<< " CEP: " << Cep << endl;

}
}

5 changes: 2 additions & 3 deletions Cliente.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@ class Cliente{

string NOME;
string endereco;
string Cep;
string AlturaDosPais;
string Cep;

void print(); // imprime na tela os dados de um cliente cadastrado

};

#endif
#endif
1 change: 0 additions & 1 deletion Especialista.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ class Especialista : public Funcionario {

public:

public:
string especialidade;

double comissao(double ValorVenda) {
Expand Down
7 changes: 2 additions & 5 deletions Funcionario.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ using namespace std;

class Funcionario {
public:
double SalarioBase; // valor m�nimo recebido pelo funcion�rio
string IDADE;
double SalarioBase; // valor m�nimo recebido pelo funcion�rio
int IDADE;
string nome;
int rgFunc;

Expand All @@ -19,9 +19,6 @@ class Funcionario {
<< " RGFunc: " << rgFunc << endl;
}

void print_oi(){
cout << "Tchau" << endl;
}
};

#endif
8 changes: 1 addition & 7 deletions Gerente.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,8 @@ using namespace std;

double ValorBONIFICACAO = 15.0;

class Gerente {
class Gerente: public Funcionario {
public:
double SalarioBase; // valor m�nimo recebido pelo funcion�rio
string IDADE;
string nome;
int rgFunc;
double bonificacao;


Expand All @@ -27,11 +23,9 @@ class Gerente {
}

double calcula_BONIFICACAO_GERENTE(int numTOTALVendas){
double x;
return numTOTALVendas*ValorBONIFICACAO;
}

};

#endif

11 changes: 0 additions & 11 deletions Venda.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ class Venda{
Especialista esp;
string cliente;


void print() {

std::cout << "Especialista: ";
Expand All @@ -25,18 +24,8 @@ class Venda{
std::cout << " Cliente: ";
cout << cliente;

//std::cout << " : ";
//cout << cliente;
}

/*void print() {

std::cout << "Especialista: ";
cout << esp.nome;

std::cout << " Cliente: ";
cout << cliente;
}*/
};

#endif