This is my code, the array wont bring the rows with the assorted number
{
int array[5][5] = {5,4,8,3,8,9,2,5,4,9,7,6,1,4,3,5,6,3,9,7,8,3,4,2,6};
int temp[5][5] =...
Type: Posts; User: dciampa
This is my code, the array wont bring the rows with the assorted number
{
int array[5][5] = {5,4,8,3,8,9,2,5,4,9,7,6,1,4,3,5,6,3,9,7,8,3,4,2,6};
int temp[5][5] =...
Bubble sort would be:
Original:
4 6 4 8 6
6 1 3 2 8
1 4 7 6 0
Sorted:
1 6 4 8 6
4 1 3 2 8
Hey so if I were to use a bubble sort and sort it according to the first column on the left then won't I only be sorting those numbers? I need the whole row to go wherever the column goes. Do u get...
lol its built into ROOT (a data analysis program)
The compiler I am using cannot use more than one function -_- sucks.
As for the real functions i meant i cant use anything other than my main()...
And don't worry it's not homework, this is...
I have a 2-Dimensional array Final[20][7] and i need to sort it according to the left most integers. Now the tricky part is that I can't use any returns or and real functions. It pretty much has to...
I have two scripts that analyze data, now I'd like to have one script that calls each of these two scripts. I can't just copy and paste the code from each script into one because the location of each...
I understand you can't give away code, i meant more of the functions, not actually a whole working script. Whats the point of doing this if you don't learn!
Thanks for the help
I have a script that will sort an input of integers that you want to sort, but this input is through terminal. I want to alter the script so that it sorts a set of integers that will be read from a...
I need to sort the left most integers from 1-20,
9 113
4 910
18 113
19 113
10 114
5 113
Im using Linux Ubuntu and writing it with emacs, will be running the script with ROOT, a data analysis tool.
Yea id like the boxes to be drawn if thats possible, if not then just an allocated spot for the information in a set of columns and rows would be awesome
Thanks!
Ok so I need to create a table that will hold information. I need the table to be simple, so if someone could just point me to the tutorial for this or write out some code that may work. Pretty much...
Well most of the commands in ROOT are written in C++, I have used this site for C++ training. So I wanted to come here to get help. Obviously that was a bad choice though, thanks for informing me.
ROOT is a data analysis tool. It's not well known outside of scientists
http://root.cern.ch/drupal/
Just a quick question. I was asked to do a set of things with ROOT to create a macro:
1) Create histogram using this command TH1F *h = new TH1F("h", "h", 60,0,60);
2) Open a root file
3) Then...
yea, i need to write a script in C++ that utilizes ROOT files
meant to say yes! haha sorry
Thank you, if anyone has any more tips then thank you in advance!
Well I haven't really written any type of script yet, I am sort of a beginner when it comes to this type of coding, I previously worked in FORTRAN so im only used to that. But yea I don't even know...
Thanks for the response. So I'm using Ubuntu, working with a bunch of ROOT files that have a bunch of information poured into histograms. These histograms plot numerous events. Now I need to read the...
So I have to write a script that involves opening a histogram and reading the information within. This may seem a bit cryptic since I'm using .ROOT files but this is what needs to be done in C/C++......