| Welcome to Webforumz.com. |
|
Aug 28th, 2007, 19:15
|
#1 (permalink)
|
|
Administrator
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
|
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.
|
|
|
Aug 28th, 2007, 19:16
|
#2 (permalink)
|
|
Elite Veteran
Join Date: Sep 2006
Location: The Kingdom of Rabbits
Age: 21
Posts: 2,381
|
Re: tried java now c++
Check W3
|
|
|
Aug 28th, 2007, 20:28
|
#3 (permalink)
|
|
Administrator
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
|
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.
|
|
|
Aug 28th, 2007, 20:29
|
#4 (permalink)
|
|
Elite Veteran
Join Date: Sep 2006
Location: The Kingdom of Rabbits
Age: 21
Posts: 2,381
|
Re: tried java now c++
they should go and eat my bunny 
|
|
|
Aug 28th, 2007, 20:32
|
#5 (permalink)
|
|
Administrator
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
|
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.
|
|
|
Aug 28th, 2007, 20:33
|
#6 (permalink)
|
|
Elite Veteran
Join Date: Sep 2006
Location: The Kingdom of Rabbits
Age: 21
Posts: 2,381
|
Re: tried java now c++
|
|
|
Aug 28th, 2007, 20:58
|
#7 (permalink)
|
Join Date: Apr 2007
Location: Willich, Germany
Age: 20
Posts: 612
|
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
|
|
|
Aug 28th, 2007, 21:54
|
#8 (permalink)
|
|
Administrator
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
|
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.
|
|
|
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.
|
|
|
Aug 31st, 2007, 02:28
|
#10 (permalink)
|
Join Date: Dec 2005
Location: On Internet
Posts: 5,550
|
Re: tried java now c++
Haha..this thread is pretty funny! You guys a great!
|
|
|
Aug 31st, 2007, 08:41
|
#11 (permalink)
|
|
Administrator
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
|
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.
|
|
|
Aug 31st, 2007, 12:39
|
#12 (permalink)
|
|
Junior Member
Join Date: Jun 2006
Location: Here
Posts: 28
|
Re: tried java now c++
python > pearl
|
|
|
Aug 31st, 2007, 12:50
|
#13 (permalink)
|
|
Administrator
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
|
Re: tried java now c++
can you parse xml with python?
__________________
Languages: PHP, mySQL (queries), C#, (X)html, CSS, JS.
|
|
|
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;
}
|
|
|
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.
|
|
|
Sep 5th, 2007, 18:13
|
#16 (permalink)
|
|
Administrator
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
|
Re: tried java now c++
what code we talking about now? :s
__________________
Languages: PHP, mySQL (queries), C#, (X)html, CSS, JS.
|
|
|
Sep 5th, 2007, 18:16
|
#17 (permalink)
|
|
Elite Veteran
Join Date: Sep 2006
Location: The Kingdom of Rabbits
Age: 21
Posts: 2,381
|
Re: tried java now c++
php by the looks of it
|
|
|
Sep 5th, 2007, 18:20
|
#18 (permalink)
|
|
Administrator
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
|
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.
|
|
| | | |