Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Mercfh

    Doubly Linked List?

    hmmm got it to stop making too many errors, but now I get a segmentation fault? program dlink c Matt Smith c CS450 c Sine Fortran Doubly Linked List Assignment 1 c23456789 integer nmax real sData(10000) real cData(10000) integer prev(10000) integer next(10000)...
  2. Mercfh

    Doubly Linked List?

    welp im back. got my C++ code of the same thing working perfectly. program dlink c Matt Smith c CS450 c Sine Fortran Doubly Linked List Assignment 1 c23456789 integer nmax real sData(10000) real cData(10000) write(*,*), 'Input n for Number of sin Computations'...
  3. Mercfh

    Doubly Linked List?

    haha no clue. he's old and did all this stuff when he was younger. but I mean the assignment was how he gave it (dont ask me why) i ended up getting it to work in C++ it prints out the next/prev arrays showing the correct index's just gotta sort through them and convert to fortran. if I have...
  4. Mercfh

    Doubly Linked List?

    wow thanks a ton mikron! u have to remember this is my first stab at fortran. now I need to figure out some way to order these using a doubly linked list with arrays. I for sure will have 3 arrays (prev/next/data) I know sorta how it works on paper....but the logic is a little screwy. anyone...
  5. Mercfh

    Doubly Linked List?

    crap modula didnt work this code does work using 1 and n-1 program dlink c Matt Smith c CS450 c sDatae Fortran Doubly Linked List Assignment 1 c23456789 real n real sDatae,cDatae,sDatae1,cDatae1 real sData(10000) real cData(10000) write(*,*), 'Input n for Number...
  6. Mercfh

    Doubly Linked List?

    ok i got sine/cos arrays working (they dont print right but I checked the numbers they are correct (using print sData(15) etc..) program dlink c Matt Smith c CS450 c sDatae Fortran Doubly Linked List Assignment 1 c23456789 real n real sDatae,cDatae,sDatae1,cDatae1 real...
  7. Mercfh

    Doubly Linked List?

    Well I tried populating the sin/cos array (to store) with this. but I keep getting an error about the DO statement ending with an integer? program dlink c Matt Smith c CS450 c sDatae Fortran Doubly Linked List Assignment 1 c23456789 real n real...
  8. Mercfh

    Doubly Linked List?

    Ya I think what you were saying is right. he said we have to use g77. and said we'd prolly need 3 arrays to represent pointers. It makes more sense now that I read what you said. all these diff fortran types are confusing you know lol especially when you've never sued fortran before ever in...
  9. Mercfh

    Doubly Linked List?

    According to the program description it'll have to be a doubly linked list :( so that kinda changes things
  10. Mercfh

    Doubly Linked List?

    actually nm ill just have to do the above but with a doubly linked list. <_<
  11. Mercfh

    Doubly Linked List?

    hmmm ok that makes sense. I think we can do either tbh, i guess doing an array would be easier. So would this be a good plan: -->Read in n :loop till n computing sine of n in loop insert each into an array :finish loop after n start at tail of loop: print n go back n-1: till head is reached...
  12. Mercfh

    Doubly Linked List?

    I was given an assignment for class (new class just started a week ago) for fortran. I've done some reading on fortran and get the general syntax but had a question of what the "best" way to go about this would be. here's the inquery: "Write a program in Fortran that (1) reads in an integer n...
  13. Mercfh

    Prolog Ancestry assignment

    So Im completely new to prolog (i know I know lol) and my AI class is doing a prolog genealogy (sp) assignment http://cs.uky.edu/~goldsmit/463/p5.html I understand the basics like building the facts database and such but...the scripts? Im not sure of. Like how would you represent a nth...

Part and Inventory Search

Back
Top