potat-dev / cpplabs Goto Github PK
View Code? Open in Web Editor NEWС++ Programming Labs at the SUAI university 🚀
License: MIT License
С++ Programming Labs at the SUAI university 🚀
License: MIT License
The random number generator produces the same sequence
sort_list
function is not working properly
For example input file:
lorem ipsum dolor sit amet
Prints output:
amet sit dolor ipsum lorem
Why the 2nd word is sit
?? 🤔idk
Maybe this line has an error:
When removing duplicates on medium file, come words is corrupted (35 & 42):
34 -- libero
35 -- ╚"q
36 -- luctus
/ -------- /
41 -- mi
42 -- `)q
43 -- mollis
Idk what is this 👀
Rewrite this strcmp function!
And do not use fgets!
Last word in any line always ignored by program
For example:
arc arc ser arc ser ter ser arc
Gives the output:
arc - 3 times, ser - 3 times
which is wrong
But input:
arc arc ser arc ser ter ser arc gth
Gives the correct answer:
arc - 4 times, ser - 3 times
I think this is because of this line of code:
https://github.com/DenCoder618/SUAI-Labs/blob/6e2a3b3e248fec670a88efdb44b9a8f25378081c/Lab_2/Lab_2.c#L30 which did not expects \n
symbol at the end of the line
implemented + and - operators for HugeInt class:
but they are not working properly:
618 + 42 = 660
618 - 42 = 6
-618 + 42 = 660
-618 - 42 = 6
618 + -42 = 660
618 - -42 = 6
-618 + -42 = 660
-618 - -42 = 6
When I try to multiply two polynomials like this:
https://github.com/CyberPotat42/SUAI-Labs/blob/619dbbbf28ac68fabacb6bf25052866939f0047d/Semester_2/Lab_9/main.cpp#L84-L95
This works great!
x - 1
x - 2
x^2 - 3x + 2
But when i try to multiply them in a loop:
https://github.com/CyberPotat42/SUAI-Labs/blob/619dbbbf28ac68fabacb6bf25052866939f0047d/Semester_2/Lab_9/main.cpp#L105-L118
Then for some reason the wrong answer is given:
input n = 2
input 2 numbers: 1 2
x - 1
x - 2
x^2 - 4x + 4
Perhaps this is due to incorrect handling of pointers or a memory leak
I think it's time for me to sleep 💤
Function removes elements with a shift, which leads to incorrect results
For example:
list: 0 1 2 3 4 5 6 7
remove_nodes from 5 to 8
expected output: 0 1 2 3 4
real output: <empty> [error]
Function that converts a character to lowercase does not work correctly
Example input:
HelloComMa WorldDoT How r UqStn
Expected output:
Hello, World. How r U?
But the program does not perform the replacement
Эта библиотека тут нигде не используется
https://github.com/DenCoder618/Lab_0/blob/2f7787d1cb89f757fed4c3a9d24ebeb1d1cbc15c/lab0-n7.c#L2
in the code, this line
https://github.com/DenCoder618/SUAI-Labs/blob/83277491c9d98a3e8ceb22def1abb90d9bca8b01/Lab_5/Lab_5.c#L51
with #define USE_RUS 1
prints following:
Введите строку:
I think this is because of Windows cp1251 encoding
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.