ShadowFlare's Realm - Forum

  Visual Basic = Visual C++ - https://sfsrealm.hopto.org/ Forums


Original message

jedienemy1



aurrasing@jedienemy1.com
96892593
216.145.152.4 user profileedit/delete message

"Visual Basic = Visual C++" , Thu 22 Feb 20:15 post reply


I was reading my C++ books but they never said anything about Visual Basic. Was Visual Basic recently created? And is Visual C++ the same as Visual Basic? Some C++ source code below :
#include<iostream.h>

class Animal
{
public:
virtual void Speak() { cout << "Animal Speaks\n"; }
};

class Dog : public Animal
{
public:
void Speak() { cout << "Dog Speaks\n"; }
};


class Cat : public Animal
{
public:
void Speak() { cout << "Cat Speaks\n"; }
};

void DoIt(Animal*);

int main()
{
Animal * pA = new Dog;
DoIt(pA);
return 0;
}

void DoIt(Animal * c)
{
cout << "They passed some kind of animal\n" << endl;
c->Speak();
}
Does Visual Basic look anything like this (C/C++)?

See my site at www.jedienemy1.com!


Replies:

FlameRaper



kira151413@aol.com
I have aim!
172.141.30.12 user profileedit/delete message

"Re(1):Visual Basic = Visual C++" , Fri 23 Feb 19:21 post reply


I dont know what Visual C++ is but visual basic and c++ are different things i think you are confused. They both use a differnt language, cpp is stricter with its variables than Visual basic.

It was hard to find the biggest loser in this archive... ross won though damn pokemon.

 

jedienemy1



aurrasing@jedienemy1.com
96892593
216.145.152.185 user profileedit/delete message

"Re(2):Visual Basic = Visual C++" , Sat 24 Feb 12:01 post reply


Thanx for repeating something I found out a while ago. I wasn't asking you. You have no clue. I was asking Shadowflare if Microsoft Visual C++ was the same as Visual Basic to prove my friend wrong. He thinks they are the same but he won't believe me. You don't know anything about C\C++ so just don't act like you do.

See my site at www.jedienemy1.com!

 

ShadowFlare

Webmaster


BlakFlare@hotmail.com
46431561
205.119.29.15 user profileedit/delete message

"Re(3):Visual Basic = Visual C++" , Mon 26 Feb 09:20: post reply


Visual C++ uses a programming language called C++. Visual Basic uses a programming language called BASIC which stands for Beginners All-purpose Symbolic Instruction Code. There are many differences between the two. One is that BASIC uses the end-of-line character to mark the end of a line of code instead of a semi-colon.
Here is some of the code in your first message in BASIC:

Dim Animal

Sub AnimalSpeak()
Print "Animal Speaks" + Chr(13) + Chr(10)
End Sub

Sub DogSpeak()
Print "Dog Speaks" + Chr(13) + Chr(10)
End Sub

Sub CatSpeak()
Print "Cat Speaks" + Chr(13) + Chr(10)
End Sub

I didn't put everything here and changed some things because I don't know the exact commands for classes. Visual Basic hides them. You only see them if you open your code files in another text editor.

[this message was edited by ShadowFlare on Mon 26 Feb 09:29]




All rights reserved © 2000-2001 ShadowFlare