I'm just at the beginning of programming, so please forgive me if this question sounds dumb.
I'm trying to alter a variable inside a for/if loop. Unfortunately I can't get it to work. Maybe someone of you could give me a hint to the solution?
The Problem is with the variable "Tallyp1, Tallyp2, Tallyp3..."
I have this piece of code:
int Tallyp1 = 0;
int Tallyp2 = 0;
int Tallyp3...
for (int t = 0; t < 8; t++){
if (AtemSwitcher.getTallyByIndexTallyFlags(t+1) == 1 | AtemSwitcher.getTallyByIndexTallyFlags(t+1) == 3 && (Tallyp(t+1)) == 0 ){
The error returned is that "'Tallyp' was not declared in this scope"
That is right because it has to be "Tallyp1, Tallyp2..."
It dowsn't seem to recognize the operation as part of the variable name. How do I alter this variable inside the for/if loop?
Sorry for my bad english - I don't know how to describe it better.
when posting source code files. It makes it easier to read, and can be copied with a single mouse click. Also, if you don't do it, some of the character sequences in the code can be misinterpred by the forum code as italics or funny emoticons.
If you have already posted without using code tags, open your message and select "modify" from the pull down menu labelled, "More", at the lower left corner of the message. Highlight your code by selecting it (it turns blue), and then click on the "</>" icon at the upper left hand corner. Click on the "Save" button.