+ 2

There's any way to search a word in the code?

In C# or C++, there's any way to search a word in a code, example, i have a code and i ask to the console to print all the lines that starts with "int"

28th Nov 2019, 3:22 PM
ninoduckman
ninoduckman - avatar
3 Respuestas
0
I think this calls for a regular expression. It's easy enough in python....but in c++......ohh dear....that's what I'm looking into now,...I need to watch some videos on it first.
29th Nov 2019, 12:17 PM
rodwynnejones
rodwynnejones - avatar
0
In some IDEs you can use ctrl-f to search for text. I’m not sure if that’s the kind of thing you need
29th Nov 2019, 5:58 PM
Rora
0
Thanks for the answers but they are not what I need, I'm doing a project that one of the things that does is do a list of the variables in a code, I will prefer in c++ or c# but it can do in LUA, Pyton or JS, thanks you so much
30th Nov 2019, 12:40 PM
ninoduckman
ninoduckman - avatar