M
M
Mikhail72016-10-30 18:52:16
Arduino
Mikhail7, 2016-10-30 18:52:16

How to call a class method if its name is in a variable on arduino(C)?

How to call a class method if its name is in a variable?
extern char buffer[100]; - contains A.start();
how to call start method of class A? Moreover, there is no string as such, there is only an array of characters.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Александр Пожарский, 2016-10-31
@Mikhail7

Очевидно, в такой постановке (кстати, C++ же) :
Но вообще - это какой-то странный подход.

M
Mikhail7, 2016-11-15
@Mikhail7

The decision came by itself. Decided to use an array of pointers to functions.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question