Re: Whoever loves C++ and java programming, come here
From: Angela K (crxgurl_at_shaw.ca)
Date: 10/25/03
- Next message: Phil...: "Re: Whoever loves C++ and java programming, come here"
- Previous message: Phil...: "Re: Whoever loves C++ and java programming, come here"
- In reply to: Phil...: "Re: Whoever loves C++ and java programming, come here"
- Next in thread: Phil...: "Re: Whoever loves C++ and java programming, come here"
- Reply: Phil...: "Re: Whoever loves C++ and java programming, come here"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 25 Oct 2003 21:02:04 GMT
where would i find a C++ to fortran and a fortran to java convertor? I
searched google and couldnt find anything.
"Phil..." <rynes@ieee.org> wrote in message
news:tsAmb.25756$Fm2.12789@attbi_s04...
> There is a fortran to java translator so if you
> convert your program to fortran it is a snap.
>
>
> "Angela K" <crxgurl@shaw.ca> wrote in message
> news:W5Amb.177648$6C4.69738@pd7tw1no...
> > I need to translate this code into java, can anyone do it?
> >
> > #include <iostream.h>
> >
> > #include "LinkedList.h"
> >
> > #include "mystring.h"
> >
> >
> >
> > template <class Object>
> >
> > void printList(const List<Object> & theList) {
> >
> > if(theList.isEmpty())
> >
> > cout << "The List is Empty, Dude!!" << endl;
> >
> > else {
> >
> > ListItr<Object> itr = theList.first();
> >
> > for( ; !itr.isPastEnd(); itr.advance())
> >
> > cout << itr.retrieve() << " ";
> >
> > } //printing list in else statement
> >
> > cout << endl;
> >
> > } // print list
> >
> >
> >
> > int main() {
> >
> > string x;
> >
> > List<string> myList;
> >
> > ListItr<string> theItr = myList.zeroth();
> >
> > int i = 0;
> >
> >
> >
> > printList(myList);
> >
> >
> >
> > cout << "Enter string values, seperated by whitespace." << endl;
> >
> > cout << "ctrl-d by itself on a line will terminate the process." <<
> endl;
> >
> > cout << "Watch the List Building Up in Progress!!" << endl;
> >
> >
> >
> > while (cin >> x) {
> >
> > myList.insert(x, theItr);
> >
> > printList(myList);
> >
> > theItr.advance();
> >
> > i++;
> >
> > }
> >
> >
> >
> > cout << endl;
> >
> > cout << "Traverse the Entire List.Remove the names(nodes) that begin
> with
> >
> > the character" << endl;
> >
> > cout << "\"a\"" << endl;
> >
> > cout << "Watch the List Shrinkage in Progress!!" << endl;
> >
> > cout << endl;
> >
> >
> >
> > string y;
> >
> > string a = "a";
> >
> >
> >
> > ListItr<string> tItr = myList.first();
> >
> > for( ; !tItr.isPastEnd(); tItr.advance()) {
> >
> > y = tItr.retrieve();
> >
> > if(y[0] == a[0]) {
> >
> > myList.remove(y);
> >
> > printList(myList);
> >
> > }
> >
> > }
> >
> >
> >
> > return 0;
> >
> > } //main
> >
> >
>
>
- Next message: Phil...: "Re: Whoever loves C++ and java programming, come here"
- Previous message: Phil...: "Re: Whoever loves C++ and java programming, come here"
- In reply to: Phil...: "Re: Whoever loves C++ and java programming, come here"
- Next in thread: Phil...: "Re: Whoever loves C++ and java programming, come here"
- Reply: Phil...: "Re: Whoever loves C++ and java programming, come here"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|