C++ is only slighter faster than VB
Hello,
I used GetTickCount API and i found out that my two equal programs written on C++ and VB, had VB version was only 196 points slower than C++ and VB had window intilized while C++ was running in Console.
Is this realy true? I heard that C++ was much faster and efficient than VB :B :) :D
C Version (took 6783 points):
PHP Code:
#include "stdafx.h"
#include <iostream.h>
#include <windows.h>
int main(int argc, char* argv[])
{
int x;
int ticks;
x = 5 * 8;
ticks = GetTickCount() / 1000;
cout << ticks;
cin >> x;
return 0;
}
VB Version:
VB Code:
Dim x As Integer
Dim ticks As Integer
x = 5 * 8
ticks = GetTickCount / 1000
Me.Caption = ticks
made_of_asp,
:rolleyes: