Question
Word count in C++
Hi,
I have a script to add word count in JavaScript but I don't know how to implement the count values in C++. Hereby I have attached the JavaScript code which I need to convert C++ for developing our own plugin. Can someone guide me to implement the code in C++.
var wordCount = 0;
for (var i = 0; app.activeDocument.stories.length > i; i++)
wordCount += app.activeDocument.stories[i].words.length;
