So I recently installed ROOT on my Ubuntu 16.04 LTS computer. However, I have several programs which are supposed to cout data to the terminal that refuse to do this. Strangely enough these programs don’t display any errors. They just won’t display the data I need. I am including two examples here. The first example runs with no errors and displays data to the terminal. The second program fails to display the appropriate data. If anyone has had an issue like this before or knows what might be going on I would appreciate the input. Please forgive any errors or forum etiquette as I am a brand new poster.
If it is the actual code - then both should be ok, since they are both commented out. If it is not - please show the real code, not this … hmmm. snippet.
This is the ROOT forum and your programs do not use ROOT. Please refer to C++ fora in the future.
Have a look to the original post. You will see how display code in posts.
As timur says, if the comments are there, nothing will happen, but this maybe you know. The memory is uninitialised, I wonder what you are trying to achieve with the code above. Try:
@tpochep: Unfortunately this code is only an example. I had to comment it out for this post because the include statements were getting blown up by the software used to post here. I have a much longer code which involves root but I created these two examples to make it simpler to read.
@Danilo: Thanks for the input! However, when I run the code you suggested the result is the same. The code runs to completion and automatically exits root without displaying any information other than the root intro and: “Processing Medians.cpp…” Thank you.