About programming language /?

12/26/2011 18:10 gladx00#16
Quote:
Originally Posted by andrewxxx View Post
almost all engineering colleges includes c but computer since which got alot of programming language :) P.S thanks for ur english it can tell where r u from :P
U r right :) and tell me if u can where i am from ?? :P)
12/27/2011 23:38 BioHazarxPaul#17
I enjoyed coding in C++ for my college class but they only teach the basics, its not really close to enough to start coding a server or even understanding a source and how to run it.
12/28/2011 02:02 gladx00#18
Today I learn the basics , Tomorrow I become a Pro !! :D
12/28/2011 02:38 I don't have a username#19
Quote:
Originally Posted by gladx00 View Post
Today I learn the basics , Tomorrow I become a Pro !! :D
The question is can you remember what you have learned today, tomorrow?
Also it doesn't take a week to become a good coder, neither a month, but it can take months and years.
12/28/2011 10:49 gladx00#20
Quote:
Originally Posted by I don't have a username View Post
The question is can you remember what you have learned today, tomorrow?
Also it doesn't take a week to become a good coder, neither a month, but it can take months and years.
!! There is nothing done except by hard working So i have to work hard !!
And Just Be optimistic !!!:D:D
01/04/2012 21:14 Degree2Code#21
class lame {
var poop = 'fruit loop';
function doodoo(flamed){
return flamed;
}
}
lame->doodoo('Topic');
01/04/2012 23:03 Lateralus#22
Quote:
Originally Posted by Degree2Code View Post
class lame {
var poop = 'fruit loop';
function doodoo(flamed){
return flamed;
}
}
lame->doodoo('Topic');
Lots of syntax errors with this code.
01/05/2012 05:44 Degree2Code#23
depends what lang your coding in "Taa-da"
01/05/2012 06:50 12k#24
well, its not PHP, C#, C++, Java, or VB. So what language is it if there isnt any syntax errors haha.
01/05/2012 13:53 I don't have a username#25
Quote:
Originally Posted by Degree2Code View Post
depends what lang your coding in "Taa-da"
No language is like that.

Let's analyze your code.

Code:
class lame {
 var poop = 'fruit loop';
 function doodoo(flamed){
 return flamed;
 }
 }
 lame->doodoo('Topic');
First you have the class lame.
Code:
class lame {
}
It's correct for Java and C#, but if it's C++ you need };.

Now we're back with 2 languages already which is C# and Java and it doesn't fit to any of it. function is a php keyword.

Code:
var poop = 'fruit loop';
var is a keyword in C#, so now we come up with the result that it's a C# code.

All parameters in C# requires an Identifier, because C# is type-strong.
Also you cannot return a datatype, but a datatype value, so the function is not a valid syntax either in any language.
Code:
 function doodoo(flamed){
 return flamed;
 }
Now what we have back is the method call:
Code:
 lame->doodoo('Topic');
-> is used in unsafe context with pointers. Example:
Code:
void something(somedatastruct* data)
{
Console.WriteLine(data->somevalue);
}
' ' is used to define a char. A char can only have one character, so it's not valid either. It would be correct as "Topic".

Other than that nice try.
01/05/2012 14:05 turk55#26
Quote:
Originally Posted by Degree2Code View Post
class lame {
var poop = 'fruit loop';
function doodoo(flamed){
return flamed;
}
}
lame->doodoo('Topic');
var name = prompt("What is your name ?");

if (name == Degree2Code)
{
alert("You failed!");
document.writeln("You failed");
}
else {
document.writeln("You are a nice guy/girl.");
}
01/05/2012 18:13 12k#27
class lame {
var $poop = 'fruit loop';
function doodoo($flamed){
return $flamed;
}
}
$lame->doodoo('Topic');

I believe thats what u were going for (PHP). But still didnt construct the class, and still syntax errors :P
01/05/2012 19:22 Degree2Code#28
yup PHP would need $ unless you assigned a value for no $. So your all wrong lookup PHP6 and sorry for confusing you guys on a C#/C++ related topic ;p

PHP5 would be
class youdorks {
var $weak = 'all of you';
function callin($out) return 'juicy fruit';
}

class ha extends youdorks {
var $saving_term = 'inf';
public function shell_fish($dork){ return $dork; }
}

in php6 you don't need $ to assign it. or you could call it php5/javascript/c#/C++ updated into one basic concept.

Above all programming is something that I related to. It's not hard to code up some random retarded lines just to talk on a retarded thread lol
01/05/2012 20:55 12k#29
Ah, havent used 6 yet. But still need to construct ur class first :D unless ur using the __autoload.
01/05/2012 21:23 Degree2Code#30
i'm just poor lol!, but a few other things to remember is all coding is the same with a few minor changes. Either way been there done that at some point.