Forum: Geek Forum
Topic: C is cool!!!
started by: LiNeY

Posted by LiNeY on Jul. 27 2001,18:26
Wow I managed to get through the first 7 lessons of my "Teach yourself C in 21 days" book... that means I already have done a third!!! Now I know enough basics to experiment with writing simple programs... I love it!

If anyone has some good advice for me, especially concerning my compiler (Microsoft Visual C++ 5.0, I have no idea how to deal with all this workspace and project stuff), please tell me.


Posted by MattimeoZ80 on Jul. 27 2001,20:42
you need to learn c++ now... i have a good book at home, i'll post the title when i get there. when i got it it came with a learning edition of msvc6. but learn how to mod half-life
Posted by DuSTman on Jul. 27 2001,22:07
I concur, I like the ability to do object-oriented architecture in C++..

and would this book be called "Teach youself C++ in 21 days" by any chance?

This message has been edited by DuSTman on July 28, 2001 at 06:24 PM


Posted by Spydir on Jul. 27 2001,22:43
if you're planning on actually doing real programming, continue with the C stuff. Almost all the languages made after 1972 are based on it. Anything made before that sucks, except C itself . C++ is ok, but really only usable if whatever you're doing is a good c++ thing (games... that's all I can thing of...). Other wise, doing something like a text editor in C++ is a waste of source code, libs, and all sorts of stuff...

------------------
Net Syndrome - < http://www.netsyndrome.net/ >
Spydir Web - < http://www.netsyndrome.net/spydirweb/ >


Posted by CatKnight on Jul. 29 2001,14:03
code:
#!/usr/bin/perl

while ($spydirs_intelligence < 1) {
print "p3rl 0wns j00 ";
}
MainLoop;


try running that and see what happens

This message has been edited by CatKnight on July 30, 2001 at 09:12 AM


Posted by demonk on Jul. 29 2001,16:41
code:

#!/usr/bin/perl -w

my $CatKnight_intelligence = 0;

while($CatKnight_intelligence < 1) {
print "j00 don't know p3rl! ";
}


Nice try though. Your script won't even run. Mine will. And it will till the end of time.

------------------
Oregonians -
Says they are Independants, registers Democrat, and votes Republican.

This message has been edited by demonk on July 30, 2001 at 11:42 AM


Posted by Spydir on Jul. 29 2001,18:01
... you're a dipshit, ck. I know perl. You mixed some VB in there or something. I dunno, but that was ugly. Now, lets see you code some INTERCAL or BrainFuck and I'll stop calling you a dipshit republican.

------------------
Net Syndrome - < http://www.netsyndrome.net/ >
Spydir Web - < http://www.netsyndrome.net/spydirweb/ >


Posted by demonk on Jul. 29 2001,18:06
No you won't. You'll always call him a dipshit republican.

------------------
Oregonians -
Says they are Independants, registers Democrat, and votes Republican.


Posted by Spydir Web on Jul. 29 2001,19:41
True dat

edit - IE sucks. Chooses the wrong usernames... and it sucks... and stuff...

------------------
Net Syndrome - < http://netsyndrome.net/ >
Spydir Web - < http://netsyndrome.net/spydirweb/ >

This message has been edited by Spydir Web on July 30, 2001 at 02:42 PM


Posted by CatKnight on Jul. 30 2001,12:43

Posted by Spydir on Jul. 30 2001,15:07

------------------
Net Syndrome - < http://www.netsyndrome.net/ >
Spydir Web - < http://www.netsyndrome.net/spydirweb/ >


Posted by RenegadeSnark on Jul. 30 2001,16:13
We need to execute this script:

quote:

#!/usr/bin/perl

while ($post_count{'CatKnight'} > 0) {
$post_count{'CatKnight'}--;
}

while (!$CatKnight->homeless) {
$CatKnight->bill("񘈨", "Fagot tax");
}



Posted by Werlwind on Jul. 31 2001,10:42
wow i am thinking of learning c. as they said u now need to learn c++.

------------------
visit my site @ < http://www.werlwind.cjb.net >


Posted by Dark Knight Bob on Jul. 31 2001,22:01
-------------------
quote:

/dkb/purl/necklace
[{{spank}=<meaningless garbage!}code}]
less than "1eet" <---insert 1337 coding[]
wait 100000 [dkb reads coding boox]
analyse-moo moo.=<confusion!
wait 10 {until} dkb closes code book
[delete book] Dkb= still knows sod all
[mainloop thing]

right so anywayz so much for that attempt.

------------------
To skate on the thin crust, known as reality

< Where's your self re-cocking-spect >

This message has been edited by Dark Knight Bob on August 01, 2001 at 05:02 PM


Posted by damien_s_lucifer on Aug. 01 2001,05:13
Actually, the call to MainLoop in CK's code just shows he does a lot of work with the Tk toolkit - which means he's more 1337 than most of you

Liney, learn MORE C. If you've only made it thru the first 7 lessons, you have a lot more reading to do


Posted by demonk on Aug. 01 2001,05:58
True, but if he was truely good at perl and uses Tk alot, then he would have instictually put the "use Tk;" command at the top of the file. He did not. Like I said before, he's code will not run without modification, neither will RenegadeSnark's no matter how funny it is.

------------------
10 PRINT "HOME"
20 PRINT "SWEET"
30 GOTO 10


Posted by Nikita on Aug. 01 2001,18:45
So, you're learning C, eh?
< http://www.ucomics.com/foxtrot/viewft.cfm?uc_fn=1&uc_full_date=20010719&u c_daction=X&uc_comic=ft >

This message has been edited by Nikita on August 02, 2001 at 01:50 PM


Posted by RenegadeSnark on Aug. 01 2001,20:20
Somehow writing a "bill" function or defining package CatKnight seemed like it would be excessive for one little joke.


Posted by Rhydant on Aug. 02 2001,17:10
< http://shop.barnesandnoble.com/booksearch/isbnInquiry.asp?userid=1A7XOO1BVN&mscssid=UDS5EHW5VH449K2M5QABAJ12JERLAQSB&isbn=0672315157 >
you should of gotten that book...
as soon as my life goes back to not.... hell, ill buy that and steal a copy of Visual C (or whatever) from the office.

i have no idea what C++ is, but im thinking ive got to learn it if i want to keep up with the other geeks. you know?

------------------
I may be paranoid, but not an Android.


Posted by Beldurin on Aug. 07 2001,19:19
Be carful when buying programming "how to" books. I wanted to learn how to write Windows Apps so I picked up a Visual C++ programming book and all it taught me how to do was write more Win32 console apps. They tend to be pretty lean on the actual MFC programming (windowing, etc.) aspects.

As for namespaces, I could never get a straight answer from my professors, but if you have everything installed in default location, I was told to use: "using namespace std;"

Hope that helps!


Posted by CatKnight on Aug. 08 2001,13:53
quote:
Originally posted by damien_s_lucifer:
Actually, the call to MainLoop in CK's code just shows he does a lot of work with the Tk toolkit - which means he's more 1337 than most of you

Liney, learn MORE C. If you've only made it thru the first 7 lessons, you have a lot more reading to do


I forgot the use tk; though


Posted by CatKnight on Aug. 08 2001,13:58
code:

#!/usr/bin/perl
use Tk;

sub eatme {
while ($penis < 6) {
print "Eat me! ";
}
}
my $mw = MainWindow->new;
$mw->Button(-text => "Eat me!", -command => [ \&eatme ]);
MainLoop;



Posted by chmod on Aug. 08 2001,15:00
Has anyone ever seen Perl poetry? It's pretty weird but still fun to read. There's even a whole chapter on it in Programming Perl (the o'reilly book).
Posted by damien_s_lucifer on Aug. 08 2001,22:54
And yes, CK, you DID forget the use Tk; but that's okay. We Perl programmers aren't required to define everything

code:

foreach $book (keys \%library)
{
undef $library{$book} unless ($library{$book}->publisher() = "O'Reilly");
}

For those of you who are just learning programming, that code basically says "if it ain't O'Reilly, it's crap." Which is *very* true. If you want to learn a language, get the "Learning ________" and "______ in a Nutshell" books from O'Reilly. You won't need anything else

If you DO know Perl, don't badger me if I got the reference handling wrong. References in Perl 5 are downright maddening.

/me drools in anticipation of Perl 6...


Posted by CatKnight on Aug. 09 2001,05:48
code:

#!/usr/bin/perl


APPEAL:


listen (please, please);


open yourself, wide;
join (you, me),
connect (us, together),


tell me.


do something if distressed;

@dawn, dance;
@evening, sing;
read (books, $poems, stories) until peaceful;
study if able;


write me if-you-please;


sort your feelings, reset goals, seek (friends, family, anyone);


do*not*die (like this)
if sin abounds;


keys (hidden), open (locks, doors), tell secrets;
do not, I-beg-you, close them, yet.


accept (yourself, changes),
bind (grief, despair);


require truth, goodness if-you-will, each moment;


select (always), length(of-days)


#listen (a perl poem)
#Sharon Hopkins
#rev. June 19, 1995


wow that was a lovely waste of time

This message has been edited by CatKnight on August 09, 2001 at 12:51 PM


Powered by Ikonboard 3.1.4 © 2006 Ikonboard