Jump to content

FIZ

Members
  • Posts

    2
  • Joined

  • Last visited

  1. Hi Yurgon, Yes I know that the ; semicolon is there it will not compile in TARGET without it. I also note your further comment about keeping it public... I agree. The FOR word is definitely in the TARGET script as it goes blue when you try to use it. It just doesn't do like a normal for loop syntax of C. e.g. for (ctr=0 ; ctr <= 10; ctr++) { printf("This number is %d which is less than 11\n, ctr); } So I'm just looking for some help in the TARGET script syntax of it really. 352nd_Hoss thanks for the info about Sedenion. If there is no reply here for a couple weeks I will ask for the help with Sedenion. (Much obliged). Perhaps Sedenion will see it and answer. Fiz.
  2. Hi, Fiz here. I'm new to this DCS wondered if someone could assist with the following loop to get it to work. (I know how to do it in while and do loops) I would like to use a FOR loop for other things. It should simply count from 1 to 10. //This FOR loop which compiles in TARGET script editor but throws runtime error "symbol not found": "for" int ctr=1; for (ctr , ctr <= 10, ctr+1); { printf("This number is %d which is less than 11\xa",ctr); } Has anyone got any idea why the FOR loop doesn't work I know that TARGET script is slightly different from the C language but it is pretty close.
×
×
  • Create New...