Skip to content

Commit

Permalink
Update charper6(1)
Browse files Browse the repository at this point in the history
  • Loading branch information
tabVersion authored Dec 7, 2017
1 parent e697a78 commit 79fd411
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions charper6(1)
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ int main()
}
*/

C 动态申请数组 不好意思这个题的代码一直是格式错误 等到我ac了再改吧
C 动态申请数组 值得注意的是这个题目的格式要求最后不能有空格
/*
#include <cstdio>
#include <iostream>
Expand All @@ -68,11 +68,13 @@ int main()
ptr++;
}
sort(p, ptr );
for (; p != ptr; p++)
for (; p != ptr-1; p++)
{
if(*p != inf )cout << *p << " ";
else cout << 0 << " ";
}
if(*(p+n)) cout << 0 ;
else cout << *(p+n) ;
return 0;
}
*/
Expand Down

0 comments on commit 79fd411

Please sign in to comment.