print values inside the array with an on click event in C++
ill try my best to get to my point and be descriptive as i can. my other
thread was locked and i apologize for being vague.
please note that below code is only the idea, and not the actual code.
I need help on how to print the characters inside my teststring[] array
one at a time when a button is clicked.
const string teststring[] = {
"a",
"b",
"c",
"d",
};
if ( button ).onclick() == true {
int i = 0;
printf("output: %s\r\n", teststring[i]);
i++
similar to this http://jsfiddle.net/Dfprp/, but this is in javascript. but
the idea is similar. instead of numbers, i want alphabet that is stored in
my array
No comments:
Post a Comment