News:

Holy shit, it's 2018 2019 2020 2021 2022 2023 2024, and the US isn't a fascist country! What a time to be alive.

Main Menu

C Shell :)

Started by rabbit, May 11, 2005, 10:33:35 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Sidoh

Quote from: Warrior 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
That's why rabbit commented on it. :P

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

rabbit

Linked lists suck, too, I'd rather just use an array.

Sidoh

Quote from: R.a.B.B.i.T on May 21, 2005, 12:57:34 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. :>

drka

Quote from: R.a.B.B.i.T on May 21, 2005, 08:30:38 AM
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++.

Sidoh

He's learning CEE, not CEE PLUS PLUS (as denoted by the subject C Shell :)).

rabbit

Quote from: Mangix on May 21, 2005, 03:18:48 PM
Quote from: R.a.B.B.i.T on May 21, 2005, 08:30:38 AM
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.

Sidoh

If rabbit's demand's aren't met, he'll likely drop a bomb on your house. :(

(Just kidding, but he is right lol).

rabbit

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.

Quik

#23
Wouldn't you know C if you really knew C++ well? It's the jump to C from C++ that's alot more difficult.
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

Sidoh

Quote from: Quik 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.

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

Quik

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

rabbit

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.