Printing an array in C++?

前端 未结 10 1236
谎友^
谎友^ 2020-11-27 14:35

Is there a way of printing arrays in C++?

I\'m trying to make a function that reverses a user-input array and then prints it out. I tried Googling this problem and i

10条回答
  •  爱一瞬间的悲伤
    2020-11-27 15:02

    Most of the libraries commonly used in C++ can't print arrays, per se. You'll have to loop through it manually and print out each value.

    Printing arrays and dumping many different kinds of objects is a feature of higher level languages.

提交回复
热议问题