Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Its possible sum strings?

$
0
0

@pxt wrote:

hello!
in processing i do:

 String text = " hello"; 

 for (int i = 0; i < 4; i++) {
    text += text;
  }

and text now is hellohellohellohello.
its possible in openframeworks?

try this but it doesnt work:

    string typeStr;
    typeStr = "hello";

   for(int i =0; i > 4;i++){
        typeStr+=typeStr;
    }

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles