<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">It's a "c" program. You must compile
it, then run it with<br>
the arguments you want.<br>
open a terminal to do this, it's all command line stuff.<br>
You may need to store the C code in a text file.<br>
the suffix on the file must be ".c"<br>
For more info, see <br>
info make<br>
info gcc<br>
or us "man" instead of "info".<br>
If you don't have those, you will need to get them.<br>
I don't know which version of linux you are running<br>
so the command to get them or the app to run<br>
will depend on which distribution you have.<br>
When you have the required compiler and utilities,<br>
THEN:<br>
You need to make sure you have gcc and make.<br>
Try this:<br>
make <program name>.c<br>
<br>
To save the output, you will need to do what is<br>
termed "redirect the output to a file". It goes like <br>
this:<br>
<br>
<program name> >save-file.txt<br>
<br>
You can use whatever save file name you want<br>
but it helps to use the .txt suffix.<br>
<br>
Jon Kettenhofen<br>
<a class="moz-txt-link-abbreviated" href="http://www.kexsof.com">www.kexsof.com</a><br>
<br>
On 02/25/2015 03:51 AM, Michael Havens wrote:<br>
</div>
<blockquote
cite="mid:CAFRvunLs4QxoUyqVaG7KcvhDsbd1TGmhfuS+4h3R2cY=Pit07w@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>I need to get every four digit combination as part of the
next challenge in bandit. I'm not a programmer so I googled
for a solution. Please, how do I run this program?</div>
<div><br>
</div>
<span style="color:rgb(51,51,51);font-family:'Helvetica
Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:22.1000003814697px">int
main(int argc, char** argv){</span><br
style="color:rgb(51,51,51);font-family:'Helvetica
Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:22.1000003814697px">
<span style="color:rgb(51,51,51);font-family:'Helvetica
Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:22.1000003814697px">int
a,b,c,d;</span><br
style="color:rgb(51,51,51);font-family:'Helvetica
Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:22.1000003814697px">
<br style="color:rgb(51,51,51);font-family:'Helvetica
Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:22.1000003814697px">
<span style="color:rgb(51,51,51);font-family:'Helvetica
Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:22.1000003814697px">for(a=1;
a<5; a++){</span><br
style="color:rgb(51,51,51);font-family:'Helvetica
Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:22.1000003814697px">
<span style="color:rgb(51,51,51);font-family:'Helvetica
Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:22.1000003814697px">for(b=1;
b<5; b++){</span><br
style="color:rgb(51,51,51);font-family:'Helvetica
Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:22.1000003814697px">
<span style="color:rgb(51,51,51);font-family:'Helvetica
Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:22.1000003814697px">for(c=1;
c<5; c++){</span><br
style="color:rgb(51,51,51);font-family:'Helvetica
Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:22.1000003814697px">
<span style="color:rgb(51,51,51);font-family:'Helvetica
Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:22.1000003814697px">for(d=1;
d<5; d++){</span><br
style="color:rgb(51,51,51);font-family:'Helvetica
Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:22.1000003814697px">
<span style="color:rgb(51,51,51);font-family:'Helvetica
Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:22.1000003814697px">if(!(a==b
|| a==c || a==d || b==c || b==d || c==d))</span><br
style="color:rgb(51,51,51);font-family:'Helvetica
Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:22.1000003814697px">
<span style="color:rgb(51,51,51);font-family:'Helvetica
Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:22.1000003814697px">printf("%d%d%d%d</span><br
style="color:rgb(51,51,51);font-family:'Helvetica
Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:22.1000003814697px">
<span style="color:rgb(51,51,51);font-family:'Helvetica
Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:22.1000003814697px">",a,b,c,d);</span><br
style="color:rgb(51,51,51);font-family:'Helvetica
Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:22.1000003814697px">
<span style="color:rgb(51,51,51);font-family:'Helvetica
Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:22.1000003814697px">}</span><br
style="color:rgb(51,51,51);font-family:'Helvetica
Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:22.1000003814697px">
<span style="color:rgb(51,51,51);font-family:'Helvetica
Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:22.1000003814697px">}</span><br
style="color:rgb(51,51,51);font-family:'Helvetica
Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:22.1000003814697px">
<span style="color:rgb(51,51,51);font-family:'Helvetica
Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:22.1000003814697px">}</span><br
style="color:rgb(51,51,51);font-family:'Helvetica
Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:22.1000003814697px">
<span style="color:rgb(51,51,51);font-family:'Helvetica
Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:22.1000003814697px">}</span><br
style="color:rgb(51,51,51);font-family:'Helvetica
Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:22.1000003814697px">
<br style="color:rgb(51,51,51);font-family:'Helvetica
Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:22.1000003814697px">
<span style="color:rgb(51,51,51);font-family:'Helvetica
Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:22.1000003814697px">return
0;</span><br style="color:rgb(51,51,51);font-family:'Helvetica
Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:22.1000003814697px">
<span style="color:rgb(51,51,51);font-family:'Helvetica
Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:22.1000003814697px">}</span><br
clear="all">
<div>
<div class="gmail_signature">:-)~MIKE~(-:</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">---------------------------------------------------
PLUG-discuss mailing list - <a class="moz-txt-link-abbreviated" href="mailto:PLUG-discuss@lists.phxlinux.org">PLUG-discuss@lists.phxlinux.org</a>
To subscribe, unsubscribe, or to change your mail settings:
<a class="moz-txt-link-freetext" href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a></pre>
</blockquote>
<br>
</body>
</html>