theodoreda / infinite_c_calculator Goto Github PK
View Code? Open in Web Editor NEWInspired by Bistro Epitech project.
Inspired by Bistro Epitech project.
Need to do a function to process a division that can contain an infinite number of digits
The function definition:
char *exec_infin_div(char *operation, int ope_idx);
In this function, you have to process the result, and write it inside a dynamically allocated variable, and return it.
Careful about div by 0.
You must not free the received operation.
In the file sources/calculations/expr.c
, I need to check if the -
found is an actual operator or a sign in:
find_next_operator()
process_expr()
ligne 40Need to do a function to process an addition that can contain an infinite number of digits
The function definition:
char *exec_infin_add(char *operation, int ope_idx);
In this function, you have to process the result, and write it inside a dynamically allocated variable, and return it.
You must not free the received operation.
check_errors:
parenthesis:
expr:
utils:
Need to do a function to process a multiplication that can contain an infinite number of digits
The function definition:
char *exec_infin_mult(char *operation, int ope_idx);
In this function, you have to process the result, and write it inside a dynamically allocated variable, and return it.
You could call the
exec_infin_add()
function X times, where X is the lowest number of the operation ?
You must not free the received operation.
Need to do a function to process a subtraction that can contain an infinite number of digits
The function definition:
char *exec_infin_min(char *operation, int ope_idx);
In this function, you have to process the result, and write it inside a dynamically allocated variable, and return it.
You must not free the received operation.
Need to do a function to process a modulo that can contain an infinite number of digits
The function definition:
char *exec_infin_mod(char *operation, int ope_idx);
In this function, you have to process the result, and write it inside a dynamically allocated variable, and return it.
You must not free the received operation.
Just because it's better
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.