Skip to content

Commit ca955dd

Browse files
committed
Refine the copyright description of each file.
1 parent c27641e commit ca955dd

File tree

3 files changed

+37
-25
lines changed

3 files changed

+37
-25
lines changed

src/lib/calc.cpp

+15-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
1+
/**
2+
* @file calc.cpp
3+
* @author Seiichi Horie
4+
* @brief Demonstration class implementation.
5+
* @version 0.1
6+
* @date 2022-Oct-31
7+
*
8+
* @copyright (c) Seiichi Horie 2024
9+
*
10+
*/
11+
112
#include "calc.hpp"
13+
214
#include <assert.h>
315

4-
double Calc::sqrt(double param)
5-
{
6-
assert(param >= 0);
16+
double Calc::sqrt(double param) {
17+
assert(param >= 0);
718

8-
return std::sqrt(param);
19+
return std::sqrt(param);
920
}

src/lib/calc.hpp

+12-13
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/**
22
* @file calc.hpp
3-
* @author your name (you@domain.com)
4-
* @brief
3+
* @author Seiichi Horie
4+
* @brief Demonstration class.
55
* @version 0.1
6-
* @date 2022-01-22
6+
* @date 2022-Oct-31
77
*
8-
* @copyright Copyright (c) 2022
8+
* @copyright (c) Seiichi Horie 2024
99
*
1010
*/
1111
#include <cmath>
@@ -14,13 +14,12 @@
1414
* @brief Test struct
1515
*
1616
*/
17-
struct Calc
18-
{
19-
/**
20-
* @brief Calcurate the square root
21-
*
22-
* @param param Must be positive or zero.
23-
* @return double square root of param
24-
*/
25-
double sqrt(double param);
17+
struct Calc {
18+
/**
19+
* @brief Calculate the square root
20+
*
21+
* @param param Must be positive or zero.
22+
* @return double square root of param
23+
*/
24+
double sqrt(double param);
2625
};

src/main.cpp

+10-8
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
/**
22
* @file main.cpp
3-
* @author your name (you@domain.com)
4-
* @brief
3+
* @author Seiichi Horie
4+
* @brief Pico/Win-Unix Bi-modal program.
55
* @version 0.1
6-
* @date 2022-01-22
7-
*
8-
* @copyright Copyright (c) 2022
6+
* @date 2024-Oct-31
97
*
8+
* @copyright (c) Seiichi Horie 2024
109
*/
1110
#if __has_include(<pico/stdlib.h>)
1211
#include <pico/stdlib.h>
@@ -46,9 +45,12 @@ int main() {
4645
}
4746
#endif
4847

49-
// count from 1 to num
50-
for (int i = 1; i <= 10; i++)
51-
printf("[CalcSqrt] The square root of %d is %f \n", i, calc.sqrt(i));
48+
// Write user code here.
49+
{
50+
// count from 1 to num
51+
for (int i = 1; i <= 10; i++)
52+
printf("[CalcSqrt] The square root of %d is %f \n", i, calc.sqrt(i));
53+
}
5254

5355
#if __has_include(<pico/stdlib.h>) // Is target pico/Pico2?
5456
// tell user we have finished.

0 commit comments

Comments
 (0)