mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-04-13 17:50:45 +08:00
style: remove unused params of main (#2948)
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>
This commit is contained in:
@@ -87,13 +87,11 @@ static void test() {
|
||||
|
||||
/**
|
||||
* @brief Main function
|
||||
* @param argc commandline argument count (ignored)
|
||||
* @param argv commandline array of arguments (ignored)
|
||||
* calls automated test function to test the working of fast fourier transform.
|
||||
* @returns 0 on exit
|
||||
*/
|
||||
|
||||
int main(int argc, char const *argv[]) {
|
||||
int main() {
|
||||
test(); // run self-test implementations
|
||||
// with 2 defined test cases
|
||||
return 0;
|
||||
|
||||
@@ -163,8 +163,8 @@ static void test(std::int32_t N, double h, double a, double b,
|
||||
|
||||
/**
|
||||
* @brief Main function
|
||||
* @param argc commandline argument count (ignored)
|
||||
* @param argv commandline array of arguments (ignored)
|
||||
* @param argc commandline argument count
|
||||
* @param argv commandline array of arguments
|
||||
* @returns 0 on exit
|
||||
*/
|
||||
int main(int argc, char** argv) {
|
||||
|
||||
@@ -154,13 +154,11 @@ static void test() {
|
||||
|
||||
/**
|
||||
* @brief Main function
|
||||
* @param argc commandline argument count (ignored)
|
||||
* @param argv commandline array of arguments (ignored)
|
||||
* calls automated test function to test the working of fast fourier transform.
|
||||
* @returns 0 on exit
|
||||
*/
|
||||
|
||||
int main(int argc, char const *argv[]) {
|
||||
int main() {
|
||||
test(); // run self-test implementations
|
||||
// with 2 defined test cases
|
||||
return 0;
|
||||
|
||||
@@ -148,13 +148,11 @@ static void test() {
|
||||
|
||||
/**
|
||||
* @brief Main function
|
||||
* @param argc commandline argument count (ignored)
|
||||
* @param argv commandline array of arguments (ignored)
|
||||
* calls automated test function to test the working of fast fourier transform.
|
||||
* @returns 0 on exit
|
||||
*/
|
||||
|
||||
int main(int argc, char const *argv[]) {
|
||||
int main() {
|
||||
test(); // run self-test implementations
|
||||
// with 2 defined test cases
|
||||
return 0;
|
||||
|
||||
@@ -81,7 +81,7 @@ void test2() {
|
||||
}
|
||||
|
||||
/** Main function */
|
||||
int main(int argc, char **argv) {
|
||||
int main() {
|
||||
std::srand(std::time(NULL)); // random number initializer
|
||||
|
||||
test1();
|
||||
|
||||
@@ -155,8 +155,8 @@ static void test(std::int32_t N, double h, double a, double b,
|
||||
|
||||
/**
|
||||
* @brief Main function
|
||||
* @param argc commandline argument count (ignored)
|
||||
* @param argv commandline array of arguments (ignored)
|
||||
* @param argc commandline argument count
|
||||
* @param argv commandline array of arguments
|
||||
* @returns 0 on exit
|
||||
*/
|
||||
int main(int argc, char** argv) {
|
||||
|
||||
Reference in New Issue
Block a user