Skip to content

Commit

Permalink
comecando a criar o remover // tentando juntar todas as structs (obs.…
Browse files Browse the repository at this point in the history
…: nao conseguir ainda, o arquivo structs.h esta desassociado por enquanto)
  • Loading branch information
lukaian-k committed Jun 29, 2022
1 parent 0066e15 commit ce25f66
Show file tree
Hide file tree
Showing 9 changed files with 415 additions and 20 deletions.
1 change: 1 addition & 0 deletions .vscode/configurationCache.log
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"buildTargets":[],"launchTargets":[],"customConfigurationProvider":{"workspaceBrowse":{"browsePath":[],"compilerArgs":[]},"fileIndex":[]}}
6 changes: 6 additions & 0 deletions .vscode/dryrun.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
make --dry-run --always-make --keep-going --print-directory
make: Entering directory '/home/lukaian/Desktop/trabalhos_faculdade/trabalho_de_ED'
make: Leaving directory '/home/lukaian/Desktop/trabalhos_faculdade/trabalho_de_ED'

make: *** No targets specified and no makefile found. Stop.

5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"files.associations": {
"fuctions_system.h": "c",
"stdio.h": "c"
"stdio.h": "c",
"stdlib.h": "c",
"fila_prioridade.h": "c",
"abb.h": "c"
}
}
298 changes: 298 additions & 0 deletions .vscode/targets.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,298 @@
make all --print-data-base --no-builtin-variables --no-builtin-rules --question
make: *** No rule to make target 'all'. Stop.

# GNU Make 4.3
# Built for x86_64-redhat-linux-gnu
# Copyright (C) 1988-2020 Free Software Foundation, Inc.
# License GPLv3+: GNU GPL version 3 or later <http:https://gnu.org/licenses/gpl.html>
# This is free software: you are free to change and redistribute it.
# There is NO WARRANTY, to the extent permitted by law.


# Make data base, printed on Tue Jun 28 21:15:55 2022

# Variables

# environment
GDK_BACKEND = x11
# environment
LC_ALL = C
# environment
NO_AT_BRIDGE = 1
# environment
GJS_DEBUG_OUTPUT = stderr
# environment
VSCODE_IPC_HOOK_EXTHOST = /run/user/1000/vscode-ipc-bab9bd92-8306-4d22-a2cb-d1755e7d0ee2.sock
# environment
VSCODE_CWD = /home/lukaian
# environment
GDM_LANG = en_US.UTF-8
# default
MAKE_COMMAND := make
# environment
define BASH_FUNC_which%%
() { ( alias;
eval ${which_declare} ) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot $@
}
endef
# automatic
@D = $(patsubst %/,%,$(dir $@))
# environment
VSCODE_HANDLES_UNCAUGHT_ERRORS = true
# default
.VARIABLES :=
# environment
PWD = /home/lukaian/Desktop/trabalhos_faculdade/trabalho_de_ED
# automatic
%D = $(patsubst %/,%,$(dir $%))
# environment
HOSTNAME = fedora
# environment
MAIL = /var/spool/mail/lukaian
# environment
XDG_DATA_DIRS = /home/lukaian/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
# environment
QTINC = /usr/lib64/qt-3.3/include
# automatic
^D = $(patsubst %/,%,$(dir $^))
# environment
VSCODE_LOG_STACK = false
# automatic
%F = $(notdir $%)
# environment
VSCODE_CODE_CACHE_PATH = /home/lukaian/.config/Code/CachedData/30d9c6cd9483b2cc586687151bcbcd635f373630
# environment
LANG = C
# environment
XAUTHORITY = /run/user/1000/.mutter-Xwaylandauth.247CO1
# default
.LOADED :=
# default
.INCLUDE_DIRS = /usr/include /usr/local/include /usr/include
# makefile
MAKEFLAGS = pqrR
# makefile
CURDIR := /home/lukaian/Desktop/trabalhos_faculdade/trabalho_de_ED
# environment
VSCODE_PIPE_LOGGING = true
# environment
APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL = true
# environment
LESSOPEN = ||/usr/bin/lesspipe.sh %s
# automatic
*D = $(patsubst %/,%,$(dir $*))
# environment
MFLAGS = -pqrR
# environment
SSH_AUTH_SOCK = /run/user/1000/keyring/ssh
# default
.SHELLFLAGS := -c
# environment
WAYLAND_DISPLAY = wayland-0
# environment
HISTSIZE = 1000
# automatic
+D = $(patsubst %/,%,$(dir $+))
# environment
XDG_SESSION_DESKTOP = gnome
# makefile
MAKEFILE_LIST :=
# automatic
@F = $(notdir $@)
# environment
VSCODE_VERBOSE_LOGGING = true
# environment
VSCODE_PID = 2930
# environment
XDG_SESSION_TYPE = wayland
# automatic
?D = $(patsubst %/,%,$(dir $?))
# environment
SESSION_MANAGER = local/unix:@/tmp/.ICE-unix/1712,unix/unix:/tmp/.ICE-unix/1712
# automatic
*F = $(notdir $*)
# environment
CHROME_DESKTOP = code-url-handler.desktop
# environment
DBUS_SESSION_BUS_ADDRESS = unix:path=/run/user/1000/bus
# automatic
<D = $(patsubst %/,%,$(dir $<))
# environment
VSCODE_NLS_CONFIG = {"locale":"en-us","availableLanguages":{},"_languagePackSupport":true}
# default
MAKE_HOST := x86_64-redhat-linux-gnu
# makefile
SHELL = /bin/sh
# default
MAKECMDGOALS := all
# environment
XMODIFIERS = @im=ibus
# environment
GJS_DEBUG_TOPICS = JS ERROR;JS LOG
# environment
SHLVL = 0
# environment
MAKELEVEL := 0
# default
MAKE = $(MAKE_COMMAND)
# environment
PATH = /home/lukaian/.local/bin:/home/lukaian/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/var/lib/snapd/snap/bin
# environment
QTDIR = /usr/lib64/qt-3.3
# environment
MOZ_GMP_PATH = /usr/lib64/mozilla/plugins/gmp-gmpopenh264/system-installed
# default
MAKEFILES :=
# automatic
^F = $(notdir $^)
# environment
INVOCATION_ID = 920f7e3a245f4b149af9e150ae258eb9
# environment
VSCODE_LOG_NATIVE = false
# environment
USERNAME = lukaian
# environment
GNOME_SETUP_DISPLAY = :1
# automatic
?F = $(notdir $?)
# environment
QTLIB = /usr/lib64/qt-3.3/lib
# environment
XDG_CURRENT_DESKTOP = GNOME
# environment
KDEDIRS = /usr
# automatic
+F = $(notdir $+)
# environment
DESKTOP_SESSION = gnome
# environment
ORIGINAL_XDG_CURRENT_DESKTOP = GNOME
# 'override' directive
GNUMAKEFLAGS :=
# environment
LOGNAME = lukaian
# environment
GIO_LAUNCHED_DESKTOP_FILE = /usr/share/applications/code.desktop
# makefile
.DEFAULT_GOAL :=
# environment
SYSTEMD_EXEC_PID = 1747
# environment
HISTCONTROL = ignoredups
# environment
EDITOR = /usr/bin/nano
# environment
DISPLAY = :0
# environment
USER = lukaian
# default
MAKE_VERSION := 4.3
# environment
MANAGERPID = 1569
# environment
which_declare = declare -f
# environment

DEBUGINFOD_URLS = https://debuginfod.fedoraproject.org/
# environment
GIO_LAUNCHED_DESKTOP_FILE_PID = 2930
# environment
_ = /usr/bin/make
# environment
XDG_RUNTIME_DIR = /run/user/1000
# environment
JOURNAL_STREAM = 8:28577
# environment
XDG_SESSION_CLASS = user
# environment
VSCODE_AMD_ENTRYPOINT = vs/workbench/api/node/extensionHostProcess
# environment
HOME = /home/lukaian
# environment
QT_IM_MODULE = ibus
# environment
ELECTRON_RUN_AS_NODE = 1
# environment
VSCODE_IPC_HOOK = /run/user/1000/vscode-a65cebbb-1.68.1-main.sock
# default
.RECIPEPREFIX :=
# automatic
<F = $(notdir $<)
# default
SUFFIXES :=
# default
.FEATURES := target-specific order-only second-expansion else-if shortest-stem undefine oneshell nocomment grouped-target extra-prereqs archives jobserver output-sync check-symlink guile load
# environment
XDG_MENU_PREFIX = gnome-
# environment
GDMSESSION = gnome
# variable set hash-table stats:
# Load=104/1024=10%, Rehash=0, Collisions=4/131=3%

# Pattern-specific Variable Values

# No pattern-specific variable values.

# Directories

# . (device 35, inode 2172841): 11 files, no impossibilities.

# 11 files, no impossibilities in 1 directories.

# Implicit Rules

# No implicit rules.

# Files

# Not a target:
Makefile:
# Implicit rule search has been done.
# File does not exist.
# File has been updated.
# Failed to be updated.

# Not a target:
.DEFAULT:
# Implicit rule search has not been done.
# Modification time never checked.
# File has not been updated.

# Not a target:
all:
# Command line target.
# Implicit rule search has been done.
# File does not exist.
# File has not been updated.

# Not a target:
makefile:
# Implicit rule search has been done.
# File does not exist.
# File has been updated.
# Failed to be updated.

# Not a target:
GNUmakefile:
# Implicit rule search has been done.
# File does not exist.
# File has been updated.
# Failed to be updated.

# files hash-table stats:
# Load=6/1024=1%, Rehash=0, Collisions=0/15=0%
# VPATH Search Paths

# No 'vpath' search paths.

# No general ('VPATH' variable) search path.

# strcache buffers: 1 (0) / strings = 19 / storage = 200 B / avg = 10 B
# current buf: size = 8162 B / used = 200 B / count = 19 / avg = 10 B

# strcache performance: lookups = 22 / hit rate = 13%
# hash-table stats:
# Load=19/8192=0%, Rehash=0, Collisions=0/22=0%
# Finished Make data base on Tue Jun 28 21:15:55 2022


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++: gcc build active file",
"command": "/usr/bin/gcc",
"args": [
"-fdiagnostics-color=always",
"-g",
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "Task generated by Debugger."
}
],
"version": "2.0.0"
}
35 changes: 34 additions & 1 deletion fuctions_system.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,19 @@ int add_esq_ou_dir = 0;

//fuctions

int verificar_senha(){
//verificar o usuario
char cpf[100]; char senha[100];

printf(" Digite seu cpf:\n"); scanf("%s", &cpf);
printf(" Digite sua senha:\n"); scanf("%s", &senha);

//se o usuario e senha estiverem certos
return 1;
//se nao
return 0;}


int gerador_id(){
if (add_esq_ou_dir == 0){
add_esq_ou_dir = 1;
Expand Down Expand Up @@ -70,5 +83,25 @@ void encomendar(){


void remover_encomenda(){
//remover uma encomenda de livro da ABB (id)
//visualizar as encomendas
in_ordem(root);
root = remover_abb(root, 0);}

int retorno = verificar_senha();
if (retorno == 1){
int selecionar_id;
printf(" Digite o id da encomenda que deseja remover:\n"); scanf("%s", &selecionar_id);
root = remover_abb(root, selecionar_id);

//setar novos dados (faltando)
char *nome_responsavel; char *nome_campus_aluno; char *nome_campus_livro;
printf(" Digite o nome do responsavel:\n"); scanf(" %[^\n]s", nome_responsavel);
printf(" Digite o nome do campus do aluno:\n"); scanf(" %[^\n]s", nome_campus_aluno);
printf(" Digite o nome do campus do livro:\n"); scanf(" %[^\n]s", nome_campus_livro);
//5 - add_fila(....);
}}


void remover_pedido(){

}
Binary file modified principal
Binary file not shown.
Loading

0 comments on commit ce25f66

Please sign in to comment.