Posts: 3,616
Threads: 287
Joined: Jan 2003
I've done functions.
And C doesn't have classes.
f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.
Posts: 3,343
Threads: 83
Joined: Mar 2003
Awww, don't it? Dang...
nVm
Posts: 3,616
Threads: 287
Joined: Jan 2003
C++ does.
f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.
Posts: 594
Threads: 11
Joined: Oct 2002
Quote:Just a quickie: can you select a database by:
mysql_query("SELECT $database")
?
You can use mysql_query, but not with 'SELECT' I think
That's the way....(aha aha...I like it :lol: ):
Code:
$query = "USE $database";
mysql_query($query);
B 4 EVER
Posts: 614
Threads: 87
Joined: Aug 2001
Yeah I believe if you tried to do mysql_query("SELECT $database"); then MySQL would probably interpret that as a SELECT statement that gets rows from a table and not selecting a database. Why would you want to do it that way anyhow?
Posts: 3,279
Threads: 170
Joined: Nov 2003
Heh oracle, like the //, classes came about with C++, as well as all kinds of other fun stuff
The old ANSI C is pretty barren, to be honest with ya...C and C++ both change with each "version". I find it somewhat disturbing that people still call C "portable" when it's not and never really was. It's possible to write portable C, but it's also possible to write portable BASIC, PASCAL, or FORTRAN. One author summed it up best: "It's not C that is portable, it's the C programmer that's portable, being able to code C on virtually any platform."
Yeah yeah I know I went off-topic, but eh...oh well
I'd knock on wood, but my desk is particle board.
Posts: 864
Threads: 13
Joined: Oct 2003
Quote:That's the way....(aha aha...I like it :lol: )
lol i love that song :lol:
igitalblackie.com - Done!
Ask about our hosting
-Goddess of the of the No More Religion Threads movement
Posts: 6,419
Threads: 74
Joined: Mar 2002
But you should concur with the fact that is easier to write portable C than portable <insert procedural language here>.
[y'know, having ports of GCC in almost every system, if you code in the GCC dialect you know your progs can be compiled... *everywere*
]
Posts: 3,279
Threads: 170
Joined: Nov 2003
I do agree that it IS in fact easy to write portable C code, easier than many other languages. But the fact that it takes an actual effort to write it like that is often overlooked. That's the part that bugs me. I've got little knowledge of GCC so I can't really comment on it, but I do know that writing an app for Linux in GCC and taking that same app and compiling it in GCC for the GBA, well...might not have the desired results
which is another aspect of "portability" that is always overlooked. I can compile ANSI C code in HuC all day long that's been written ANSI-compliant but for Linux and it won't do what I want on the PCE hardware.
I'd knock on wood, but my desk is particle board.
Posts: 6,419
Threads: 74
Joined: Mar 2002
Yeah, I understand your point completely. What happens with console compilers is that most of times they are still on development and thus they are far from complete. I've had nasty problems with ZCC (GCC for Z80 compiler) but well, it's free
I can't complain (that's what sucks about free stuff
).