Heretic_Cata
We're gonna live forever
I don't need to learn java now because this is not for the java programing course.
There's the C++ programming course, the Java programming course, and THIS crappy course in which you have to learn programs like they are poems OR be the one of the 2 people out of 70 who understand the problems.
Anyway, i would like these "lines" explained in ****** language (that means i have to know what they do, not how it is done)
1.
StreamTokenizer st=new StreamTokenizer(new BufferedReader(new FileReader("fractii.in")));
From what i figure, this thing creates a file "fractii.in" ???
2.
PrintWriter out=new PrintWriter(new BufferedWriter(new FileWriter("fractii.out")));
This writes something (?) in a file "fractii.out".
3.
st.nextToken();n=(int)st.nval;
st.nextToken();m=(int)st.nval;
No idea
Note: n & m were defined earlier.
4.
What's the java equivalent of the C++ :
printf("bla");
scanf("%n", &x); <--- hope i remembered this one right
That's about it for now ...
Thanx in advance.
There's the C++ programming course, the Java programming course, and THIS crappy course in which you have to learn programs like they are poems OR be the one of the 2 people out of 70 who understand the problems.
Anyway, i would like these "lines" explained in ****** language (that means i have to know what they do, not how it is done)
1.
StreamTokenizer st=new StreamTokenizer(new BufferedReader(new FileReader("fractii.in")));
From what i figure, this thing creates a file "fractii.in" ???
2.
PrintWriter out=new PrintWriter(new BufferedWriter(new FileWriter("fractii.out")));
This writes something (?) in a file "fractii.out".
3.
st.nextToken();n=(int)st.nval;
st.nextToken();m=(int)st.nval;
No idea
Note: n & m were defined earlier.
4.
What's the java equivalent of the C++ :
printf("bla");
scanf("%n", &x); <--- hope i remembered this one right

That's about it for now ...
Thanx in advance.
