Please read tips for efficient and successful posting and posting code
_ROOT Version:_6.20/04
Platform: Ubuntu 18.04 running in a VirtualBox VM on Win 10 laptop
Compiler: installed CERN binary
I am totally new to root (and almost totally new to c++) and I was following a tutorial video from ACU. In lesson 2 he uses SetPoint to generate data for a graph. When I tried to emulate the code I get a seg fault. The SetPoint statement works OK from the ROOT command line but within a script it causes a fault. Can someone please let me know if I am doing something wrong?
{
g=new TGraph();
for(k=0,k<25,k++){
g->SetPoint(k, k, k*k-4*k+7);
}
g->Draw("AP");
}
I also have a non-root-related question. I hate re-typing. Does anyone know how to paste items that I copied to the clipboard from within the VM running Linux to the windows side? I already installed the Guest Additions.