-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Karatsuba Algorithm C++ #3926
Karatsuba Algorithm C++ #3926
Conversation
@@ -0,0 +1,6 @@ | |||
CMAKE_MINIMUM_REQUIRED(VERSION 3.0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't use CMake in our repository. A build system is unnecessary.
#include <stdlib.h> | ||
#include <time.h> | ||
#include <vector> | ||
#include <math.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cmath?
#include <string> | ||
#include <unistd.h> | ||
#include <stdlib.h> | ||
#include <time.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ctime?
#include <fstream> | ||
#include <string> | ||
#include <unistd.h> | ||
#include <stdlib.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cstdlib?
#include "Entero.hpp" | ||
|
||
|
||
using namespace std; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't use this.
|
||
using namespace std; | ||
|
||
string Entero::operator+(Entero &E) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you change all your code to English so most people can understand it?
|
||
#include <stdio.h> | ||
|
||
#define PLACE(x,y) printf("\033[%d;%dH",x,y) //!< Place |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't use these macros. They are unnecessary for this algorithm.
} while (opcion != 0); | ||
|
||
return 0; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add newlines to end of all your files.
Fixes issue:
This program allow to do Karatsuba Multiply Algorithm in C++, developed with standard c++11.
Changes: