Author Topic: C Shell :)  (Read 21673 times)

0 Members and 1 Guest are viewing this topic.

Offline rabbit

  • x86
  • Hero Member
  • *****
  • Posts: 8092
  • I speak for the entire clan (except Joe)
    • View Profile
C Shell :)
« on: May 11, 2005, 10:33:35 pm »
I decided to learn C, mostly because I didn't feel like studying.  I got MingW and MSYS as a compiling system/shell, and I'm wondering if any of you have good tutorials?

PS:

My world program is sexy :)

Offline Newby

  • Moderator
  • Hero Member
  • *****
  • Posts: 10877
  • Thrash!
    • View Profile
Re: C Shell :)
« Reply #1 on: May 12, 2005, 10:24:03 am »
The hell does C shell have to do with learning C?

If you're gonna learn to use a shell, use one in Linux. Windows shell emulators are dumb.

And if you're gonna use a C-oriented shell, use tcsh.
- Newby
http://www.x86labs.org

Quote
[17:32:45] * xar sets mode: -oooooooooo algorithm ban chris cipher newby stdio TehUser tnarongi|away vursed warz
[17:32:54] * xar sets mode: +o newby
[17:32:58] <xar> new rule
[17:33:02] <xar> me and newby rule all

I'd bet that you're currently bloated like a water ballon on a hot summer's day.

That analogy doesn't even make sense.  Why would a water balloon be especially bloated on a hot summer's day? For your sake, I hope there wasn't too much logic testing on your LSAT. 

Offline Warrior

  • supreme mac daddy of trolls
  • Hero Member
  • *****
  • Posts: 7503
  • One for a Dime two for a Quarter!
    • View Profile
Re: C Shell :)
« Reply #2 on: May 12, 2005, 03:41:27 pm »
Losers, DJGPP + makefile.
One must ask oneself: "do I will trolling to become a universal law?" And then when one realizes "yes, I do will it to be such," one feels completely justified.
-- from Groundwork for the Metaphysics of Trolling

Offline rabbit

  • x86
  • Hero Member
  • *****
  • Posts: 8092
  • I speak for the entire clan (except Joe)
    • View Profile
Re: C Shell :)
« Reply #3 on: May 12, 2005, 06:41:20 pm »
The hell does C shell have to do with learning C?

If you're gonna learn to use a shell, use one in Linux. Windows shell emulators are dumb.

And if you're gonna use a C-oriented shell, use tcsh.
It's msys, a shell designed for cross platform C, C++, Ada, etc... compiling.  I wanted to get into C for no reason at all and downloaded it, then asked if anyone had any tutorials, so go die.  The reason I asked for tutorials is because I was writing my Hello program and realized I had nothing else to work with, and I wanted to learn.

MSYS supports grep, sh, etc.. and I do feel like I'm back using my good ol' Slackware 9.1 Install Disc Linux Kernel [of Doom], the only difference is that I haven't (and thankfully can't) wiped my HDs twice yet.

@Warrior: I used DJGPP and makefile for a while, but I didn't like them for whatever reason (it was a while ago).  I also used rhide and GNU++, but they are ew and designed for Win95 DOS.
« Last Edit: May 12, 2005, 06:43:16 pm by R.a.B.B.i.T »

Offline Joe

  • B&
  • Moderator
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: C Shell :)
« Reply #4 on: May 12, 2005, 07:23:39 pm »
Quote
so go die.
And this kid wants to join x86? Hrm..

Also, she sells sea shells by the sea shore. You might want to go talk to her.
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline Warrior

  • supreme mac daddy of trolls
  • Hero Member
  • *****
  • Posts: 7503
  • One for a Dime two for a Quarter!
    • View Profile
Re: C Shell :)
« Reply #5 on: May 12, 2005, 08:12:07 pm »
..and this kid is in x86?

Useless non productive, non funny, non important comments.
One must ask oneself: "do I will trolling to become a universal law?" And then when one realizes "yes, I do will it to be such," one feels completely justified.
-- from Groundwork for the Metaphysics of Trolling

Offline Joe

  • B&
  • Moderator
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: C Shell :)
« Reply #6 on: May 12, 2005, 10:10:02 pm »
Hey, when did I tell the queen to die? Thats right, Mr. BLS.
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline Warrior

  • supreme mac daddy of trolls
  • Hero Member
  • *****
  • Posts: 7503
  • One for a Dime two for a Quarter!
    • View Profile
Re: C Shell :)
« Reply #7 on: May 12, 2005, 11:28:16 pm »
Whatever, I have full on Dark-Elements which is good.
One must ask oneself: "do I will trolling to become a universal law?" And then when one realizes "yes, I do will it to be such," one feels completely justified.
-- from Groundwork for the Metaphysics of Trolling

Offline Joe

  • B&
  • Moderator
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: C Shell :)
« Reply #8 on: May 13, 2005, 07:56:06 am »
Quote
...she sells sea shells by the sea shore...

Say it out loud! I can't!
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline Blaze

  • x86
  • Hero Member
  • *****
  • Posts: 7136
  • Canadian
    • View Profile
    • Maide
Re: C Shell :)
« Reply #9 on: May 13, 2005, 07:58:58 am »
Ignore the ++ and go here: http://www.cplusplus.com/doc/tutorial/
And like a fool I believed myself, and thought I was somebody else...

Offline rabbit

  • x86
  • Hero Member
  • *****
  • Posts: 8092
  • I speak for the entire clan (except Joe)
    • View Profile
Re: C Shell :)
« Reply #10 on: May 13, 2005, 02:36:18 pm »
I KNOW C++ YOU MONKEY!!

I want to learn C because making DLLs and whatnot is SOOOOOOOOOOOOOOOOO much easier.

Offline drka

  • ffdshow > in_mp3.dll
  • Full Member
  • ***
  • Posts: 330
    • View Profile
Re: C Shell :)
« Reply #11 on: May 21, 2005, 12:17:55 am »
heres a nice tutorial. hello world :P.
Code: [Select]
#include <iostream>

using namespace std;

int main (int argc, char *argv[])
{
  cout << "Hello World!" << endl;
  cout << "Press ENTER to continue..." << endl;
  cin.get();
  return 0;
}

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: C Shell :)
« Reply #12 on: May 21, 2005, 03:23:44 am »
I KNOW C++ YOU MONKEY!!

I want to learn C because making DLLs and whatnot is SOOOOOOOOOOOOOOOOO much easier.

If you know C++, you know C. Take out the OOP stuff and you have C.

Offline rabbit

  • x86
  • Hero Member
  • *****
  • Posts: 8092
  • I speak for the entire clan (except Joe)
    • View Profile
Re: C Shell :)
« Reply #13 on: May 21, 2005, 08:30:38 am »
heres a nice tutorial. hello world :P.
Code: [Select]
#include <iostream>

using namespace std;

int main (int argc, char *argv[])
{
  cout << "Hello World!" << endl;
  cout << "Press ENTER to continue..." << endl;
  cin.get();
  return 0;
}
A. That's retarded.
B. cin.get()?  That serves no purpose.
C. You're using a namespace you douche.
D. You use namespace std but don't use stdio, smart one.

Offline Warrior

  • supreme mac daddy of trolls
  • Hero Member
  • *****
  • Posts: 7503
  • One for a Dime two for a Quarter!
    • View Profile
Re: C Shell :)
« Reply #14 on: May 21, 2005, 09:30:14 am »
afaik C doesn't utilize the cout/cin functions and they also afaik don't have namespaces.

C isn't object oriented so the closest thing to OO you can do in C is linked lists
One must ask oneself: "do I will trolling to become a universal law?" And then when one realizes "yes, I do will it to be such," one feels completely justified.
-- from Groundwork for the Metaphysics of Trolling

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: C Shell :)
« Reply #15 on: May 21, 2005, 10:54:57 am »
afaik C doesn't utilize the cout/cin functions and they also afaik don't have namespaces.

C isn't object oriented so the closest thing to OO you can do in C is linked lists
That's why rabbit commented on it. :P

Linked lists aren't even close to OO, lol.

Offline rabbit

  • x86
  • Hero Member
  • *****
  • Posts: 8092
  • I speak for the entire clan (except Joe)
    • View Profile
Re: C Shell :)
« Reply #16 on: May 21, 2005, 12:57:34 pm »
Linked lists suck, too, I'd rather just use an array.

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: C Shell :)
« Reply #17 on: May 21, 2005, 01:14:09 pm »
Linked lists suck, too, I'd rather just use an array.

They're okay in C. Seems a bit more efficient than an array of structures. :>

Offline drka

  • ffdshow > in_mp3.dll
  • Full Member
  • ***
  • Posts: 330
    • View Profile
Re: C Shell :)
« Reply #18 on: May 21, 2005, 03:18:48 pm »
A. That's retarded.
B. cin.get()? That serves no purpose.
C. You're using a namespace you douche.
D. You use namespace std but don't use stdio, smart one.

ummm. yes im using a namespace because in the iostream.h file, the cout property line is named #use std:cout or something like that but stf:cout was there.

and cin.get is also something in that file. im just using a template from Dev-C++.

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: C Shell :)
« Reply #19 on: May 21, 2005, 05:22:54 pm »
He's learning CEE, not CEE PLUS PLUS (as denoted by the subject C Shell :)).

Offline rabbit

  • x86
  • Hero Member
  • *****
  • Posts: 8092
  • I speak for the entire clan (except Joe)
    • View Profile
Re: C Shell :)
« Reply #20 on: May 21, 2005, 05:50:34 pm »
A. That's retarded.
B. cin.get()? That serves no purpose.
C. You're using a namespace you douche.
D. You use namespace std but don't use stdio, smart one.

ummm. yes im using a namespace because in the iostream.h file, the cout property line is named #use std:cout or something like that but stf:cout was there.

and cin.get is also something in that file. im just using a template from Dev-C++.
Notepad2 & MinGW/MSYS >  Dev-C++ * 23712831982

Don't use namespaces, ever.  Period.  I don't care who tells you what, don't use them.
If you include iostream.h, then you don't need to do std::cout and std::endl, you can just use cout << endl; and it works.  cin.get() is absolutely useless and evil, I demand you remove it immediately.

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: C Shell :)
« Reply #21 on: May 21, 2005, 06:16:38 pm »
If rabbit's demand's aren't met, he'll likely drop a bomb on your house. :(

(Just kidding, but he is right lol).

Offline rabbit

  • x86
  • Hero Member
  • *****
  • Posts: 8092
  • I speak for the entire clan (except Joe)
    • View Profile
Re: C Shell :)
« Reply #22 on: May 22, 2005, 10:20:48 am »
My cousin is 2nd Commander of the Pacific Fleet of the United States Navy.  That having been said, his name is Rob and he got married in Hawaii about 5 years ago, but we didn't go to the wedding for some reason (:'().  He used to be a nuclear submarine commander, but he got promoted for being awesome.


Nextlyness: I already know C++, but now I'm working on C.

Offline Quik

  • Webmaster Guy
  • x86
  • Hero Member
  • *****
  • Posts: 3262
  • \x51 \x75 \x69 \x6B \x5B \x78 \x38 \x36 \x5D
    • View Profile
Re: C Shell :)
« Reply #23 on: May 22, 2005, 11:25:15 am »
Wouldn't you know C if you really knew C++ well? It's the jump to C from C++ that's alot more difficult.
« Last Edit: May 22, 2005, 12:11:02 pm by Quik »
Quote
[20:21:13] xar: i was just thinking about the time iago came over here and we made this huge bomb and light up the sky for 6 min
[20:21:15] xar: that was funny

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: C Shell :)
« Reply #24 on: May 22, 2005, 12:04:44 pm »
Wouldn't you know C if you really knew C++ well? It's the jump to C++ from C that's alot more difficult.

Yes, you would. And you have your second sentence backwards. :)

Offline Quik

  • Webmaster Guy
  • x86
  • Hero Member
  • *****
  • Posts: 3262
  • \x51 \x75 \x69 \x6B \x5B \x78 \x38 \x36 \x5D
    • View Profile
Re: C Shell :)
« Reply #25 on: May 22, 2005, 12:10:40 pm »
Yeah, I did. Damn me.
Quote
[20:21:13] xar: i was just thinking about the time iago came over here and we made this huge bomb and light up the sky for 6 min
[20:21:15] xar: that was funny

Offline rabbit

  • x86
  • Hero Member
  • *****
  • Posts: 8092
  • I speak for the entire clan (except Joe)
    • View Profile
Re: C Shell :)
« Reply #26 on: May 22, 2005, 05:11:39 pm »
I'm too used to being able to use classes, and there are some other differences between C and C++, it's just irritating getting 20 errors on compile because I forgot that I had to do 1 thing a different way.