I've been using Visual Studio ... since I was in diapers.
Valid excuse :icon_mrgreen:
For n00bs trying hello world proggies, \Masm32\qEditor,
RichMasm or one of the IDEs that you find in the subforums are easier to use than that behemoth of VS. But since you are used to it, go ahead ;-)
It's the strangest example of using the REPEAT directive I've ever seen. He says he uses the REPEAT directive to create an array of 52 DWORDS but why, if your intent is to create an array, would you declare all 52 DWORDS as LOCAL? And why would you create an array in 52 steps? It's just whacky.
YES. Something like this should do:
WEEKS_PER_YEAR = 52
WR_WEEK STRUCT
rainfall dd ?
humidity dd ?
WR_WEEK ENDS
WeatherReadings STRUCT
location BYTE 50 dup(?)
weeks WR_WEEK WEEKS_PER_YEAR dup(<?>)
WeatherReadings ENDS
I attach an advanced example, which creates (random) readings for n cities, writes them to a data file, reads them back and displays them e.g. as
...
week #50 25 59
week #51 22 58
City #2 rain umidity
week #0 24 83
week #1 16 43
week #2 19 26
week #3 10 55
week #4 16 96
What your mean is i think "mangled C++ names"
No, he doesn't mean "mangled C++ names".