collapse collapse

* Who's Online

  • Dot Guests: 118
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Board Stats

  • stats Total Members: 88
  • stats Total Posts: 11164
  • stats Total Topics: 1700
  • stats Total Categories: 4
  • stats Total Boards: 76
  • stats Most Online: 1470

Author Topic: can someone make simple library system with login logout and borrow and return  (Read 3504 times)

0 Members and 1 Guest are viewing this topic.

pintados05

  • Guest

Offline Celestialkey

  • Administrator
  • Hero Member
  • *
  • Posts: 3962
  • Reputation 4874
  • Gender: Male
  • Its Alive!!
    • View Profile
    • www.CelestialCoding.com
Lol... Thats it? We can't do anything based of something so vague. Explain the program specifics.
Created By: Eczuo
Quote
I have noticed that people who claim that everything is predestined, and we can do nothing to change it, look both ways before they cross the road.
Quote
I'd prefer to die standing, than to live on my knees - Che Guevara
Quote
If you change the way you look at something, does that something change in any way?
- Quantum Theory

Hacking
Quote
Never in the field of human conflict was so much owed by so many to so few. - Winston Churchill


Quote from: Revelations 12:4
And his tail drew the third part of the stars of heaven, and did cast them into the earth; and the dragon stood before the woman which was ready to be delivered, for to devour her child as soon as it was born.

Quote
It takes skill to build an empire. It takes an idiot to maintain it.

Offline Nathan

  • Administrator
  • Hero Member
  • *
  • Posts: 1437
  • Reputation 1768
  • Gender: Male
  • woof woof
    • View Profile
Sure.

Code: PHP
  1. <?php
  2. echo "Pay me $500";
  3. ?>
  4.  

Let me know if that works for you :).
Projects:
[ Axios Engine ] [ sourcehub ]
Compilers: Microsoft Visual Studio 2008, GNU C++, FASM, MASM, VB 6/.Net.
Languages: C++, PHP, ASM, JS, VB6/.Net, BASIC, HTML, MySQL
Please buy me some books: Amazon Wishlist

Offline jho

  • The flamboyant FLOSS fanatic
  • Sr. Member
  • *
  • Posts: 352
  • Reputation 1199
  • Gender: Male
    • View Profile
    • http://hajotus.net
Say hi to your teacher who asked for the assignment. I hope (s)?he's okay with a little bit of obfuscation and accepts languages other than what was probably asked for.
Code: Perl
  1. $;=$|;$m=sub{print$/;$i=$|;map{print++$i.'.'.$".$_.$/}(!$;?("login","exit"):("logout",
  2. "borrow","return","list"));$:=int<>;print$/};$l=sub{if($_[0]){++$;;$*=$p->("Username")
  3. ;$s{$*}=()if!$s{$*}}else{$*=undef;--$;}};$p=sub{print+(shift).": ";$_=<>;chomp;$_};$b=
  4. sub{push@{$s{$*}},scalar$p->("Name")};$y=sub{&$w;splice@{$s{$*}},scalar$p->("Return ".
  5. "number")-1,1};$w=sub{print"Borrowed items for $*:\n\n";$r=$|;map{print++$r.'.'.$".$_.
  6. $/}@{$s{$*}}};$q=sub{&$m;if($;){$:==1?&$l(0):$:==2?&$b:$:==3?&$y:$:==4?&$w:$q->()}else
  7. {$:==1?&$l($$):exit};$q->()};&$q

(PS. Nathan, I think the Perl code hilighter is broken. Did nothing for me. And BBcode inside code tags is still bugged. :()


[edited name=jho date=1256826359][/edited]
« Last Edit: October 29, 2009, 10:08:55 am by Celestialkey »
"I'm sorry, I only accept criticism in the form of sed expressions."

Offline Celestialkey

  • Administrator
  • Hero Member
  • *
  • Posts: 3962
  • Reputation 4874
  • Gender: Male
  • Its Alive!!
    • View Profile
    • www.CelestialCoding.com
I don't think people like this ever return to actually check the responses...
Created By: Eczuo
Quote
I have noticed that people who claim that everything is predestined, and we can do nothing to change it, look both ways before they cross the road.
Quote
I'd prefer to die standing, than to live on my knees - Che Guevara
Quote
If you change the way you look at something, does that something change in any way?
- Quantum Theory

Hacking
Quote
Never in the field of human conflict was so much owed by so many to so few. - Winston Churchill


Quote from: Revelations 12:4
And his tail drew the third part of the stars of heaven, and did cast them into the earth; and the dragon stood before the woman which was ready to be delivered, for to devour her child as soon as it was born.

Quote
It takes skill to build an empire. It takes an idiot to maintain it.

Offline jho

  • The flamboyant FLOSS fanatic
  • Sr. Member
  • *
  • Posts: 352
  • Reputation 1199
  • Gender: Male
    • View Profile
    • http://hajotus.net
I don't think people like this ever return to actually check the responses...
Might be. But alas, I'm bored, and that was just a little bit of something to help pass my time. :P
"I'm sorry, I only accept criticism in the form of sed expressions."

Offline Celestialkey

  • Administrator
  • Hero Member
  • *
  • Posts: 3962
  • Reputation 4874
  • Gender: Male
  • Its Alive!!
    • View Profile
    • www.CelestialCoding.com
Say hi to your teacher who asked for the assignment. I hope (s)?he's okay with a little bit of obfuscation and accepts languages other than what was probably asked for.
Code: [Select]
$;=$|;$m=sub{print$/;$i=$|;map{print++$i.'.'.$".$_.$/}(!$;?("login","exit"):("logout",
"borrow","return","list"));$:=int<>;print$/};$l=sub{if($_[0]){++$;;$*=$p->("Username")
;$s{$*}=()}else{delete$s{$*};--$;}};$p=sub{print+(shift).": ";$_=<>;chomp;$_};$b=sub{
push@{$s{$*}},scalar$p->("Name")};$y=sub{&$w;splice@{$s{$*}},scalar$p->("Return number"
)-1,1};$w=sub{print"Borrowed items for $*:\n\n";$r=$|;map{print++$r.'.'.$".$_.$/}@{$s{
$*}}};$q=sub{&$m;if($;){$:==1?&$l(0):$:==2?&$b:$:==3?&$y:$:==4?&$w:$q->()}else{$:==1?
&$l($$):exit};$q->()};&$q

(PS. Nathan, I think the Perl code hilighter is broken. Did nothing for me. And BBcode inside code tags is still bugged. :()
I like how you made it as hard to decipher as possible lulz.
Created By: Eczuo
Quote
I have noticed that people who claim that everything is predestined, and we can do nothing to change it, look both ways before they cross the road.
Quote
I'd prefer to die standing, than to live on my knees - Che Guevara
Quote
If you change the way you look at something, does that something change in any way?
- Quantum Theory

Hacking
Quote
Never in the field of human conflict was so much owed by so many to so few. - Winston Churchill


Quote from: Revelations 12:4
And his tail drew the third part of the stars of heaven, and did cast them into the earth; and the dragon stood before the woman which was ready to be delivered, for to devour her child as soon as it was born.

Quote
It takes skill to build an empire. It takes an idiot to maintain it.

Offline Nathan

  • Administrator
  • Hero Member
  • *
  • Posts: 1437
  • Reputation 1768
  • Gender: Male
  • woof woof
    • View Profile
Say hi to your teacher who asked for the assignment. I hope (s)?he's okay with a little bit of obfuscation and accepts languages other than what was probably asked for.
Code: Perl
  1. $;=$|;$m=sub{print$/;$i=$|;map{print++$i.'.'.$".$_.$/}(!$;?("login","exit"):("logout",
  2. "borrow","return","list"));$:=int<>;print$/};$l=sub{if($_[0]){++$;;$*=$p->("Username")
  3. ;$s{$*}=()if!$s{$*}}else{$*=undef;--$;}};$p=sub{print+(shift).": ";$_=<>;chomp;$_};$b=
  4. sub{push@{$s{$*}},scalar$p->("Name")};$y=sub{&$w;splice@{$s{$*}},scalar$p->("Return ".
  5. "number")-1,1};$w=sub{print"Borrowed items for $*:\n\n";$r=$|;map{print++$r.'.'.$".$_.
  6. $/}@{$s{$*}}};$q=sub{&$m;if($;){$:==1?&$l(0):$:==2?&$b:$:==3?&$y:$:==4?&$w:$q->()}else
  7. {$:==1?&$l($$):exit};$q->()};&$q

(PS. Nathan, I think the Perl code hilighter is broken. Did nothing for me. And BBcode inside code tags is still bugged. :()


[edited name=jho date=1256826359][/edited]
Well, at least I tried to get syntax highlighting into the mix :\.
Projects:
[ Axios Engine ] [ sourcehub ]
Compilers: Microsoft Visual Studio 2008, GNU C++, FASM, MASM, VB 6/.Net.
Languages: C++, PHP, ASM, JS, VB6/.Net, BASIC, HTML, MySQL
Please buy me some books: Amazon Wishlist

 

Donate


* Search


* Recent Posts

I miss the chatbox by Shishka
[August 27, 2019, 11:52:39 pm]


Image Comparison by Shishka
[May 15, 2017, 01:18:02 pm]


Re: srchub - free source code hosting by Nathan
[December 14, 2015, 11:37:02 pm]


Re: srchub - free source code hosting by Celestialkey
[November 27, 2015, 08:51:42 am]


Updates by Nathan
[October 30, 2015, 08:27:36 pm]