LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-11-2007, 07:40 AM   #1
wee-face
LQ Newbie
 
Registered: Jan 2007
Posts: 17

Rep: Reputation: 0
haircut programming


Is it possible to code a haircut in c? Where would one
begin? I'd very much like to program a haircut and at
first was thinking of something along the lines of
Jim Morrison, but i'm thinking that might be too much
too soon.

So now i'm thinking chris rock, not sure...any ideas?
 
Old 04-11-2007, 08:14 AM   #2
taylor_venable
Member
 
Registered: Jun 2005
Location: Indiana, USA
Distribution: OpenBSD, Ubuntu
Posts: 892

Rep: Reputation: 43
That might be a very difficult task. Despite his best efforts, even Richard Stallman was unable to write a very good haircut in C.

 
Old 04-11-2007, 08:16 AM   #3
alred
Member
 
Registered: Mar 2005
Location: singapore
Distribution: puppy and Ubuntu and ... erh ... redhat(sort of) :( ... + the venerable bsd and solaris ^_^
Posts: 658
Blog Entries: 8

Rep: Reputation: 31
believe , i even tried googling for "haircut.c" ... ^_^


.
 
Old 04-11-2007, 08:22 AM   #4
belhifet
LQ Newbie
 
Registered: Apr 2007
Distribution: Arch
Posts: 8

Rep: Reputation: 0
What's a haircut in C?

o_O
 
Old 04-11-2007, 08:35 AM   #5
trashbird1240
Member
 
Registered: Sep 2006
Location: Durham, NC
Distribution: Slackware, Ubuntu (yes, both)
Posts: 463

Rep: Reputation: 31
I would suggest a dynamically typed language instead.
Joel
 
Old 04-11-2007, 09:21 AM   #6
kshkid
Member
 
Registered: Dec 2005
Distribution: RHEL3, FC3
Posts: 383

Rep: Reputation: 30
Quote:
Originally Posted by belhifet
What's a haircut in C?

o_O

This is quite new for me!

Well looking at the post at first, I thought of is a pattern to be derived and proceeding with permutation and combination.


Whats a haircut in C really ?
 
Old 04-11-2007, 09:26 AM   #7
hacker supreme
Member
 
Registered: Oct 2006
Location: As far away from my username as possible
Distribution: Gentoo
Posts: 259
Blog Entries: 1

Rep: Reputation: 31
#include <humour.h>

#include "hair.hpp"
#ifdef long_hair
#include "bobble.h"
#endif

int main(int length,char color,int irritationToPartents)
{
if(irritationToPartents>maxIrritation)
{
haircut();
}
else if(color!=favouriteColor)
{
dyeHair();
}
else if(length<maxLength)
{
growHair();
}
else
{
getAJobYouHippie();
}
return 0;
}

Well, I tried...
 
Old 04-11-2007, 10:03 AM   #8
wee-face
LQ Newbie
 
Registered: Jan 2007
Posts: 17

Original Poster
Rep: Reputation: 0
i've no idea really, i'm trying to think outside
the box and come up with something unique, something
fun, different.

Programming a haircut seemed like a good idea.

My biggest problem always seems to be coming up
with something, seems all i've done is re-invent
the wheel, my wheels are inferior to other wheels
that were created before i was even born.

So i figure if i can come up with my own wheel, then
i'll at least have made a mark in some way.

Or maybe i'll write another text editor, server...
the usual crap, i might even code the definitive
hello world, any ideas?
 
Old 04-11-2007, 10:12 AM   #9
belhifet
LQ Newbie
 
Registered: Apr 2007
Distribution: Arch
Posts: 8

Rep: Reputation: 0
...programming the haircut machine?
embedded device programming with C?

Go ask the barber, rofl.
 
Old 04-11-2007, 10:42 AM   #10
wee-face
LQ Newbie
 
Registered: Jan 2007
Posts: 17

Original Poster
Rep: Reputation: 0
lol, not really a machine no, just a program that
is also a haircut, perhaps it's not possible.
 
Old 04-11-2007, 10:45 AM   #11
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Quote:
a program that is also a haircut
Hum the more I read this thread, the less I understand what a haircut is
 
Old 04-11-2007, 11:37 AM   #12
belhifet
LQ Newbie
 
Registered: Apr 2007
Distribution: Arch
Posts: 8

Rep: Reputation: 0
A program that is also this:
http://www.ooops.pl/makowskiundpepe/...ult-of-mac.jpg

??

 
Old 04-11-2007, 12:11 PM   #13
cfaj
Member
 
Registered: Dec 2003
Location: Toronto, Canada
Distribution: Mint, Mandriva
Posts: 221

Rep: Reputation: 31
Quote:
Originally Posted by taylor_venable
That might be a very difficult task. Despite his best efforts, even Richard Stallman was unable to write a very good haircut in C.


He was a little more successful using Lisp, but not much.

 
Old 04-11-2007, 04:17 PM   #14
esteeven
Senior Member
 
Registered: Oct 2001
Location: Bristol UK
Distribution: Arch Slackware Ubuntu
Posts: 1,082

Rep: Reputation: 52
This thread has had me combing the (hair)net for answers but I can see a parting coming because it's too much on the fringe. I dreads (!!) posting answers that are permanent but all answers serve to highlight users' views.
 
Old 04-13-2007, 09:39 AM   #15
wee-face
LQ Newbie
 
Registered: Jan 2007
Posts: 17

Original Poster
Rep: Reputation: 0
rofl!

the last reply was awesome, i love it!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference between Top Down programming & Bottom up programming minil Programming 1 06-17-2005 02:42 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration