vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Community Lounge (https://vborg.vbsupport.ru/forumdisplay.php?f=13)
-   -   I'm learning C++ (https://vborg.vbsupport.ru/showthread.php?t=93791)

Logikos 08-07-2005 02:17 PM

I'm learning C++
 
I've always heard people say that C++ and PHP are a very similar language. So, today I took my first lesson in C++.

Code:

#include <iostream.h>

int main ()
{
        cout << "Hello World!";
        return 0;
}

That does what this does in php
PHP Code:

<?php
echo "Hello World!";
?>


:) I'm a genius!

Anyone else here program? I'm downloading Microsoft Visual C++ from Microsoft.com and with a 4.0mbps connection, its taking for ever. It's only a 32mb file, but Bill Gates has a crappy server. :p

Just thought I would share :p

Boofo 08-07-2005 02:20 PM

Quote:

Originally Posted by Live Wire
I've always heard people say that C++ and PHP are a very similar language. So, today I took my first lesson in C++.

Code:

#include <iostream.h>
 
int main ()
{
cout << "Hello World!";
return 0;
}

That does what this does in php
PHP Code:

<?php
echo "Hello World!";
?>


:) I'm a genius!

Anyone else here program? I'm downloading Microsoft Visual C++ from Microsoft.com and with a 4.0mbps connection, its taking for ever. It's only a 32mb file, but Bill Gates has a crappy server. :p

Just thought I would share :p

I used to program in Turbo Pascal in the old BBS days. ;)

Logikos 08-07-2005 02:23 PM

I want to be able to create my own text editor, so I thought C++ would be the way to go. I'm now determine to create such a software, so I'm doing a lot of reading, and waiting for some advice from a friend that I just emailed.

Boofo 08-07-2005 02:29 PM

Quote:

Originally Posted by Live Wire
I want to be able to create my own text editor, so I thought C++ would be the way to go. I'm now determine to create such a software, so I'm doing a lot of reading, and waiting for some advice from a friend that I just emailed.

C++ is very good from what I have heard. It's been a while for me but Turbo Pascal was the big programming language back then. C++ came along and was what everyone went to after that. Good luck with it. ;)

FleaBag 08-07-2005 02:31 PM

I did Visual Basic in college and some turbo pascal in school. In all honesty I can't remember a single line of code... I was never that great at it anyway... I was always modifying my BB in lessons heh. :D C++ is the one I'd like to know though, have always fancied dabbling in game mods and it's the way to go. Isn't there a new language available now though? C#?

bigcurt 08-07-2005 02:37 PM

I know a LITTLE c++ but one of my moderators on my site actually built my site a program just for my site..almost fully integrated..called KeySafe?, its great..you can store all your serial keys, ect..in there.

~Curt

PM ME, if you would like to see it ;).

yoyoyoyo 08-07-2005 02:40 PM

I used to do some Macintosh Programming, and was one of the many programmers that helped develop Hotline, but that didn't use C it used another language that the developer wrote. I have played a bit with C++ but not too much lately. Once you get the basic commands down it is pretty intuitive as I remember. Of course nothing beats BASIC:

100 PRINT "HELLO WORLD!"
110 END

:D

Chris M 08-07-2005 03:45 PM

Quote:

Originally Posted by yoyoyoyo
I used to do some Macintosh Programming, and was one of the many programmers that helped develop Hotline, but that didn't use C it used another language that the developer wrote. I have played a bit with C++ but not too much lately. Once you get the basic commands down it is pretty intuitive as I remember. Of course nothing beats BASIC:

100 PRINT "HELLO WORLD!"
110 END

:D

Basic rules - I remember as a project at school for Computer Maths we had to build a game of Pong in Basic :D

It ruled :)

Satan

twoseven 08-07-2005 04:16 PM

i used to do c++ quite a bit. it is very easy. c# is a crap language because it cant be compiled on all os'. through college i did programming on a linux system because i wasnt going to pay the outrageous prices for the software. there are also /t/n chars in c++.

you can also run a void main function as well so there is no return.
void main (){cout << "Hello World!";}

and on newer compilers there is a difference between the .h files and
Code:

using namespace std;
there is even more that i forget right now but it will come back to me sometime. hope this didnt throw too much info at you so far

Fallback 08-07-2005 05:08 PM

^ yeah but you can make top dollar if you know c#, theres a lot of companies that are hiring C# programmers for the .net platform even more than that are hiring php programmers. Plus c# is very similar to php and flash actionscript so if you have those backgrounds you can pick it up fast.

filburt1 08-08-2005 12:07 AM

Quote:

Originally Posted by Live Wire
I've always heard people say that C++ and PHP are a very similar language. So, today I took my first lesson in C++.

Code:

#include <iostream.h>

int main ()
{
        cout << "Hello World!";
        return 0;
}

That does what this does in php
PHP Code:

<?php
echo "Hello World!";
?>


:) I'm a genius!

Anyone else here program? I'm downloading Microsoft Visual C++ from Microsoft.com and with a 4.0mbps connection, its taking for ever. It's only a 32mb file, but Bill Gates has a crappy server. :p

Just thought I would share :p

The preferred rewrite:

Code:

#include <iostream>

using namespace std;

int main(int argc, char** argv)
{
    cout << "Hello, world!" << endl;
    return 0;
}

C++ blows once you know languages like Java and C#.

Andrew 08-08-2005 02:33 AM

Quote:

Originally Posted by filburt1
C++ blows once you know languages like Java and C#.

Java is great - I'm so glad my college required me to take a full year of it. Apart from that though I'm just getting started with PHP and MySQL (Which is coming along pretty quickly) - Haven't messed with C, C++ or C# though (I think I get to work with C# next spring but I'm not sure.)

deathemperor 08-08-2005 05:37 AM

well I finished C#, it is like Java all the ways but since it is MS's it offers all Windows features


All times are GMT. The time now is 11:45 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01191 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (3)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (13)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete