HOME
www.Junoland.de
(c) Copyright 2003 °Andreas Klotz, Cologne, Germany [upd.Oct.2008]
AKL@Junoland.de
intro | Mainstream | Groups | WebBrowser | WebServer | DB | Academic | Cobol |
Delphi|VB | C++ | Java | C# | SpeedTest! | Conclusion | OOP | Links |
#include <iostream.h>in Java it reads:
#include <string>
main()
{ int x; int y;
char z = 9; string s;
//cout << "input any char + enter!"; cin >> s;
cout << "start 50 times increment 100'000'000 int +7 (AMD-Duron 1000 needs 16 sec 0.6 MB) ..." << endl;
for(x=1;x<=50;x++) {
for(y=0;(y<=700000000);y=y+7) { }
cout << x << " ; ";
}
cout << endl;
cout << " y=" << y << " x=" << x << " --- input any char + enter!"; cin >> s;
}
import java.awt.*;and in C# (C-Sharp .Net) it reads:
class speedtest1 {
public static void main(String args[])
{
System.out.println(
"start 50 times increment 100'000'000 int +7 (AMD Duron 1000 needs 22 sec, 4.2 MB)... ");
int x=0; int y=0;
for(x=1;x<=50;x++) {
for(y=0;y<=700000000;y+=7) { }
System.out.print(x + " ; ");
}
System.out.println("");
System.out.println("y=" + y + " x=" + x + "..........finished counting. ");
}
}
using System;
class Hello {
static void Main() {
Console.WriteLine("start 50 times increment 100'000'000 int +7 (AMD-Duron 1000 needs 16 sec 3.3 MB)...");
int x=0;
int y=0;
for (x=1;x<=50;x++) {
for (y=0;y<=700000000;y+=7) { }
Console.Write(x + " ; ");
}
Console.WriteLine();
Console.WriteLine(" y=" +y + " x=" +x + " --- input any number + enter!");
string any1 = Console.ReadLine();
}
}
#include <iostream.h>
#include <string>
main()
{ //int x; int y; char z = 9;
string s;
//cout << "input any char + enter!"; cin >> s;
int n=200000;
int myar[200000];
cout << "Calculating prime-numbers 1 to 200'000 ... (AMD-Duron-1000 needs 26 sec, 1.4 MB) ..." << endl;
for (int a=3;a<n;a+=2) {
int i=3;
while((a % i) !=0 && i<(a/3)+1) {
if (a<25) cout << a << " / " << i << " = " << (a/i) << " Rest=" << a % i << endl;
i+=2;
}
if (a<25 || a>n-5) {
if (i < (a/3)+1) {myar[a]=i; cout << "for " << a << " I found " << i << endl;}
else cout << "for " << a << " I found nothing" << endl;
}
if (a==25) cout << " ---- now I will calculate invisible...., wait ...." << endl;
}
cout << endl;
cout << "Reading 10'000 times array of 100'000 numbers (AMD-Duron-1000 needs 24 sec..." << endl;
int t=0;
for (int y=1;y<10000;y++) {
for (int k=3;k<n;k+=2) {
t=myar[k];
if (y<4 && (k<25 || k>n-5) ) {
if (t==0) cout << k << " ; ";
}
}
if (y<4) cout << endl;
}
cout << "input any char + enter!"; cin >> s;
}
public class primetest2 {
public static void main(String[] args) {
int n=200000; int[] myar = new int[n];
System.out.println("calculating prime-numbers 1 to 200'000 ... (AMD-Duron-1000 needs 26 sec, 5.2 MB) ...");
long anyvar=0;
for (int a=3;a<n;a+=2) {
int i=3;
while((a % i) !=0 && i<(a/3)+1) {
if (a<25) System.out.println(a + " / " + i + " = " + (a/i) + " Rest=" + a % i);
i+=2;
} if (a<25 || a>n-5) {
if (i < (a/3)+1) {myar[a]=i; System.out.println("for " + a +" I found "+i); }
else System.out.println("for " + a +" I found nothing");
} if (a==25) System.out.println(" ---- now I will calculate invisible...., wait ....");
} System.out.println("");
System.out.println("Reading 10'000 times array of 100'000 numbers (AMD-Duron-1000 needs 27 sec...");
int t=0;
for (int y=1;y<10000;y++) { for (int k=3;k<n;k+=2) {
t=myar[k]; if (y<4 && (k<25 || k>n-5) ) {
if (t==0) System.out.print(k + " ; ");
}
}
if (y<4) System.out.println(" ");
}
} // end main
} // end class
// to compile: javac -O primetest2.java
// to run: java primetest2
using System;and in VB(A) it reads:
class Hello {
static void Main() {
string any1 ="";
Console.WriteLine("calculating prime-numbers 1 to 200'000 ... (AMD-Duron-1000 needs 26 sec, 4.1 MB) ...");
int n=200000;
int[] myar = new int[n];
for (int a=3;a<n;a+=2) {
int i=3;
while((a % i) !=0 && i<(a/3)+1) {
if (a<25) Console.WriteLine(a + " / " + i + " = " + (a/i) + " Rest=" + a % i );
i+=2;
}
if (a<25 || a>n-5) {
if (i < (a/3)+1) {myar[a]=i; Console.WriteLine("for " + a +" I found "+i);}
else Console.WriteLine("for " + a +" I found nothing");
}
if (a==25) Console.WriteLine(" ---- now I will calculate invisible...., wait ....");
}
Console.WriteLine("");
Console.WriteLine("Reading 10'000 times array of 100'000 numbers (AMD-Duron-1000 needs 24 sec...");
int t=0;
for (int y=1;y<10000;y++) {
for (int k=3;k<n;k+=2) {
t=myar[k];
if (y<4 && (k<25 || k>n-5) ) {
if (t==0) Console.Write(k + " ; ");
}
}
if (y<4) Console.WriteLine(" ");
}
Console.WriteLine("input any number + enter!"); any1 = Console.ReadLine();
}
}
Sub PrimeNumberCrunching()
Debug.Print: Debug.Print "---": Debug.Print Now
Debug.Print "calculating prime-numbers 1 to 200'000 ... (AMD-Duron-1000 needs 80 sec, 4.1 MB) ..."
Dim N As Long, A As Long, I As Long
Dim T As Long, Y As Long, K As Long
Dim myar(200000) As Long
N = 200000
For A = 3 To N Step 2
I = 3
While ((A Mod I) <> 0 And I < (A / 3) + 1)
If (A < 25) Then Debug.Print A & " / " & I & " = " & (A / I) & " Rest=" & (A Mod I)
I = I + 2
Wend
If A < 25 Or A > N - 5 Then
If (I < (A / 3) + 1) Then
myar(A) = I
Debug.Print "for " & A & " I found " & I
Else
Debug.Print "for " & A & " I found nothing"
End If
End If
If A = 25 Then Debug.Print " ---- now I will calculate invisible...., wait ...."
Next A
Debug.Print: Debug.Print "---": Debug.Print Now
Debug.Print "Reading 10'000 times array of 200'000 numbers (AMD-Duron-1000 needs 150 sec..."
T = 0
For Y = 1 To 10000
For K = 3 To N - 1 Step 2
T = myar(K)
If Y < 4 And (K < 25 Or K > N - 5) Then
If (T = 0) Then Debug.Print K & " ; ",
End If
Next K
If (Y < 4) Then Debug.Print " "
Next Y
Debug.Print: Debug.Print "---": Debug.Print Now
Beep
End Sub
import javax.swing.*;
public class helloswing100 {
public static void main(String[] args) {
JFrame framex[];
framex = new JFrame[500];
for (int i=0; i<32*8;i++) {
framex[i] = new JFrame("W"+i);
framex[i].setSize(100, 100);
framex[i].setLocation((i/32)*100, (i % 32)*20);
framex[i].setVisible(true);
//for (int t=0; t<10*1000*1000;t++) { }
}
//JFrame frame2 = new JFrame("window main");
//frame2.setSize(250, 350);
//frame2.setVisible(true);
JFrame frame = new JFrame("window main");
frame.setSize(300, 400);
final JLabel label = new JLabel("Hello - let's swing! ");
frame.getContentPane().add(label);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//frame.pack();
frame.setVisible(true);
}
}
// to compile: javac -O helloswing100.java
// to run: java helloswing100
using System;
using System.Windows.Forms;
namespace myxyform
{
public class cAnyForm : Form
{
}
public class cMyMainFormClass : Form
{
public cMyMainFormClass()
{ //<--- constructor
this.Text="Close this window to end!";
}
public static void Main()
{ // <--- Main embedded in main-class
// ordinary call quickform without a name for this instance .....
cAnyForm[] cf = new cAnyForm[500];
for (int i=0;i<256 ;i++ )
{
cf[i]=new cAnyForm(); cf[i].Text="F" + i;
//cf[i].Location=new System.Drawing.Point(i*8,20);
cf[i].Location = new System.Drawing.Point((i/32)*100, (i % 32)*20);
cf[i].StartPosition = FormStartPosition.Manual;
cf[i].Size = new System.Drawing.Size(100, 100);
cf[i].Show();
}
Application.Run(new cMyMainFormClass());
System.Console.WriteLine(" enter!"); Console.ReadLine();
}
} // end class
} // end namespace
Link | Subject | My Judgement |
internetExplorer | Browser | If you catch the newest one (6 and more) you have to purge him from send-home-gimmicks |
Opera | Browser | - to see another one; it's better than Netscape |
Phase 5 | Uli Meybohm's HTML-Editor | it's quite good and it's free |
HomeSite | Macromedia's HTML-editor | the best or one of the best, but not free (formerly from Allaire) |
WS_FTP | FTP-up/down-loader | , in Win XP not necessary(?); it's not so easy to fill right username, server, password... |
PHP4 | Rasmus Lerdorf started PHP - Zend build something to make it faster | download for free |
Xitami | Web Server, also for usage on PC, free for private | that is good for testing your PHP-scripts without internet |
MySQL | DataBase free for private usage | better than Access, superfast, not so complete like Oracle, DB2,SQLserver... localhost = 127.0.0.1; connect() (without User & passwort) |
Lycos free Webspace | with PHP and MySQL for free | I gave up, because it's for long days down, but it's one of the few that are free |
HostEurope | commercial webspace provider | This my homepage with PHP and MySQL is running there for 7,90 EUR/month, incl. 15 GB traffic, to cancel in 1 month. Reliable and fast as you can see (no, I take nothing for my recommendation) |
Java SDK | For compiling sourcecode to Java intermediate code | about 30 MB - it's the compiler and nothing else |
Forte | Java-IDE from Sun themselves | needs time and RAM and diskspace! Programmed in Java and not so fast |
RealJN | Java-Editor | simple but free |
http:jigsaw.w3.org | just check here if your homepage is obeying WWW-Standard Of W3 | don't be sad if you got many, many failures reportedk |
.Net-Framework (runonly) | 20 MB for running C#-progs | don't take it, if you want to write your own code |
.Net-SDK (developpers) | 130 MB for get the compiler of C# and VB.Net | (130 MB is much too much for a compiler, but it comes with big libraries) |
SharpDevelop | free IDE | a little bit buggy, but free. they (Mike Krüger) improve it each week |
www.iCSharpCode.Net | Forum for C# with the SharpDevelop-IDE | the developers of th IDE will answer your questions themselves in the forum! |
(Amazon USA) | buy it in the USA (Amazon 89 US$) - 4 CD to install, 1.5 GB HD needed | Very good IDE, (still) better than SharpDevelop |
MasterCSharp | Forum for C# and ASP.Net | very good made in India |
. | . | . |
Search in the web |
Buy second hand* |
pay attention - not money! |
TurboPascal 5.5 (DOS) | (search it in the web...<6 MB) | As intro for Delphi - I heard it is free, maybe registration required |
VBA of MS-Excel | let some friend show you | Visual Basic for Applications is very similiar to VB; very good IDE; (Press F11-key to switch to VBA-mode, enable view properties!) |
Borland C++ 5.02 | I think it is free with difficult registration-act (/search it in the web...86 MB) | fast runtime-execution; it's not the same as C++-Builder. |
Borland's C++-Builder Enterprise Edition | (search it in the web...178 MB) | if you need more comfort, high-priced |
Microsoft Visual Studio 6 SE | (search it in the web...70 MB) | okay, it was good enough for me |
Microsoft Visual Studio 6 Enterprise Edition | (search it in the web...175 MB) | with Database-commections and vast libraries, high-priced |
. | . | . |
Deutsch |
German Language Corner |
Deutsch |
GuideToCSharp | A big german Online-tutorial | very simple, quite the right thing for the beginner |
http://selfHTML.teamone.de | german HTML-tutorial | - the very best I ever seen! |
JavaBuch | big german Java-manual | I think it is the best I know |
Markt Und Technik | german books, some of them online-readable | Javascript in 21, SQL in 21 Tagen is good |
Markt Und Technik Books | german books, some of them online-readable | Leseecke! Javascript in 21 Tagen and SQL in 21 Tagen is quite good |
Galileo Books | german books online-readable | PHP-book from Mister Theis is good |
PHP4all.de | german PHP-forum | okay |
SelfPHP.info | german PHP-forum - style lie SelfHTML | okay, but SelfHTML is better |