Skip to content

Commit

Permalink
try english
Browse files Browse the repository at this point in the history
  • Loading branch information
loveisbelief committed Dec 27, 2023
1 parent 0655af6 commit 6804721
Show file tree
Hide file tree
Showing 31 changed files with 360 additions and 19 deletions.
1 change: 1 addition & 0 deletions engineer/ascii.txt
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
17 changes: 17 additions & 0 deletions engineer/ultraiso.txt
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
2 changes: 2 additions & 0 deletions function.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
make friends
mooc
1 change: 1 addition & 0 deletions language/basic/00HelloWorld.bas
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Print "Hello World"
File renamed without changes.
13 changes: 13 additions & 0 deletions language/basic/02.bas
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
10 changes: 10 additions & 0 deletions language/basic/03IntroToIfStatements.bas
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

14 changes: 14 additions & 0 deletions language/basic/04IfStatementExercise.bas
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


11 changes: 11 additions & 0 deletions language/basic/05ElseStatementExample.bas
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


11 changes: 11 additions & 0 deletions language/basic/06ElseExercise.bas
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


25 changes: 25 additions & 0 deletions language/basic/07BooleanDataTypes.bas
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



12 changes: 12 additions & 0 deletions language/basic/08ElseIfExample.bas
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

12 changes: 12 additions & 0 deletions language/basic/10.1 DataValidationNumbersExercise.bas
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

16 changes: 16 additions & 0 deletions language/basic/11.1 DataValidationString.bas
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$)


16 changes: 16 additions & 0 deletions language/basic/12.1 DataValidationStringsExercise.bas
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.
24 changes: 24 additions & 0 deletions language/basic/13.2 CompoundLogicalOperators.bas
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

10 changes: 10 additions & 0 deletions language/basic/14.1 CompoundLogicalOperatorsExercise.bas
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

21 changes: 21 additions & 0 deletions language/basic/15.1 selectCase.bas
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


18 changes: 18 additions & 0 deletions language/basic/16.1 selectCaseExercise.bas
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


16 changes: 16 additions & 0 deletions language/basic/8.1 ElseIfExercise.bas
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

29 changes: 29 additions & 0 deletions language/basic/9.1 DataValidation.bas
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!) + "%"




7 changes: 7 additions & 0 deletions language/basic/compare.txt
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 added language/cpp/a.exe
Binary file not shown.
34 changes: 15 additions & 19 deletions language/cpp/demo.c
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 added language/cpp/demo.exe
Binary file not shown.
Binary file added language/cpp/demo.obj
Binary file not shown.
22 changes: 22 additions & 0 deletions language/cpp/triangle.c
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");
}
Loading

0 comments on commit 6804721

Please sign in to comment.