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![]()
C Version (took 6783 points):
VB Version: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 Code:
Dim x As Integer Dim ticks As Integer x = 5 * 8 ticks = GetTickCount / 1000 Me.Caption = ticks
made_of_asp,
![]()





Reply With Quote