?????? ??? ???????? GW ? QBasic

?????? ????????? ?????? ?????????
???? ???????: 73084 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

?? ??? ??????

??????

???? ??? ??????? ????????? ???????? ?? QBasic ??? ???????? GW ???? ?????????? ???????? ??? ???????.

??????? ????

QBasic ?????? ????? QuickBasic ??????? 4.5. ????? ???? ??????? ??? ???????? QBasic ??? ?????? ????? ???? ?????????? ??????? ??? BASICA/GW-???????? QBasic ??????? ??? ????? ?????? ??????? BASICA ????????? ??? QBasic.

???? QBasic "Windows ????" ???? ????? ??????? ??????. ???? ??????? ???? ?????? ????? ??? ??????? ??????? ???????? ?????.

???? QBasic ???? ??????. ????? ???? ????? ??? ????? ?????? ?? ?????? ??? ???? ????????; ???? ?????? ???? "????" ???? ?????? ???????? ???????? ??? ??????? ??????? ?? ??? ?????.

?? QBasic ? ?? ????? ??? ??????? ????? ??????. ??? ???? ??? ?????? ????? ??????. ??? ???? QBasic ???? ??? "??????". ??? ???????? ??? ?????? ??? ?? ??? ??? ????? ?? ???? ??? ???? ??????? ?????? ???? ????????. ????? ????? ??? QBasic ?? ??? RENUM ??? GW ????????. ??? ???? ??????:
   Line label "Bob:" or line number "10" are both valid.
				
QBasic ????? ??????? ? ????? ?? ????????? ???????. ?????? ??? ???? ?? ????????? ??? ??????? QBasic ???? ????? "???????" ??? ??? ????? QBasic ??????? ?? ???? F1 ?? ?? ??? ????? ????? QBasic. ?? ???? ??????? ???? ??? ??? ???? ??????? ??????? ??? ?????? ?????? ?? ???? ??????? (?? ???? ???? ?????? ???????).

????? ?? ?? ??? ????? ????????? ???????? ???????? ?? ???? ????????? ??????? ?? ????? ?????? ?? ???? ????? ????? ???????.

?????? QBasic IEEE ??????? ???? ???????? ? ???????? ????????. ?????? ???????? GW ????? ???????? MBF. ?????? ??? ???? ?? ????????? ??? IEEE ????? Microsoft ????? ????? ? ????????? ??? ??????? ???????:
?????? ?????? ? IEEE MBF
QBasic ?????? ????? ?? 4.5 QuickBasic. ????? QuickBasic 4.0 ?????????? ?????? co-processor ?????? ? ??? ????? ?? ???? QBasic ??.

?????? QBasic P-??? ???? ???? stands ?????? ??? "????????? ???????? ???????" ? ??? ???? ???? ???? ??? ????????? ???????? ???????? ???? ??? ????? ??? ????. ??? P ????? ??????? ?????--???? ???? ??????? ????? ???????? ?????? ???--?????? ??? ????? ??? ?????? ?? ????? ????????? ???????? ?????? ???????? ??? ??? ??????? ???? ?????. ??? ? ???? ???? ??????? ??? ????? ?????? ??????? ??? ????? ??????? ??? ????? ??? ????? ?? ??? ???? ??????? ??????. ????????? ????? ?????? ??? ???? ????? ??????? ????? ?? ?? ???? ???? ?????? ? ???? ??? ????.

????? QBasic ????? ????? ??????: ????? ????? ?? ??? ???????? ????? ????? ????? ?????? ????.

????? ????? ?? ??? ????????

                         Use the type
   If the variable is:    declaration character:
   -------------------    ----------------------

   String                 $
   Integer
      Regular             %
      Long                &
   Floating Point
      Single-precision    !
      Double-precision    #
				

????? ??? ??? ????

???? ????? ????? ??? ???? ???? ?? ??? ???? ?? -32768 ????
  1. ??????? "%" ????? ????? ????? ????.
       Example: integer% = 10
    						
???? ?????? ????? ??? ??? ???? ?? ?????? ??? ????? ????? ?? ??? ????? ??? ???? DIM ??? ???
   DIM strName AS STRING * n
				
??? strName ??? ????? ??? ??? ???? ? n ??? ?????.

????? ????? ?????

???? ?? ????? ??? ???? ???? ???? ????? ?????? ??-2,147,483,648 ???? 2,147,483,647. ??????? "&" ????? ???? ????? ?????.
   Example: employees& = 15000000
				
??????? ????? ???? ?? ???? ??? ??? ???? ????? ?? ?????. ???? ??????? ?? ???? ???? ??? ???????. ??????? "!" ????? ??????? ?????.
   Example: speed!= 33.33333
				
??????? ????? ???????? ???? ?? ???? ??? ??? 15 ????? ?? ?????. ???? ??????? ?? ???? ???? ??? ???????. ?????? "#" ?? ????? ??????? ?????? ??????? ????? ????????.
   Example: pi# = 3.141592654
				
???? QBasic ????? 64 ???? ????????? ???????? ?? ????? ???? ? 64 ???? ????????. ????? ??????? ??? ????? ? ??????? ??????? ?? ??? ???????? ?????? ??? 64 ???? ???? ???. ????? 64 ? ?? ??????? CODE ?? ????? ???? 64 ? ?? ??????? ?? ????????. ???? ?? ???? ???? ????? ?? numerics ????? ??? ??? ???? ?? ???????? - ????? ????? ??? 64 ???? ???? ???.

???? QBasic ????? ????? ???/?????:
         "ON ERROR GOSUB.../ON KEY(n) GOTO..."

        Example:
                        CALL mysub
                        END

                        errhandler:
                                PRINT "You had an error!"
                                PRINT "Error" ERR
                        RESUME NEXT

                        SUB mysub

                        ON ERROR GOTO errhandler
                        ERROR 62

                        END SUB
				
QBasic ???? ?????? ????? ?????/????. ?????? ??????/END ?? UNCTION/END FUNCTION. ???? QBasic ????? ?????? ??????? ?? ??? ????? ?? subprograms ????? ?? ???????? ??????. ??? ??????? ??? ??????? ???????? ???????.
        Syntax:
                SUB globalname[parameterlist][STATIC]
                        [statements]
                [EXIT SUB]
                        [statements]
                FUNCTION name [parameterlist][STATIC]
                        [statements]
                name = expression

                        [statements]
                END FUNCTION
                END SUB
				

????? ????? ?? GW ???????? ??? QBasic

???????? ?????? GW ???????? ?? QBasic ??? ????? ??? ????? ?? ????? ?? ASCII.
   Example: SAVE: "PROGNAME.BAS",A.
				

????? ?????? GW ???????? ??? QBasic

??????? REMLINE.BAS ??????? ?? MS-DOS ?? QBasic ????? ????? ?????? ?? ????? GW ????????. ????? ?? ?????????? ???? ??????? ???????? ?? ????? REMLINE.BAS ?? ???? ??? ????? ?? QBasic.

?????? ??????? ???????? GW QBasic ???? ??????? ????? "QBasic /MBF" ??? ??? ????? QBasic ?? ????? DOS.

???????

???? ???????: 73084 - ????? ??? ??????: 11/???? ?????/1424 - ??????: 2.0
????? ???
  • Microsoft MS-DOS 5.0 Standard Edition
  • Microsoft MS-DOS 5.0a
  • Microsoft MS-DOS 6.0 Standard Edition
  • Microsoft MS-DOS 6.2 Standard Edition
  • Microsoft MS-DOS 6.21 Standard Edition
  • Microsoft MS-DOS 6.22 Standard Edition
????? ??????: 
kbmt KB73084 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????73084
????? ??????? ?? ????? ???? ?? ????? ???????
?? ????? ????? ?????? ???? ???? ???? ??? ??????? ??? ?? ? ?? ??? ??????? Microsoft ??? ????? ??? ??????? ????? ?????? ?????

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com