mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-04-14 02:30:40 +08:00
style: remove unused params of main (#2948)
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>
This commit is contained in:
@@ -91,7 +91,7 @@ void non_recursive_merge_sort(const Iterator first, const Iterator last) {
|
||||
|
||||
using sorting::non_recursive_merge_sort;
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
int main() {
|
||||
int size;
|
||||
std::cout << "Enter the number of elements : ";
|
||||
std::cin >> size;
|
||||
|
||||
@@ -49,7 +49,7 @@ void print(int a[], int n) {
|
||||
std::cout << std::endl;
|
||||
}
|
||||
|
||||
int main(int argc, char const* argv[]) {
|
||||
int main() {
|
||||
int a[] = {170, 45, 75, 90, 802, 24, 2, 66};
|
||||
int n = sizeof(a) / sizeof(a[0]);
|
||||
radixsort(a, n);
|
||||
|
||||
@@ -316,11 +316,9 @@ static void test() {
|
||||
|
||||
/**
|
||||
* @brief Main function
|
||||
* @param argc commandline argument count (ignored)
|
||||
* @param argv commandline array of arguments (ignored)
|
||||
* @returns 0 on exit
|
||||
*/
|
||||
int main(int argc, char *argv[]) {
|
||||
int main() {
|
||||
test(); // Executes various test cases.
|
||||
|
||||
const int64_t inputSize = 10;
|
||||
|
||||
@@ -72,8 +72,6 @@ void test3() {
|
||||
|
||||
/**
|
||||
* @brief Main function
|
||||
* @param argc commandline argument count (ignored)
|
||||
* @param argv commandline array of arguments (ignored)
|
||||
* @returns 0 on exit
|
||||
*/
|
||||
int main() {
|
||||
|
||||
Reference in New Issue
Block a user