mirror of
https://github.com/epasveer/seer.git
synced 2026-08-31 01:20:45 +08:00
update
This commit is contained in:
@@ -46,6 +46,15 @@
|
||||
*
|
||||
*/
|
||||
int factorial(int n) {
|
||||
struct structTetst testStruct = {-2, "test", {-1, "childTest"}};
|
||||
testStruct.id ++;
|
||||
testStruct.id ++;
|
||||
testStruct.id ++;
|
||||
int abc = 0;
|
||||
abc ++;
|
||||
abc *= 2;
|
||||
testStruct.child.childId ++;
|
||||
testStruct.child.childString = "childTest " + std::to_string(abc);
|
||||
if (n <= 1) return 1;
|
||||
return n * factorial(n - 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user