Be a Supporter!

C++?

  • 657 Views
  • 16 Replies
New Topic Respond to this Topic
MisterSambert
MisterSambert
  • Member since: Mar. 15, 2004
  • Offline.
Forum Stats
Member
Level 19
Melancholy
C++? 2004-12-17 18:39:48 Reply

I feel strange asking this, but is C++ another term for VisualBasic? If not, can someone post a few lines of C++ code?


WOOT WOOT WOOT WOOT

BBS Signature
LordAba
LordAba
  • Member since: Nov. 2, 2000
  • Offline.
Forum Stats
Member
Level 10
Blank Slate
Response to C++? 2004-12-17 19:16:28 Reply

At 12/17/04 06:39 PM, kyle_chamberlain wrote: I feel strange asking this, but is C++ another term for VisualBasic? If not, can someone post a few lines of C++ code?

C++ is not at all like VB.

C++ code:

int main()
{
for(int i = 99; i > 0; i++)
{
cout << i << " bottels of beer on the wall!";
}
return 0;
}


What may man within him hide, though angel on the outward side.

BBS Signature
MisterSambert
MisterSambert
  • Member since: Mar. 15, 2004
  • Offline.
Forum Stats
Member
Level 19
Melancholy
Response to C++? 2004-12-17 21:02:18 Reply

At 12/17/04 07:16 PM, Lord_Aba wrote: C++ is not at all like VB.

C++ code:

int main()
{
for(int i = 99; i > 0; i++)
{
cout << i << " bottels of beer on the wall!";
}
return 0;
}

Looks like JAVA a bit


WOOT WOOT WOOT WOOT

BBS Signature
Ravens-Grin
Ravens-Grin
  • Member since: Jun. 3, 2003
  • Offline.
Forum Stats
Member
Level 05
Blank Slate
Response to C++? 2004-12-18 15:40:31 Reply

wouldn't you want it to be i--?

Sekky
Sekky
  • Member since: Mar. 17, 2003
  • Offline.
Forum Stats
Member
Level 24
Blank Slate
Response to C++? 2004-12-18 15:53:49 Reply

haha yeah, your bottles are just gonna keep filling up the wall man

LordAba
LordAba
  • Member since: Nov. 2, 2000
  • Offline.
Forum Stats
Member
Level 10
Blank Slate
Response to C++? 2004-12-18 16:00:03 Reply

At 12/18/04 03:53 PM, Professor_Rhythm wrote: haha yeah, your bottles are just gonna keep filling up the wall man

Woops! My bad!

Even though there is nothing wrong with an infinite loop of beer! :)


What may man within him hide, though angel on the outward side.

BBS Signature
Misty-Dragon-Muffin
Misty-Dragon-Muffin
  • Member since: Nov. 12, 2004
  • Offline.
Forum Stats
Member
Level 03
Blank Slate
Response to C++? 2004-12-18 16:38:51 Reply

C++ is very much like JAVA.

BTW, have you guys heard of HQ9+? Lol I had to write the code for the VM in Java just for fun. OMg ROFLz

PatternAgainstUser
PatternAgainstUser
  • Member since: Dec. 1, 2004
  • Offline.
Forum Stats
Member
Level 08
Blank Slate
Response to C++? 2004-12-18 21:23:45 Reply

Thats the quiet possibly the stupidest question i have ever heard.

MisterSambert
MisterSambert
  • Member since: Mar. 15, 2004
  • Offline.
Forum Stats
Member
Level 19
Melancholy
Response to C++? 2004-12-19 11:49:36 Reply

At 12/18/04 09:23 PM, PatternAgainstUser wrote: Thats the quiet possibly the stupidest question i have ever heard.

shut the fuck up noob. You and I... AND EVERY ONE FUCKING ELSE knows that this is not possibly the worst wuestion you have ever fucking heard. If it is, you need to get out of the fucking house fag.


WOOT WOOT WOOT WOOT

BBS Signature
CronoMan
CronoMan
  • Member since: Jul. 19, 2004
  • Offline.
Forum Stats
Member
Level 06
Blank Slate
Response to C++? 2004-12-19 18:45:19 Reply

At 12/18/04 04:38 PM, Misty_Dragon wrote: C++ is very much like JAVA.

No.
Java LOOKS like C++ at first glance, but it's not.
C++ is a low-level language, Java is one of the most high-level languages you can find.


"no sound in ass"

thoughtpolice
thoughtpolice
  • Member since: Mar. 24, 2003
  • Offline.
Forum Stats
Member
Level 10
Blank Slate
Response to C++? 2004-12-19 20:15:00 Reply

At 12/18/04 09:23 PM, PatternAgainstUser wrote: Thats the quiet possibly the stupidest question i have ever heard.

You're wrong. Let me correct you:

That's quite possibly a question where the topic starter has never heard of "Google."


omg.
Playstation Network tag: muffin-noodle
the empty set

Misty-Dragon-Muffin
Misty-Dragon-Muffin
  • Member since: Nov. 12, 2004
  • Offline.
Forum Stats
Member
Level 03
Blank Slate
Response to C++? 2004-12-19 21:59:50 Reply

At 12/19/04 06:45 PM, CronoMan wrote: Java LOOKS like C++ at first glance, but it's not.
C++ is a low-level language, Java is one of the most high-level languages you can find.

You must be confusing C++ with C. Java and C++ have almost idnetical syntax structure, just different syntax. They are both high level programming languages; an example of a low level language would be assembly, or turing, to en extent.

The only main difference between Java and C++ is that java is compiled in ByteCode, which is run through the JVM (Java Virtual Machine), and thus is platform independent, wheras C++ is compiled to binary, and runs in DOS.

Hextic
Hextic
  • Member since: Nov. 7, 2004
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Response to C++? 2004-12-19 22:21:39 Reply

Actually, there are c++ compilers available for Linux and the upcoming SSOOS. Also, you can program for Win32, as I spent the entirety of last trimester doing in Biology.

MisterSambert
MisterSambert
  • Member since: Mar. 15, 2004
  • Offline.
Forum Stats
Member
Level 19
Melancholy
Response to C++? 2004-12-19 23:51:57 Reply

why the fuck that whenever i say a certain language looks like another people go fucking idiotic and say "oh noez!!! they are completely different!!!11"

SHUT THE FLYING FUCK UP YOU PATHETIC EXCUSES FOR FUCKING HUMAN FUCKING BEEINGS!!!! GODDAMNIT MOTHER FUCKING COCK SUCKING PRICKS!


WOOT WOOT WOOT WOOT

BBS Signature
CronoMan
CronoMan
  • Member since: Jul. 19, 2004
  • Offline.
Forum Stats
Member
Level 06
Blank Slate
Response to C++? 2004-12-21 12:19:14 Reply

At 12/19/04 09:59 PM, Misty_Dragon wrote:
At 12/19/04 06:45 PM, CronoMan wrote: Java LOOKS like C++ at first glance, but it's not.
C++ is a low-level language, Java is one of the most high-level languages you can find.
You must be confusing C++ with C. Java and C++ have almost idnetical syntax structure, just different syntax. They are both high level programming languages; an example of a low level language would be assembly, or turing, to en extent.

I'm not confusing C++ with C. I know the difference, I've been programming in C and C++ for a long time now.
Java is high-level, C++ is low-level. C++ is compiled to native code (ASM) and Java is as you say "compiled" to bytecode. ByteCode needs interpretation, while native code does not.
You can make C++ programs totally independant of API calls, this you can not do with Java. C++ can handle software interrupts, Java can not. C++ can directly allocate memory, Java can not. C++ can run ASM (Absolute Calls), Java can not.

Why would you say C is low-level and C++ is not?
The only difference between those languages is the object orientation of C++.

And if you think Java is identical to C++, you should take a closer look.
And PHP has also "identical" syntax with C++, would you say they are the same? ;)


The only main difference between Java and C++ is that java is compiled in ByteCode, which is run through the JVM (Java Virtual Machine), and thus is platform independent, wheras C++ is compiled to binary, and runs in DOS.

That is a very big difference. Again, Java ByteCode is enterpreted, and this makes it more like a scripting language. ;)


"no sound in ass"

Misty-Dragon-Muffin
Misty-Dragon-Muffin
  • Member since: Nov. 12, 2004
  • Offline.
Forum Stats
Member
Level 03
Blank Slate
Response to C++? 2004-12-24 21:49:15 Reply

At 12/21/04 12:19 PM, CronoMan wrote: I'm not confusing C++ with C. I know the difference, I've been programming in C and C++ for a long time now.
Java is high-level, C++ is low-level. C++ is compiled to native code (ASM) and Java is as you say "compiled" to bytecode. ByteCode needs interpretation, while native code does not.

The virtual machine's "interpretation " of code is the equivilant of your machine reading native code. While your machine needs to interpret the Bytecode, the VM itself reads it directly, so there is really only one level of difference.

You can make C++ programs totally independant of API calls, this you can not do with Java. C++ can handle software interrupts, Java can not. C++ can directly allocate memory, Java can not. C++ can run ASM (Absolute Calls), Java can not.

Software interrupts in Java are handled in the Exception sub classes ^_^


Why would you say C is low-level and C++ is not?
The only difference between those languages is the object orientation of C++.

Low level means direct "conversation" with the machine. An object oriented program, by definition, is a higher level than non, because it deals with objects, which in turn deal with the machine. (Thus the purpose of object oriented design).

For example, a high level alarm clock would look like this:
AlarmClock (subclass of Clock)
-time
-alarm
+showtime
+showalarm
+setTime
+setAlarm
+readyAlarm
. . . . .

Whereas a low level clock would consist of operations and variables which represent these attribtes and methods (feilds and functions, w/e lol). Even though it's THE SAME CLOCK, one is a high level version, and one is low level. The difference? The higher the level, the more interpretation is done by the compiler.


And if you think Java is identical to C++, you should take a closer look.
And PHP has also "identical" syntax with C++, would you say they are the same? ;)

I never said it was IDENTICAL. However, they have many similarities. Take c++ and turing, or python. Very different. Now compare it to Java, similar structure, eh? No it's not the same, as Spanish, portuguese and Italian are not the same, but they are very similar ~_^


That is a very big difference. Again, Java ByteCode is enterpreted, and this makes it more like a scripting language. ;)

Nonono! Java is Not like java script! why? because there's no script. Java gives you MUCH more control, which is why it isn't one of the highest level languages as you claim. JavaScript and actionScript are much higher, and less flexible.

Sorry, I should have posted earlier, but I has banned for a few days -_-. Anywho, you are right for the most part. Java and C are different levels. However, C++ is not a low level language. Low level languages are written in number or numonics. Examples would eb Machine or assembly language. While C++ does allow direct memory storage, you don't specify where and how it is does. If you did, it would defeat the purpose of it being object oriented.

Personally, I prefer dirtier languages like C and assmbley. I'm simplying stating that my orginal point concerned the fact that they are similar languages, with similar structure, and similar syntax :)

Peace to you, and merry Xmas ^_^

P.S, here's a little graph to help you out ^_^

C++?

Taylor
Taylor
  • Member since: Aug. 19, 2003
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
Response to C++? 2004-12-26 04:01:53 Reply

At 12/19/04 11:49 AM, kyle_chamberlain wrote:
At 12/18/04 09:23 PM, PatternAgainstUser wrote: Thats the quiet possibly the stupidest question i have ever heard.
shut the fuck up noob. You and I... AND EVERY ONE FUCKING ELSE knows that this is not possibly the worst wuestion you have ever fucking heard. If it is, you need to get out of the fucking house fag.

you, stop whining. to the guy who said its the stupidest question, look around a bit more... theres people asking how to get a boner in the genreal forum all the time :-P

and kyle_chamerblain... that was a pretty dumb duestion, amigo. try a quick google search before bothering the flamers