Hi all,
My teacher gave me a code and told me to try to understand it.
I have some questions would you please help me?
1- I know this code is for modelling but why he has written this part of code?
2- what are lines 20-23 for?
3-what does line 27 do? What is necessity of it?
4- what do lines 30-38 do?
5-what doe lines 42-43 do? what does tk:: do?
6- what is the purpose of lines 47-51-55-59?
Thanks for your reply.
1- But what does "int argc, char *argv[])" in main statement do?
2- what would happen if did not write "tk::" in line 42?
3- what about lines 31-38? what do argc, argv do?
The first argument to main() is the number of
parameters passed to the program.
The second argument to main() is an
array of pointers to null-terminated character strings
2- what would happen if did not write "tk::" in line 42?
I don't know since i don't know what's inside the files that are included.
But since tk::running is set to true the while loop on next line is infinite.
if you didn't set tk::running to true on line 42, the loop would just run aslong tk::running is true. or >= 1