sort
This commit is contained in:
parent
ff66e2ef5d
commit
c54b4ce2eb
|
@ -136,11 +136,16 @@ int alg(char *ptr) {
|
||||||
|
|
||||||
// gdb: p/x (model[]*)p[0].len
|
// gdb: p/x (model[]*)p[0].len
|
||||||
// gdb: p/s (char *)(model[]*)p[2].ptr
|
// gdb: p/s (char *)(model[]*)p[2].ptr
|
||||||
|
// gdb: p *p@5
|
||||||
// :) powered by rv32i
|
// :) powered by rv32i
|
||||||
int main() {
|
int main() {
|
||||||
char *str = " Success is often defined as the ability to reach your goals in life, whatever those goals may be. In some ways, a better word for success might be attainment, accomplishment, or progress. It is not necessarily a destination but a journey that helps develop the skills and resources you need to thrive.";
|
char *str = " Success is often defined as the ability to reach your goals in life, whatever those goals may be. In some ways, a better word for success might be attainment, accomplishment, or progress. It is not necessarily a destination but a journey that helps develop the skills and resources you need to thrive.";
|
||||||
alg(str);
|
alg(str);
|
||||||
asm ("nop");
|
|
||||||
|
|
||||||
|
asm ("nop");
|
||||||
|
|
||||||
|
bubbleSort(p,10);
|
||||||
|
|
||||||
|
asm ("nop");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,4 +8,6 @@ struct model {
|
||||||
uint32_t len ;
|
uint32_t len ;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
void bubbleSort(model arr[], int n);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue