I was bored
I was bored
I was bored and I made a simple program to screw up a text file
It looks like crap, but have fun.
It looks like crap, but have fun.
- Attachments
-
- main.c
- STUPID MANGLING PROGRAM
- (855 Bytes) Downloaded 49 times
you think you know about boredom?
I once wrote a ink lbop test. Unfortunantly i have drown away the source, but i still have the windows binary.
Damn that 64k limit sucks...
I once wrote a ink lbop test. Unfortunantly i have drown away the source, but i still have the windows binary.
Damn that 64k limit sucks...
- Attachments
-
- inkblop.part1.rar
- (64 KiB) Downloaded 64 times
-
- inkblop.part2.rar
- (9.55 KiB) Downloaded 67 times
This was supposed to be a cool signature...
couldn't sleep:
Code: Select all
#include <iostream>
#include <vector>
#include <stdint.h>
class Prime {
std::vector<uint32_t> P_list;
uint32_t test;
uint32_t Get(uint32_t n) {
while(n >= P_list.size()) {
test += 2;
for (uint32_t i = 1; test >= P_list[i] * P_list[i]; i++) {
if(test % P_list[i] == 0) {
test += 2;
i = 0;
}
}
P_list.push_back(test);
}
return P_list[n];
}
public:
Prime() : test(3) {
P_list.push_back(2);
P_list.push_back(3);
int32_t n;
while(true) {
std::cout << "type in a number greater than 0 to get the corosponding prime or type 0 to exit: ";
std::cin >> n;
if(!n) break;
std::cout << "the " << n;
if(n % 10 == 1) std::cout << "st";
else if(n % 10 == 2) std::cout << "nd";
else if(n % 10 == 3) std::cout << "rd";
else std::cout << "th";
std::cout << " prime number is: " << Get(n-1) << std::endl;
}
}
};
This was supposed to be a cool signature...
I was bored once and made a program that bar graphed random numbers with radom colors and with RBG, graphed the color component.
I also added a line to show the averages of the random numbers.
All programmed in Delphi.
Can't seem to find it again though
I also added a line to show the averages of the random numbers.
All programmed in Delphi.
Can't seem to find it again though
Microsoft: "let everyone run after us. We'll just INNOV~1"
the output
I used also on the prog now it's dont work anymore
Code: Select all
#i#ilulu < <didih>h>ininudud<s<slilih>h>ininudud<s<s/t/teses>
>
clcle e ysystatah>h>ininudud<f<ftltl>
>
clcle e ninid.d.
t
tdedeunungngn s srtrtOROR
crcrtwtwd(d(RDRD)/)/ncncptpta a RDRDndndetetnsnshehencncptpt w wd
d
= =WOWO)")"TTTT
r
rrnrn;
;
vovo d dwowo(W(WD D
{
{= = /2/2}
}
t t ininntntrgrgchch * *gvgv)
)
ririf(f(ekekfifi m mglglg g ogogm\m\););ntntococptpt o on(n(gvgv],],RDRD););ntntrrrrs;s;ntntiziz = =;
;
ucucstst c catatWOWO n nypyp
v
v * *f f &n&nypyp
v
v * *ufuf & &tata
i
iococptpt)
)
ririf(f(RRRR: : S SH H LELEN N ISISIRIRTOTO\n\n;
;
urur0;0;
(a(av[v[,s,sf)f)prprtftfTHTHSISI O OTHTHFIFI I I%d%dYTYT\n\ncscst.t._s_se)e)sisiw w cscst.t._s_se e 2;2;inini i 1;1;hihi(i(i=(=(tataststiziz2)2){
{
d(d(crcrt,t,f,f,zeze(W(WD)D)
c
ctwtwd(d(ryry););riri(t(tryry,b,b,s,seoeoWOWO))))i+i+
}
}ririf(f(ONONn"n"
r
rrnrn;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
- AndrewAPrice
- Member
- Posts: 2299
- Joined: Mon Jun 05, 2006 11:00 pm
- Location: USA (and Australia)
I'm suppose to be writing finishing my C++ network chat program (which is nearly done) - you control 3D avatars and the speech bubble above your head fills as you type.Zacariaz wrote:you think you know about boredom?
I once wrote a ink lbop test. Unfortunantly i have drown away the source, but i still have the windows binary.
But I've been procrastinating and writing a multiplayer first person shooter for PC and Xbox 360 (with cross network connectivity). It's really cool since you just need the bare game (<100 kb now, but may increase later) and when you join into a game and don't have the map, the map and all content is automatically transferred to your system.
I'm making a level editor which will run on the 360 and PC, but "Content Packs" (they hold textures, meshes, sounds, etc) must be created on a PC and transferred over a network, since it's kind of pointless browsing an Xbox for textures/meshes/etc (unless I wrote a photo-editing program for it, but that's another entire project).
My OS is Perception.
Maybe it's just me, or maybe it got downloaded wrong, but you do realize that you're program doesn't do anything right.
Look at the encrypt function:
int cryptword(WORD w)//encrypts a WORD and returns the encrypted word
{
w = (WORD)"BUTT";
return w;
}
what does that do?
it does nothing, w isn't a pointer and the return value is never used so the function could have absolutely no side effects on the program's output. If you remove the call to cryptword and run the program again, you'll get the same output. All that happens is that everything is offset by two because the file position pointer is offset by two from the read. Then you write and the position pointer is offset by two again and then you read the next two.
That is why you get the same character at the end all the time.
Look at the encrypt function:
int cryptword(WORD w)//encrypts a WORD and returns the encrypted word
{
w = (WORD)"BUTT";
return w;
}
what does that do?
it does nothing, w isn't a pointer and the return value is never used so the function could have absolutely no side effects on the program's output. If you remove the call to cryptword and run the program again, you'll get the same output. All that happens is that everything is offset by two because the file position pointer is offset by two from the read. Then you write and the position pointer is offset by two again and then you read the next two.
That is why you get the same character at the end all the time.
I'm aware of all of this. I was tired, bored and why the heck does it matter? It's a pointless program. It can't do anything wrong if it isn't meant to do something right.
Working On:Bootloader, RWFS Image Program
Leviathan: http://leviathanv.googlecode.com
Kernel:Working on Design Doc
Leviathan: http://leviathanv.googlecode.com
Kernel:Working on Design Doc
I once made a "driving game" in Delphi, where you had to spin your mouse wheel as fast as possible (the spinning didn't had to be continuous loop). First, you would set a time thresold between 10-50 seconds and then, every Windows event "MouseWheelMove" was recorded and in the end, you would get up with a score. I also made there a "gear shifter" that would move the Windows's "slider" component according to your score, "status LEDs" for "gasoline", "motor" and "gears", plus I've added some weird car sounds.
(C) 2005
If you would like to try it,
"sekúnd" - number of seconds
"benzÃn" - gasoline
"motor" - engine
"prevodovka" - gears
"Naštartuj auto" - Start the car
"Zabrzdi" - Break
"ZÃskal si (...) bodov!" - You scored (...) points!
Should run even on Wine.
Beware: This program is useless, I created it because I was really bored.
Here it is, http://ayeto.zaridi.to/inflater/weird_game.zip
(C) 2005
If you would like to try it,
"sekúnd" - number of seconds
"benzÃn" - gasoline
"motor" - engine
"prevodovka" - gears
"Naštartuj auto" - Start the car
"Zabrzdi" - Break
"ZÃskal si (...) bodov!" - You scored (...) points!
Should run even on Wine.
Beware: This program is useless, I created it because I was really bored.
Here it is, http://ayeto.zaridi.to/inflater/weird_game.zip
- AndrewAPrice
- Member
- Posts: 2299
- Joined: Mon Jun 05, 2006 11:00 pm
- Location: USA (and Australia)
I finished the above mentioned chat program I got up to 6 people all moving/typing smoothly across the college network.
My OS is Perception.