1.23
2.0
main
test-branch
|
Last change
on this file since ea8d8ce was 5af87592, checked in by Manchun Zheng <zmanchun@…>, 12 years ago |
|
implemented new command line specification, added grammar for command line specification, supported linking and command line macros now, improved the clarity of compare command.
git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@1665 fb995dde-84ed-4084-dfe6-e5aef3e2452c
|
-
Property mode
set to
100644
|
|
File size:
159 bytes
|
| Line | |
|---|
| 1 | int getMax(int* array, int length){
|
|---|
| 2 | int max = array[0];
|
|---|
| 3 |
|
|---|
| 4 | for(int i = 1; i < length; i++){
|
|---|
| 5 | if(array[i] > max)
|
|---|
| 6 | max = array[i];
|
|---|
| 7 | }
|
|---|
| 8 | return max;
|
|---|
| 9 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.