-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0655af6
commit 6804721
Showing
31 changed files
with
360 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
https://www.asciim.cn/ | ||
https://c.biancheng.net/c/ascii/ | ||
https://www.runoob.com/w3cnote/ascii.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
UltraIso是一个强大的ISO文件编辑器,功能不多说。 | ||
好多人不知道,这个UltraIso有2个版本——中文版和多国语言PE版! | ||
而且这两个版本注册码不通用! | ||
现在我把这两个版本的注册码都分享给大家: | ||
https://www.aihao.cc/thread-86086-1-1.html?_dsign=67ad8375 | ||
最新9.7.6.3829版请到官网下载: http://www.ezbsystems.com/ultraiso/ | ||
注册码: | ||
|
||
|
||
中文版 | ||
name: 王涛 | ||
serial: 7C81-1689-4046-626F | ||
|
||
|
||
多国语言PE版 | ||
name: ru-board | ||
serial: 8F5C-FB35-D4BD-943D |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
make friends | ||
mooc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Print "Hello World" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Const pi = 3.14159 | ||
dim diameter as single | ||
dim answer as single | ||
rem Let diameter = 0 | ||
rem Let answer = 0 | ||
Print "This program finds the circumference of a circle given its diameter." | ||
Print "Enter the diameter of the circle" | ||
Input diameter | ||
|
||
answer = pi * diameter | ||
|
||
Print "The circumference of a circle with a diameter of " + Str$(diameter) + " is:" | ||
Print answer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Let answer# = 0 | ||
Print "Enter the number 1 or 2" | ||
Input answer | ||
If answer = 1 Then | ||
Print "One is a great number" | ||
End If | ||
If answer = 2 Then | ||
Print "Two is a good number" | ||
End If | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Let answer$ = "" | ||
|
||
Print "Do you own a cat or a dog?" | ||
|
||
Input answer$ | ||
|
||
If answer$ = "cat" Then | ||
Print "Meow!" | ||
End If | ||
If answer$ = "dog" Then | ||
Print "Bark!" | ||
End If | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Let answer% = 0 | ||
Print "Enter a number less than 10" | ||
Input answer% | ||
|
||
If answer% < 10 Then | ||
Print "Good Job! You followed directions!" | ||
Else | ||
Print "Please enter a number less than ten" | ||
End If | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Let answer$ = "" | ||
Print "What type of pet do you own?" | ||
Input answer$ | ||
|
||
If answer$ = "dog" Then | ||
Print "Dogs are the best pet!" | ||
Else | ||
Print "Why don't you have a dog?" | ||
End If | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
'To create Boolean data types for your program | ||
' declare a contstant for True and a constant of False | ||
' at the beginning. | ||
Const True = 1 | ||
Const False = 0 | ||
|
||
Let answer$ = "" | ||
Let isDogPerson = False | ||
|
||
Print "Do you like dogs? [Y / N]" | ||
Input answer$ | ||
|
||
If answer$ = "y" Then | ||
isDogPerson = True | ||
End If | ||
|
||
If isDogPerson = True Then | ||
Print "Dogs are great!" | ||
Else | ||
Print "You should give dogs another try!" | ||
End If | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Let answer% = 0 | ||
Print "Enter a number and earn stars!" | ||
Input answer% | ||
|
||
If answer% > 100 Then | ||
Print "You got 10 stars!" | ||
ElseIf answer% > 50 Then | ||
Print "You got 5 stars!" | ||
Else | ||
Print "You earned 0 stars." | ||
End If | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Let age# = 0 | ||
Print "Enter your age" | ||
Input age# | ||
|
||
If age# < 0 Then | ||
Print "Please enter a valid age" | ||
ElseIf age# > 120 Then | ||
Print "Please enter a valid age" | ||
Else | ||
Print "Your age of " + Str$(age#) + " has been recorded." | ||
End If | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Let answer$ = "" | ||
Print "Enter your favorite animal" | ||
Input answer$ | ||
|
||
answer$ = LCase$(answer$) | ||
|
||
If answer$ = "dog" Then | ||
Print "Dogs are best!" | ||
Else | ||
Print "You should get a dog instead." | ||
End If | ||
|
||
Print "Your answer in lowercase is " + answer$ | ||
Print "Your answer in uppercase is " + UCase$(answer$) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Let startProg$ = "" | ||
Print "Do you want to start the program? [Y / N]" | ||
Input startProg$ | ||
|
||
startProg$ = UCase$(startProg$) | ||
|
||
If startProg$ = "N" Then | ||
Print "Exiting...." | ||
End | ||
ElseIf startProg$ = "Y" Then | ||
Print "The program is starting...." | ||
Else | ||
Print "Please enter Y to start the program or N to exit" | ||
End If | ||
|
||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
Let num1! = 0 | ||
Let num2! = 0 | ||
|
||
Print "input a number greater than 0" | ||
Input num1! | ||
Print "Input another number greater than 0" | ||
Input num2! | ||
|
||
If (num1! > 100) Or (num2! > 100) Then | ||
Print "One or both of your numbers are greater than 100!" | ||
End If | ||
|
||
If (num1! > 100) And (num2! > 100) Then | ||
Print "Both your numbers are larger than 100!" | ||
End If | ||
|
||
If (num1 > 100) Xor (num2! > 100) Then | ||
Print "Only one of your numbers is greater than 100" | ||
End If | ||
|
||
If (Not (num1! > 100)) And (Not (num2! > 100)) Then | ||
Print "Neither of your numbers were larger than 100" | ||
End If | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Let age# = 0 | ||
Print "Enter your age" | ||
Input age# | ||
|
||
If (age# < 0) Or (age# > 120) Then | ||
Print "Please enter a valid age" | ||
Else | ||
Print "Your age of " + Str$(age#) + " has been recorded." | ||
End If | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Let answer# = 0 | ||
|
||
Print "Enter a number between 1 and 5" | ||
Input answer# | ||
|
||
Select Case answer# | ||
Case 1 | ||
Print "You entered the number one" | ||
Case 2 | ||
Print "You entered the number two" | ||
Case 3 | ||
Print "You entered the number three" | ||
Case 4 | ||
Print "You entered the number four" | ||
Case 5 | ||
Print "You entered the number five" | ||
Case Else | ||
Print "You did not enter a number between 1 and 5" | ||
End Select | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Let answer$ = "" | ||
Print "Enter a type of animal" | ||
Input answer$ | ||
|
||
answer$ = LCase$(answer$) | ||
|
||
Select Case answer$ | ||
Case "dog" | ||
Print "Bark!" | ||
Case "cat" | ||
Print "Meow!" | ||
Case "cow" | ||
Print "Moo!" | ||
Case Else | ||
Print "You animal is not recognized" | ||
End Select | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Let answer# = 0 | ||
Print "Guess a number between 1 and 10" | ||
Input answer# | ||
|
||
If answer# = 4 Then | ||
Print "You got it!" | ||
ElseIf answer# < 2 Then | ||
Print "Your guess was way too low" | ||
ElseIf answer# < 4 Then | ||
Print "Your guess was too low" | ||
ElseIf answer# > 7 Then | ||
Print "Your guess was way too high" | ||
ElseIf answer# > 4 Then | ||
Print "Your guess was too high" | ||
End If | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
Let totalPoints! = 0 | ||
Let pointsCorrect! = 0 | ||
Let percentage! = 0 | ||
|
||
Print "Input the total points possible" | ||
Input totalPoints! | ||
If totalPoints! < 1 Then | ||
Print "Total points possible must be greater than 1" | ||
End | ||
End If | ||
|
||
Print "Input the number of points correct" | ||
Input pointsCorrect! | ||
If pointsCorrect! < 0 Then | ||
Print "The number of points correct must be greater than 0" | ||
End | ||
ElseIf pointsCorrect! > totalPoints! Then | ||
Print "The number of points correct cannot be greater than the total points." | ||
End | ||
End If | ||
|
||
percentage! = (pointsCorrect! / totalPoints!) * 100 | ||
|
||
Print "The percentage is:" | ||
Print Str$(percentage!) + "%" | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Comparison Operators | ||
= Equals | ||
< Less Than | ||
> Greater Than | ||
<= Less Than or Equal To | ||
>= Greater Than or Equal To | ||
<> Not Equal To |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,18 @@ | ||
static struct man { | ||
char name[20]; | ||
int age; | ||
}person[] = { "li=ming",18, | ||
"wang-hua",19, | ||
"zhang-ping",20 | ||
}; | ||
#include<stdio.h> | ||
#include<limits.h> | ||
|
||
main() | ||
int main() | ||
{ | ||
struct man* p, * q; | ||
int old = 0; | ||
p = person; | ||
for (; p<p+3; p++) | ||
if (old < p->age) | ||
{ | ||
q = p; | ||
old = p->age; | ||
} | ||
printf("%s %d", q->name,q->age); | ||
float A$ ,s= 0; | ||
A$=5; | ||
int i = 1; | ||
int a=sizeof(short); | ||
int b=sizeof(long); | ||
char c='\xff'; | ||
while (i <= 10) | ||
{ | ||
s = s + 1.0/ i; | ||
i++; | ||
} | ||
printf("%d\t%c",a,c); | ||
} | ||
|
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#include <stdio.h> | ||
#include <math.h> | ||
int main() | ||
|
||
{ | ||
float a, b, c; | ||
printf("请输入三角形边长:\n"); | ||
scanf("%f%f%f", &a, &b, &c); | ||
if (a + b < c || a + c < b || b + c < a) | ||
printf("不能够成三角形\n"); | ||
else if (a * a + b * b == c * c || b * b + c * c == a * a || c * c + a * a == b * b) | ||
if ((a == b) || (b == c) || (c == a)) | ||
printf("等腰直角三角形\n"); | ||
else | ||
printf("直角三角形\n"); | ||
else if (a==b&&b==c) | ||
printf("等边三角形\n"); | ||
else if (a==b||b==c||c==a) | ||
printf("等腰三角形\n"); | ||
else | ||
printf("一般三角形\n"); | ||
} |
Oops, something went wrong.