Shorten variables

How to shorten this?
1
2
3
4
          int TotalProject,TotalTest,TotalMark;
        TotalProject = 0;
        TotalTest = 0;
        TotalMark = 0;


Is there any way to shorten it?

Like in Lua,

 
a,b,c = 1,2,3


I am sorry if I posted in the wrong section of forum. Thank you for the help.
Last edited on
Nevermind~
you can shorten it in c++ like

int TotalProject=0,TotalTest=0,TotalMarks=0;

BTW did you found the solution yourself?
Last edited on
Topic archived. No new replies allowed.