Skip to content

Commit

Permalink
Finish binary operators
Browse files Browse the repository at this point in the history
  • Loading branch information
nhuhoang0701 committed Nov 22, 2020
1 parent b0a08cf commit d3a7e5d
Show file tree
Hide file tree
Showing 61 changed files with 1,249 additions and 404 deletions.
83 changes: 83 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# C++ objects and libs
*.slo
*.lo
*.o
*.a
*.la
*.lai
*.so
*.dll
*.dylib

# Qt-es
object_script.*.Release
object_script.*.Debug
*_plugin_import.cpp
/.qmake.cache
/.qmake.stash
*.pro.user
*.pro.user.*
*.qbs.user
*.qbs.user.*
*.moc
moc_*.cpp
moc_*.h
qrc_*.cpp
ui_*.h
*.qmlc
*.jsc
Makefile*
*build-*

# Qt unit tests
target_wrapper.*

# QtCreator
*.autosave

# QtCreator Qml
*.qmlproject.user
*.qmlproject.user.*

# QtCreator CMake
CMakeLists.txt.user*

# Prerequisites
*.d

#vscode
.vscode

# Compiled Object files
*.slo
*.lo
*.o
*.obj

# Precompiled Headers
*.gch
*.pch

# Compiled Dynamic libraries
*.so
*.dylib
*.dll

# Fortran module files
*.mod
*.smod

# Compiled Static libraries
*.lai
*.la
*.a
*.lib

# Executables
*.exe
*.out
*.app
fpt_exam_qt5

*.AppImage
AppDir
3 changes: 2 additions & 1 deletion .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"cStandard": "c11",
"cppStandard": "c++20",
"intelliSenseMode": "gcc-x64",
"configurationProvider": "ms-vscode.cmake-tools"
"configurationProvider": "ms-vscode.cmake-tools",
"compilerPath": "/usr/bin/g++",
}
],
"version": 4
Expand Down
4 changes: 2 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"linux": {
"MIMode": "gdb",
"miDebuggerPath": "gdb",
"program": "${workspaceFolder}/output/main"
"program": "${workspaceFolder}/UTCalculateur"
},
"osx": {
"MIMode": "lldb",
Expand All @@ -28,4 +28,4 @@
"preLaunchTask": "build"
}
]
}
}
54 changes: 52 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,55 @@
"files.associations": {
"*.rmd": "markdown",
"*.tcc": "cpp"
}
}
},
"files.exclude": {
"**/*.slo": true,
"**/*.lo": true,
"**/*.o": true,
"**/*.a": true,
"**/*.la": true,
"**/*.lai": true,
"**/*.so": true,
"**/*.dll": true,
"**/*.dylib": true,
"**/object_script.*.Release": true,
"**/object_script.*.Debug": true,
"**/*_plugin_import.cpp": true,
".qmake.cache": true,
".qmake.stash": true,
"**/*.pro.user": true,
"**/*.pro.user.*": true,
"**/*.qbs.user": true,
"**/*.qbs.user.*": true,
"**/*.moc": true,
"**/moc_*.cpp": true,
"**/moc_*.h": true,
"**/qrc_*.cpp": true,
"**/ui_*.h": true,
"**/*.qmlc": true,
"**/*.jsc": true,
"**/Makefile*": true,
"**/*build-*": true,
"**/target_wrapper.*": true,
"**/*.autosave": true,
"**/*.qmlproject.user": true,
"**/*.qmlproject.user.*": true,
"**/CMakeLists.txt.user*": true,
"**/*.d": true,
"**/*.obj": true,
"**/*.gch": true,
"**/*.pch": true,
"**/*.mod": true,
"**/*.smod": true,
"**/*.lib": true,
"**/*.exe": true,
"**/*.out": true,
"**/*.app": true,
"**/fpt_exam_qt5": true,
"**/*.AppImage": true,
"**/AppDir": true,
"**/*.cmake": true,
},
"C_Cpp.intelliSenseEngineFallback": "Disabled",
"C_Cpp.errorSquiggles": "Disabled",
}
6 changes: 3 additions & 3 deletions CMakeFiles/Makefile2
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ CMAKE_BINARY_DIR = /home/hoangkplog/Desktop/CPP_Project/UTCalculateur
CMakeFiles/UTCalculateur.dir/all: CMakeFiles/UTCalculateur_autogen.dir/all
$(MAKE) -f CMakeFiles/UTCalculateur.dir/build.make CMakeFiles/UTCalculateur.dir/depend
$(MAKE) -f CMakeFiles/UTCalculateur.dir/build.make CMakeFiles/UTCalculateur.dir/build
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/CMakeFiles --progress-num=1,2,3,4,5,6,7,8,9,10,11,12,13 "Built target UTCalculateur"
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/CMakeFiles --progress-num=1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 "Built target UTCalculateur"
.PHONY : CMakeFiles/UTCalculateur.dir/all

# Include target in all.
Expand All @@ -76,7 +76,7 @@ all: CMakeFiles/UTCalculateur.dir/all

# Build rule for subdir invocation for target.
CMakeFiles/UTCalculateur.dir/rule: cmake_check_build_system
$(CMAKE_COMMAND) -E cmake_progress_start /home/hoangkplog/Desktop/CPP_Project/UTCalculateur/CMakeFiles 14
$(CMAKE_COMMAND) -E cmake_progress_start /home/hoangkplog/Desktop/CPP_Project/UTCalculateur/CMakeFiles 16
$(MAKE) -f CMakeFiles/Makefile2 CMakeFiles/UTCalculateur.dir/all
$(CMAKE_COMMAND) -E cmake_progress_start /home/hoangkplog/Desktop/CPP_Project/UTCalculateur/CMakeFiles 0
.PHONY : CMakeFiles/UTCalculateur.dir/rule
Expand All @@ -103,7 +103,7 @@ clean: CMakeFiles/UTCalculateur.dir/clean
CMakeFiles/UTCalculateur_autogen.dir/all:
$(MAKE) -f CMakeFiles/UTCalculateur_autogen.dir/build.make CMakeFiles/UTCalculateur_autogen.dir/depend
$(MAKE) -f CMakeFiles/UTCalculateur_autogen.dir/build.make CMakeFiles/UTCalculateur_autogen.dir/build
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/CMakeFiles --progress-num=14 "Built target UTCalculateur_autogen"
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/CMakeFiles --progress-num=16 "Built target UTCalculateur_autogen"
.PHONY : CMakeFiles/UTCalculateur_autogen.dir/all

# Build rule for subdir invocation for target.
Expand Down
58 changes: 50 additions & 8 deletions CMakeFiles/UTCalculateur.dir/CXX.includecache
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ litterale_rationnelle.h
/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/src/litterale_rationnelle.h
litterale_reelle.h
/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/src/litterale_reelle.h
operateur_numerique.h
/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/src/operateur_numerique.h
operateur_binaire.h
/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/src/operateur_binaire.h

/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/src/litterale.cpp
litterale.h
Expand All @@ -177,10 +177,18 @@ litterale.h
/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/src/litterale_complexe.cpp
iostream
-
complex
-
litterale_complexe.h
/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/src/litterale_complexe.h

/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/src/litterale_entiere.cpp
iostream
-
cmath
-
exceptions.h
/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/src/exceptions.h
litterale_entiere.h
/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/src/litterale_entiere.h
litterale_rationnelle.h
Expand All @@ -193,6 +201,8 @@ litterale_complexe.h
/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/src/litterale_rationnelle.cpp
algorithm
-
cmath
-
exceptions.h
/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/src/exceptions.h
litterale_rationnelle.h
Expand Down Expand Up @@ -237,16 +247,42 @@ litterale_complexe.h
/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/src/litterale_complexe.h
operateur.h
/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/src/operateur.h
operateur_numerique.h
/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/src/operateur_numerique.h
operateur_binaire.h
/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/src/operateur_binaire.h
qcalculateur.h
/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/src/qcalculateur.h
pile.h
/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/src/pile.h

/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/src/operateur_numerique.cpp
operateur_numerique.h
/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/src/operateur_numerique.h
/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/src/operateur.cpp
map
-
iostream
-
memory
-
operateur.h
/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/src/operateur.h
operateur_binaire.h
/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/src/operateur_binaire.h
operateur_unaire.h
/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/src/operateur_unaire.h

/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/src/operateur_binaire.cpp
QString
-
iostream
-
operateur_binaire.h
/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/src/operateur_binaire.h
litterale_entiere.h
/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/src/litterale_entiere.h
litterale_reelle.h
/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/src/litterale_reelle.h

/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/src/operateur_unaire.cpp
operateur_unaire.h
/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/src/operateur_unaire.h

/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/src/pile.cpp
pile.h
Expand Down Expand Up @@ -1886,7 +1922,13 @@ include/litterale.h
exceptions.h
include/exceptions.h

include/operateur_numerique.h
include/operateur_binaire.h
operateur.h
include/operateur.h

include/operateur_unaire.h
QString
-
operateur.h
include/operateur.h

Expand Down
4 changes: 3 additions & 1 deletion CMakeFiles/UTCalculateur.dir/DependInfo.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ set(CMAKE_DEPENDS_CHECK_CXX
"/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/src/litterale_rationnelle.cpp" "/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/CMakeFiles/UTCalculateur.dir/src/litterale_rationnelle.cpp.o"
"/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/src/litterale_reelle.cpp" "/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/CMakeFiles/UTCalculateur.dir/src/litterale_reelle.cpp.o"
"/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/src/main.cpp" "/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/CMakeFiles/UTCalculateur.dir/src/main.cpp.o"
"/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/src/operateur_numerique.cpp" "/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/CMakeFiles/UTCalculateur.dir/src/operateur_numerique.cpp.o"
"/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/src/operateur.cpp" "/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/CMakeFiles/UTCalculateur.dir/src/operateur.cpp.o"
"/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/src/operateur_binaire.cpp" "/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/CMakeFiles/UTCalculateur.dir/src/operateur_binaire.cpp.o"
"/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/src/operateur_unaire.cpp" "/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/CMakeFiles/UTCalculateur.dir/src/operateur_unaire.cpp.o"
"/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/src/pile.cpp" "/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/CMakeFiles/UTCalculateur.dir/src/pile.cpp.o"
"/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/src/qcalculateur.cpp" "/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/CMakeFiles/UTCalculateur.dir/src/qcalculateur.cpp.o"
"/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/src/qclavier.cpp" "/home/hoangkplog/Desktop/CPP_Project/UTCalculateur/CMakeFiles/UTCalculateur.dir/src/qclavier.cpp.o"
Expand Down
Binary file not shown.
Loading

0 comments on commit d3a7e5d

Please sign in to comment.