Web Design and Development Forums

tried java now c++

This is a discussion on "tried java now c++" within the Perl, Python, Ruby and Others section. This forum, and the thread "tried java now c++ are both part of the Program Your Website category.

Old Aug 28th, 2007, 19:15   #1 (permalink)
Administrator
 
alexgeek's Avatar
 
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
Blog Entries: 9
Send a message via MSN to alexgeek
Post tried java now c++

I tried java,
hated it.
does anyone have a nice c++ tutorial that teaches you how to do the equivalent of this php statement:
PHP: Select all

$var "1";
$var2 "2";
if (
$var "1" && $var2 "2") {
echo 
"The variables are: ".$var." & ".$var2;

?
__________________
Languages: PHP, mySQL (queries), C#, (X)html, CSS, JS.


alexgeek is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Aug 28th, 2007, 19:16   #2 (permalink)
Elite Veteran
 
Daniel's Avatar
 
Join Date: Sep 2006
Location: The Kingdom of Rabbits
Age: 21
Posts: 2,381
Blog Entries: 12
Send a message via MSN to Daniel
Re: tried java now c++

Check W3
__________________
FMFA Manager / World Footy Forums
Daniel is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Aug 28th, 2007, 20:28   #3 (permalink)
Administrator
 
alexgeek's Avatar
 
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
Blog Entries: 9
Send a message via MSN to alexgeek
Re: tried java now c++

hmm just found an article on there saying that java and c++ should die..
__________________
Languages: PHP, mySQL (queries), C#, (X)html, CSS, JS.


alexgeek is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Aug 28th, 2007, 20:29   #4 (permalink)
Elite Veteran
 
Daniel's Avatar
 
Join Date: Sep 2006
Location: The Kingdom of Rabbits
Age: 21
Posts: 2,381
Blog Entries: 12
Send a message via MSN to Daniel
Re: tried java now c++

they should go and eat my bunny
__________________
FMFA Manager / World Footy Forums
Daniel is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Aug 28th, 2007, 20:32   #5 (permalink)
Administrator
 
alexgeek's Avatar
 
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
Blog Entries: 9
Send a message via MSN to alexgeek
Re: tried java now c++

ha
on my server i have, ruby, sql server, c++, c# and j# express editions and I'v never used them.
mehh, I'm gunna go read the php codebook.
it's brilliant
__________________
Languages: PHP, mySQL (queries), C#, (X)html, CSS, JS.


alexgeek is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Aug 28th, 2007, 20:33   #6 (permalink)
Elite Veteran
 
Daniel's Avatar
 
Join Date: Sep 2006
Location: The Kingdom of Rabbits
Age: 21
Posts: 2,381
Blog Entries: 12
Send a message via MSN to Daniel
Re: tried java now c++

__________________
FMFA Manager / World Footy Forums
Daniel is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Aug 28th, 2007, 20:58   #7 (permalink)
 
c010depunkk's Avatar
 
Join Date: Apr 2007
Location: Willich, Germany
Age: 20
Posts: 612
Blog Entries: 2
Send a message via MSN to c010depunkk
Re: tried java now c++

Never heard of C++ running on a web server....

And if C++ dies, then I will commit suicide along with it!
__________________
Web design is the creation of digital environments that facilitate and encourage human activity; reflect or adapt to individual voices and content; and change gracefully over time while always retaining their identity.

~ www.c010depunkk.com ~ the hang-out of a web developer

c010depunkk is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Aug 28th, 2007, 21:54   #8 (permalink)
Administrator
 
alexgeek's Avatar
 
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
Blog Entries: 9
Send a message via MSN to alexgeek
Re: tried java now c++

I have a windows server, which is a web server but other things among it
__________________
Languages: PHP, mySQL (queries), C#, (X)html, CSS, JS.


alexgeek is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Aug 31st, 2007, 02:22   #9 (permalink)
Junior Member
 
Join Date: Jun 2006
Location: Here
Posts: 28
Re: tried java now c++

lmfao.. a few notes for you people

lol.. you can't have c++ running period.. Its not a dynamic/scripting language. Its a pure compiled language. Meaning you can have an application running that was written in C+ but thats just it, its a stand alone application. Just like your server software is.

Also any server can have an application written in C+ run on it. lol. Most likely the server itself is written in C/C++.

And whoever said that C+ needs to die is a moron. What do these idiots think their operating system was written in. Or any application where speed is key. lol 99% of all other programming languages are written in C/C++ including the java interpreter.
split-visionz is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Aug 31st, 2007, 02:28   #10 (permalink)
 
JacobHaug's Avatar
 
Join Date: Dec 2005
Location: On Internet
Posts: 5,550
Send a message via AIM to JacobHaug Send a message via MSN to JacobHaug
Re: tried java now c++

Haha..this thread is pretty funny! You guys a great!
__________________
JacobHaug.com - My Portfolio
JacobHaug is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Aug 31st, 2007, 08:41   #11 (permalink)
Administrator
 
alexgeek's Avatar
 
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
Blog Entries: 9
Send a message via MSN to alexgeek
Re: tried java now c++

uhh i wasn't saying i had some c++ server.
just saying i had a program on here for compiling it.
PERL next it i think
__________________
Languages: PHP, mySQL (queries), C#, (X)html, CSS, JS.


alexgeek is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Aug 31st, 2007, 12:39   #12 (permalink)
Junior Member
 
Join Date: Jun 2006
Location: Here
Posts: 28
Re: tried java now c++

python > pearl
split-visionz is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Aug 31st, 2007, 12:50   #13 (permalink)
Administrator
 
alexgeek's Avatar
 
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
Blog Entries: 9
Send a message via MSN to alexgeek
Re: tried java now c++

can you parse xml with python?
__________________
Languages: PHP, mySQL (queries), C#, (X)html, CSS, JS.


alexgeek is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Sep 5th, 2007, 17:41   #14 (permalink)
New Member
 
Join Date: Aug 2007
Location: Pikeville
Age: 25
Posts: 6
Re: tried java now c++

The answer that you are looking for is:

#include <iostream>
using namespace std;

Code: Select all
 
int main()
{
    int var1 = 1;
    int var2 = 2;
 
    if( var1 == 1 && var2 == 2 )
    {
        cout << "The variables are:" << var1 <<  ",  " << var2;
    }
 
return 0;
}
testep02 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Sep 5th, 2007, 17:43   #15 (permalink)
New Member
 
Join Date: Aug 2007
Location: Pikeville
Age: 25
Posts: 6
Re: tried java now c++

And btw, in your PHP code, you have an error..2 actually.

Any time you are comparing 2 values, you have to use ==, not =. In your IF statement, you are setting both variables equal to something, not checking to see if they really do equal what you have there. Just something to think about.
testep02 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Sep 5th, 2007, 18:13   #16 (permalink)
Administrator
 
alexgeek's Avatar
 
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
Blog Entries: 9
Send a message via MSN to alexgeek
Re: tried java now c++

what code we talking about now? :s
__________________
Languages: PHP, mySQL (queries), C#, (X)html, CSS, JS.


alexgeek is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Sep 5th, 2007, 18:16   #17 (permalink)
Elite Veteran
 
Daniel's Avatar
 
Join Date: Sep 2006
Location: The Kingdom of Rabbits
Age: 21
Posts: 2,381
Blog Entries: 12
Send a message via MSN to Daniel
Re: tried java now c++

php by the looks of it
Daniel is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Sep 5th, 2007, 18:20   #18 (permalink)
Administrator
 
alexgeek's Avatar
 
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
Blog Entries: 9
Send a message via MSN to alexgeek
Re: tried java now c++

i was referring to which php code he was on about rather than the actually language
__________________
Languages: PHP, mySQL (queries), C#, (X)html, CSS, JS.


alexgeek is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!