C++
Metsa
这个作者很懒,什么都没留下…
展开
-
总结遍历二维数组的方式
#include #include #include #include #include using namespace std; int tl(){ return 2; } int main(){ constexpr int row = 2, col = 3; int arr[row][col] = {1,2,3,4,5,6}; for原创 2016-01-24 09:05:29 · 384 阅读 · 0 评论 -
Reverse a sentence
#include using namespace std; char sentence[] = "i like this program"; //1.reverse all chars //2.rever only words. void revese_char(char* _string) { char* start = _string; char* end = start; w原创 2016-07-12 06:17:34 · 266 阅读 · 0 评论