Article 6H8QE how do i declare a whole bunch of integer variables

how do i declare a whole bunch of integer variables

by
atjurhs
from LinuxQuestions.org on (#6H8QE)
hi,

i have 14 variables that are integers. i would like to "hard code" them into my c++ code. is there a way to declare them all as integers (as a group) with one command or do i have to declare them each individually as ints in the "usual way"?

please forgive me if i'm not explaining my question very well. i'm very new to coding

thanks!
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments