Search:

Type: Posts; User: dciampa

Search: Search took 0.01 seconds.

  1. Replies
    11
    Views
    11,004

    This is my code, the array wont bring the rows...

    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] =...
  2. Replies
    11
    Views
    11,004

    Bubble sort would be: Original: 4 6 4 8 6 6...

    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
  3. Replies
    11
    Views
    11,004

    Hey so if I were to use a bubble sort and sort it...

    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...
  4. Replies
    11
    Views
    11,004

    lol its built into ROOT (a data analysis program)

    lol its built into ROOT (a data analysis program)
  5. Replies
    11
    Views
    11,004

    The compiler I am using cannot use more than one...

    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...
  6. Replies
    11
    Views
    11,004

    Sort a 2D array

    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...
  7. Replies
    2
    Views
    1,061

    Calling other scripts

    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...
  8. Thread: Sorting!

    by dciampa
    Replies
    2
    Views
    846

    I understand you can't give away code, i meant...

    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
  9. Thread: Sorting!

    by dciampa
    Replies
    2
    Views
    846

    Sorting!

    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...
  10. Replies
    1
    Views
    1,834

    Sort integers in text file

    I need to sort the left most integers from 1-20,



    9 113
    4 910
    18 113
    19 113
    10 114
    5 113
  11. Thread: Tables in C

    by dciampa
    Replies
    7
    Views
    1,313

    Im using Linux Ubuntu and writing it with emacs,...

    Im using Linux Ubuntu and writing it with emacs, will be running the script with ROOT, a data analysis tool.
  12. Thread: Tables in C

    by dciampa
    Replies
    7
    Views
    1,313

    Yea id like the boxes to be drawn if thats...

    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
  13. Thread: Tables in C

    by dciampa
    Replies
    7
    Views
    1,313

    Thanks!

    Thanks!
  14. Thread: Tables in C

    by dciampa
    Replies
    7
    Views
    1,313

    Tables in C

    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...
  15. Replies
    5
    Views
    1,238

    Well most of the commands in ROOT are written in...

    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.
  16. Replies
    5
    Views
    1,238

    ROOT is a data analysis tool. It's not well known...

    ROOT is a data analysis tool. It's not well known outside of scientists


    http://root.cern.ch/drupal/
  17. Replies
    5
    Views
    1,238

    Quick Question on ROOT and C++

    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...
  18. Replies
    10
    Views
    1,295

    yea, i need to write a script in C++ that...

    yea, i need to write a script in C++ that utilizes ROOT files
  19. Replies
    10
    Views
    1,295

    meant to say yes! haha sorry

    meant to say yes! haha sorry
  20. Replies
    10
    Views
    1,295

    Thank you, if anyone has any more tips then thank...

    Thank you, if anyone has any more tips then thank you in advance!
  21. Replies
    10
    Views
    1,295

    Well I haven't really written any type of script...

    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...
  22. Replies
    10
    Views
    1,295

    Thanks for the response. So I'm using Ubuntu,...

    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...
  23. Replies
    10
    Views
    1,295

    Need some help with script please:

    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++......
Results 1 to 23 of 23