| View previous topic :: View next topic |
| Author |
Message |
marky1606 Newbie cheater
Reputation: 0
Joined: 24 Nov 2008 Posts: 17
|
Posted: Wed Dec 17, 2008 9:42 am Post subject: notepad programing |
|
|
i want to program useing notepad any help plz?? :shock:iwant to make a clac plz help
_________________
yo |
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Wed Dec 17, 2008 10:04 am Post subject: |
|
|
| Picking a language first helps.
|
|
| Back to top |
|
 |
nog_lorp Grandmaster Cheater
Reputation: 0
Joined: 26 Feb 2006 Posts: 743
|
Posted: Wed Dec 17, 2008 2:57 pm Post subject: |
|
|
And what's a clac?
_________________
Mutilated lips give a kiss on the wrist of the worm-like tips of tentacles expanding in my mind
I'm fine accepting only fresh brine you can get another drop of this yeah you wish |
|
| Back to top |
|
 |
SXGuy I post too much
Reputation: 0
Joined: 19 Sep 2006 Posts: 3551
|
Posted: Wed Dec 17, 2008 5:43 pm Post subject: |
|
|
he ment calc
and you can write any language using notepad, just write code, then save it, and rename the file replacing .txt with any extension it should be.
but be careful of white space fucking things up.
|
|
| Back to top |
|
 |
Noz3001 I'm a spammer
Reputation: 26
Joined: 29 May 2006 Posts: 6220 Location: /dev/null
|
Posted: Wed Dec 17, 2008 6:07 pm Post subject: |
|
|
| SXGuy wrote: | he ment calc
and you can write any language using notepad, just write code, then save it, and rename the file replacing .txt with any extension it should be.
but be careful of white space fucking things up. |
Not really a problem in notepad. Just don't use wordpad or some other rich file editor.
|
|
| Back to top |
|
 |
Jani Grandmaster Cheater
Reputation: 2
Joined: 29 Dec 2006 Posts: 804
|
Posted: Wed Dec 17, 2008 7:12 pm Post subject: |
|
|
Here's some notepad programming, very simple adder.
test.c: | Code: | #include <stdio.h>
int main(int argc, char *argv[])
{
int x,y;
printf("Num 1: ");
scanf("%d", &x);
printf("Num 2: ");
scanf("%d", &y);
printf("%d\n", x+y);
return 0;
} |
makefile: | Code: | all:compile
compile:
gcc test.c -o test
clean:
rm -f ./test |
Usage: | Code: | (SA)(jani)(150)(test) make
gcc test.c -o test
(SA)(jani)(151)(test) ./test
Num 1: 2
Num 2: 3
5
(SA)(jani)(152)(test) |
|
|
| Back to top |
|
 |
Caelestis Expert Cheater
Reputation: 0
Joined: 03 May 2007 Posts: 153
|
Posted: Wed Dec 17, 2008 7:16 pm Post subject: |
|
|
| Although you may think this is minimalistic, it is highly recommended you learn to use an IDE. You cannot possibly try to remember class functions, header files, and organize all by yourself. The auto completion and project manager of IDE's will help you greatly, and completion will allow you to for example, type '::', '.', '->', '<'(headers) and list all the members.
|
|
| Back to top |
|
 |
Crossrocket.1 Master Cheater
Reputation: 0
Joined: 16 Nov 2007 Posts: 307
|
Posted: Wed Dec 17, 2008 8:45 pm Post subject: |
|
|
um java script?
ive got a calculator for u
its very basic
Okay heres the main calculator.
open notepad, copy paste this in and save as to ur desktop. save it as calculator.html
| Code: | <head>
<title>Simple Calculator</title>
<link rel="stylesheet" type="text/css" href="calcstyle.css">
</head>
<body>
<div id="container">
<form id="calcs" action="#">
<div class="inps"><label>1st Number --> </label><input class="text" type="text" name="first" value="0"/></div>
<div class="inps"><label>2nd Number --> </label><input class="text" type="text" name="second" value="0"/></div>
<div class="inps"><label>Result --> </label><input class="text" type="text" name="result" value="0" readonly="readonly"/></div>
<div class="inps"><label>Modified Result --> </label><input class="text" type="text" name="M_result" value="0" readonly="readonly"/></div>
<div id="clicks">
<input class="butts" type="button" value="+" onclick="calcs.result.value=eval(calcs.first.value)+eval(calcs.second.value)"/>
<input class="butts" type="button" value="-" onclick="calcs.result.value=calcs.first.value-calcs.second.value"/>
<input class="butts" type="button" value="x" onclick="calcs.result.value=calcs.first.value*calcs.second.value"/>
<input class="butts" type="button" value="/" onclick="calcs.result.value=calcs.first.value/calcs.second.value"/>
<input class="butts" type="button" value="x9" onclick="calcs.M_result.value=Math.pow(calcs.result.value,9)"/>
<input class="butttts" type="button" value="Absolute value" onclick="calcs.M_result.value=Math.abs(calcs.result.value)"/>
<input class="buttts" type="button" value="generate #1-15(rounded)" onclick="calcs.result.value=(Math.round(Math.random()*15 )+1)"/>
<input class="buttts" type="button" value="generate #1-15(un-rounded)" onclick="calcs.result.value=((Math.random()*15 )+1)"/>
</body>
<cener><input class="butts" type="reset" value="clear"/></center>
</div>
</form>
</div>
</body>
</html>
|
alright now this is what makes a calculator all pretty.
open up notepad, copy paste this and save as calcstyle.css
| Code: | <style type="text/css">
<!--
<style type="text/css">
#calcs label,input {
font-family:verdana;
font-size:16px;
}
#container {
width:300px;
padding:20px 20px 0px 20px;
background-color:#1A6D98;
color:#fff;
border:5px outset #888;
margin:40px auto;
}
.inps input {
width:220px;
display:inline;
float:left;
}
.inps {
width:300px;
height:30px;
}
.inps label {
width:200px;
display:inline;
float:left;
}
#clicks {
width:300px;
height:75px;
clear:both;
margin:auto;
}
.butts {
width:55px;
display:inline;
float:left;
background-color:#111;
color:#fff;
border:3px outset #999;
margin:3px;
}
.buttts {
width:238px;
display:inline;
float:left;
background-color:#111;
color:#fff;
border:3px outset #999;
margin:3px;
}
.butttts {
width:177px;
display:inline;
float:left;
background-color:#111;
color:#fff;
border:3px outset #999;
margin:3px;
}
-->
</style> |
_________________
|
|
| Back to top |
|
 |
&Vage Grandmaster Cheater Supreme
Reputation: 0
Joined: 25 Jul 2008 Posts: 1053
|
Posted: Wed Dec 17, 2008 11:05 pm Post subject: |
|
|
| Jani wrote: | Here's some notepad programming, very simple adder.
test.c: | Code: | #include <stdio.h>
int main(int argc, char *argv[])
{
int x,y;
printf("Num 1: ");
scanf("%d", &x);
printf("Num 2: ");
scanf("%d", &y);
printf("%d\n", x+y);
return 0;
} |
makefile: | Code: | all:compile
compile:
gcc test.c -o test
clean:
rm -f ./test |
Usage: | Code: | (SA)(jani)(150)(test) make
gcc test.c -o test
(SA)(jani)(151)(test) ./test
Num 1: 2
Num 2: 3
5
(SA)(jani)(152)(test) |
|
Did you forget a newline?
|
|
| Back to top |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Thu Dec 18, 2008 4:28 am Post subject: |
|
|
| Caelestis wrote: | | Although you may think this is minimalistic, it is highly recommended you learn to use an IDE. You cannot possibly try to remember class functions, header files, and organize all by yourself. The auto completion and project manager of IDE's will help you greatly, and completion will allow you to for example, type '::', '.', '->', '<'(headers) and list all the members. |
the compile errors work. i'm used to programming with QEditor which is just the same as notepad basically except it has a assemble/link button. as long as you learn how to read and use the errors that the assembler/compiler gives you can actually just as well program with notepad.
|
|
| Back to top |
|
 |
|