New to C++ but can read it
I need to break out a string sent via the serial port.

The string :"N,1,2,3,4,5,6"
I figure if I can load the string into an array then I can refer to each item via the index.
EG: Myarray[0] should hold "N"

Recommended Answers

All 2 Replies

You figured correctly.

Ok then.

fd=readserial()
fd[0]="N"
fd[1]="1"

correct? Forgive the code, I really am learning

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.