Delete all bad type and functions
Этот коммит содержится в:
@@ -35,11 +35,8 @@
|
|||||||
<Unit filename=".gitignore">
|
<Unit filename=".gitignore">
|
||||||
<Option target="<{~None~}>" />
|
<Option target="<{~None~}>" />
|
||||||
</Unit>
|
</Unit>
|
||||||
<Unit filename="calc_bits.cpp" />
|
|
||||||
<Unit filename="lab04.h" />
|
<Unit filename="lab04.h" />
|
||||||
<Unit filename="main.cpp" />
|
<Unit filename="main.cpp" />
|
||||||
<Unit filename="source.cpp" />
|
|
||||||
<Unit filename="students.cpp" />
|
|
||||||
<Extensions>
|
<Extensions>
|
||||||
<lib_finder disable_auto="1" />
|
<lib_finder disable_auto="1" />
|
||||||
</Extensions>
|
</Extensions>
|
||||||
|
|||||||
37
main.cpp
37
main.cpp
@@ -59,40 +59,3 @@ int main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int main_calc() {
|
|
||||||
uint16_t operand1, operand2;
|
|
||||||
char operation;
|
|
||||||
|
|
||||||
cout << "Enter the first operand (in hexadecimal): ";
|
|
||||||
cin >> std::hex >> operand1;
|
|
||||||
|
|
||||||
cout << "Enter the bitwise operation (&, |, or ^): ";
|
|
||||||
cin >> operation;
|
|
||||||
|
|
||||||
cout << "Enter the second operand (in hexadecimal): ";
|
|
||||||
cin >> std::hex >> operand2;
|
|
||||||
|
|
||||||
uint16_t result = perform_bitwise_operation(operand1, operation, operand2);
|
|
||||||
|
|
||||||
cout << "\nCalculation Result:" << endl;
|
|
||||||
print_calculation(result);
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
int main_students() {
|
|
||||||
// Student
|
|
||||||
Student students[3] = {
|
|
||||||
Student("Alice", 2019, 4.5, 0, 3, nullptr),
|
|
||||||
Student("Bob", 2019, 4.2, 1, 2, nullptr),
|
|
||||||
Student("Charlie", 2019, 4.7, 1, 4, nullptr) // Îáðàòèòå âíèìàíèå, ÷òî òóò íåò óêàçàòåëÿ íà groupLeader
|
|
||||||
};
|
|
||||||
|
|
||||||
// Details
|
|
||||||
for (int i = 0; i < 3; ++i) {
|
|
||||||
std::cout << "\nDetails of Student " << i + 1 << ":" << std::endl;
|
|
||||||
printStudentDetails(students[i]);
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user