Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How to program BASIC arrays in Xcode/Objective-C

First sorry for the spelling I am dislex....


I am just starting out from a background of BASIC and C and are finding some of (LOTS) of the Objective-C strange.

One problem that might help me on my way would be if someone could tell me how to implement the pseudo program included below in Objective-C.


let min-index=0

let max-index=200

dim a$(max-index)

match$="FAUSE"


open data-file

index = min-index

repate

a$(index)=line-input from file

index = index + 1

until EOF

max-index = index


input b$


for index = min-index to max-index

if a$(index) = b$ then

match$ = "Match found"

next index


print match$



I would like this so that there is a window with a text entry box (input a$) and a text display box (print match$)



Can any one show me how to do this?

Posted on Apr 27, 2012 3:07 AM

Reply
3 replies

Apr 27, 2012 11:25 AM in response to etresoft

The program is just a start point for a much bigger program but it includes all of the types of things I want help with.


As for writting it in C would that not mean that the input and output be to a terminal? (I want to use a GUI)


The documenation douse not help in working out how to interface C to "Interface Builder" to make a GUI?


Thank you

How to program BASIC arrays in Xcode/Objective-C

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.