mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-02-09 05:27:11 +08:00
made functions static to files
*BUG* in CPP lint github action
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
|
||||
#include <cmath>
|
||||
#include <iostream>
|
||||
|
||||
float eq(float y) { return ((3 * y) - (cos(y)) - 2); }
|
||||
float eqd(float y) { return ((0.5) * ((cos(y)) + 2)); }
|
||||
static float eq(float y) { return ((3 * y) - (cos(y)) - 2); }
|
||||
static float eqd(float y) { return ((0.5) * ((cos(y)) + 2)); }
|
||||
|
||||
int main() {
|
||||
float y, x1, x2, x3, sum, s, a, f1, f2, gd;
|
||||
|
||||
Reference in New Issue
Block a user