• 0

[C++] Printing all the values in an array


Question

I wanted to know if it is possible to print all the values in an array. For example I have an array size of 50. But not all 50 are used. Lets say I just have 1 value stored in that array at index 1. So I want to just print that value. The problem is the other "slots" have weird values such as -858993460. Thanks for any help!

Link to comment
Share on other sites

Recommended Posts

  • 0

Um, I really don't know of many resources; I just pretty much learn on my own; that's why I wasn't quite familiar with x+= (y>5) ? y : 0

ditto with c#; i knew c++ syntax and the rest i figured out from intellisense and msdn (and google...getting tray icon balloon tips to function in .net is far from straightforward)

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.