My boyfriend is a programmer. I wanted to send him a cute message/email but in code. That would get me soooooo many brownie points.
Of course I know pretty close to nothing about programming so... Any help? 
int main() {
while(1) {
doesLove(you);
}
}
doesLove(String str) {
printf("I love %s!", str);
}
Try something sappy and cutesy like:
Code:int main() { while(1) { doesLove(you); } } doesLove(String str) { printf("I love %s!", str); }
Hehehe, sounds perfect.
Can you explain it to me though?![]()
It would keep printing "I love you" to the screen in an endless loop![]()
It would keep printing "I love you" to the screen in an endless loop![]()
One word, Wingdings
![]()
I started sending emails in Wingdings to some of the federal administrators I work with, and they actually (older and not super computer savvy) were able to decode it and respond to me in binary code. I'll tell you one thing. A 5-page report in Times New Roman is no longer 5 pages when it becomes binary code... You send a text in binary code, and your carrier will show up at your house with a flat bed and one of those PODS completely filled with nothing but your monthly bill.
date ; unzip ; strip ; touch ; grep ; finger ; mount ; fsck ; more ; yes ; umount ; sleep
#include<stdio.h>
main() {while("I") doesLove("you");}
doesLove(char *str) {printf("I love %s!", str);}
Try something sappy and cutesy like:
Code:int main() { while(1) { doesLove(you); } } doesLove(String str) { printf("I love %s!", str); }
Where (or which program) do you put that code in to do that loop? Not trying to steal the idea, but I want to try it out. Seems cool.
cd ~/Desktop
make love
./love
Any C compiler will do, Macs ship with Xcode as an optional install on the second disk that came with your Mac.
Save the modified version I posted (it won't work as originally posted) to a file on your Desktop called love.c.
Then, open Terminal.app and type
Code:cd ~/Desktop make love ./love
B
Any C compiler will do, Macs ship with Xcode as an optional install on the second disk that came with your Mac.
Save the modified version I posted (it won't work as originally posted) to a file on your Desktop called love.c.
Then, open Terminal.app and type
Code:cd ~/Desktop [B][COLOR="Blue"]make love[/COLOR][/B] ./love
B
You (hopefully) know your boyfriend better than I do, so this might not be true for him. But I'm a programmer and I wouldn't want my girlfriend to be nerdy at all. There are enough nerds around at work![]()
Perhaps, but one of anjinha's many charms is that she is a geek girl. I'm not so sure she's suggesting this solely because her BF is a coder; I'm sure she enjoys that sort of humor, too.
I say it's a great idea. Wish I had something cute to contribute, but I'm a different kind of geek.![]()
Thanks!
Perhaps, but one of anjinha's many charms is that she is a geek girl. I'm not so sure she's suggesting this solely because her BF is a coder; I'm sure she enjoys that sort of humor, too.
I say it's a great idea. Wish I had something cute to contribute, but I'm a different kind of geek.![]()
<!-- TWO STEPS TO INSTALL LOVE TEST:
1. Copy the coding into the HEAD of your HTML document
2. Add the last code into the BODY of your HTML document -->
<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
function calc() {
first = document.loveform.name1.value.toUpperCase();
firstlength = document.loveform.name1.value.length;
second = document.loveform.name2.value.toUpperCase();
secondlength = document.loveform.name2.value.length;
var LoveCount=0;
for (Count=0; Count < firstlength; Count++) {
letter1=first.substring(Count,Count+1);
if (letter1=='L') LoveCount+=2;
if (letter1=='O') LoveCount+=2;
if (letter1=='V') LoveCount+=2;
if (letter1=='E') LoveCount+=2;
if (letter1=='Y') LoveCount+=3;
if (letter1=='O') LoveCount+=1;
if (letter1=='U') LoveCount+=3;
}
for (Count=0; Count < secondlength; Count++) {
letter2=second.substring(Count,Count+1);
if (letter2=='L') LoveCount+=2;
if (letter2=='O') LoveCount+=2;
if (letter2=='V') LoveCount+=2;
if (letter2=='E') LoveCount+=2;
if (letter2=='Y') LoveCount+=3;
if (letter2=='O') LoveCount+=1;
if (letter2=='U') LoveCount+=3;
}
amount=0;
if (LoveCount> 0) amount= 5-((firstlength+secondlength)/2)
if (LoveCount> 2) amount= 10-((firstlength+secondlength)/2)
if (LoveCount> 4) amount= 20-((firstlength+secondlength)/2)
if (LoveCount> 6) amount= 30-((firstlength+secondlength)/2)
if (LoveCount> 8) amount= 40-((firstlength+secondlength)/2)
if (LoveCount>10) amount= 50-((firstlength+secondlength)/2)
if (LoveCount>12) amount= 60-((firstlength+secondlength)/2)
if (LoveCount>14) amount= 70-((firstlength+secondlength)/2)
if (LoveCount>16) amount= 80-((firstlength+secondlength)/2)
if (LoveCount>18) amount= 90-((firstlength+secondlength)/2)
if (LoveCount>20) amount=100-((firstlength+secondlength)/2)
if (LoveCount>22) amount=110-((firstlength+secondlength)/2)
if (firstlength==0 || secondlength==0) amount= "Err";
if (amount < 0) amount= 0;
if (amount >99) amount=99;
document.loveform.output.value=amount+"%";
}
// End -->
</script>
<!-- STEP TWO: Copy this code into the BODY of your HTML document -->
<BODY>
<form name=loveform>
<input value="Bill Clinton" name="name1" type="text" size="20"> +
<input value="Monica Lewinsky" name="name2" type="text" size="20"> =
<input value="" name="output" type="text" size="6">
<br>
<br>
<input value="Calculate!" name="calculate" type="button" value="calculate" onclick="calc()">
</form>
<p><center>
<font face="arial, helvetica" size="-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>
<!-- Script Size: 2.65 KB -->