![]() |
![]() | #17 |
the mochinger Join Date: 02 2002 Location: Paranoid Android, @10:50 Age: 41
Posts: 1,894
Downloads: 2 Uploads: 0
Reputation: 204 | 4 | ![]()
skolko ...-a v odnom poste: - esli ja pishu "assemik" to eto ne oznachaet chto ja namekaju na "assembler". - v assemblere est' funkzii. - ja chital chto chelovek xochet na C++. kak ja mog nameknut' na assembler? - chelovek chetko pisal chto prepod xochet bez funktiona centrino, vo chto ne vnikaesh? ty iteriruesh po etomu stringu, naxodish ili identifier (esli nachinaetsja s bukvy) ili number. potom ishesh znak +-itd. potom naxodish sleujushij operand. i delaesh operaziju. vsjo tak prosto
__________________ The flower that blooms in adversity is the most rare and beautiful of all. |
![]() |
![]() | #18 |
Профессор Join Date: 01 2005 Location: Perm Age: 41
Posts: 2,142
Downloads: 0 Uploads: 0
Reputation: 0 | 0 | ![]()
skolko ...-a v odnom poste: - esli ja pishu "assemik" to eto ne oznachaet chto ja namekaju na "assembler". - v assemblere est' funkzii. В ассемблере нет функций там есть кол по аддресу ... в общем ты все это вручную делаеш ... - ja chital chto chelovek xochet na C++. kak ja mog nameknut' na assembler? опять не врубился он хочет не на С++ а на С из-за этого ему не подошел колькулятор Страуструпа ... будь вниметельнее - chelovek chetko pisal chto prepod xochet bez funktiona Человек этого не писал ... опять ночью пил ? centrino, vo chto ne vnikaesh? ty iteriruesh po etomu stringu, naxodish ili identifier (esli nachinaetsja s bukvy) ili number. potom ishesh znak +-itd. potom naxodish sleujushij operand. i delaesh operaziju. vsjo tak prosto Я тоже не вник в то что ты написал ... в натуре не врубился ... Щас доведете возьму и выдерну из gcalctool-а эту часть :Р |
![]() |
![]() | #19 | |||||
the mochinger Join Date: 02 2002 Location: Paranoid Android, @10:50 Age: 41
Posts: 1,894
Downloads: 2 Uploads: 0
Reputation: 204 | 4 | ![]() Quote:
Quote:
Quote:
Quote:
Quote:
![]() ![]() | |||||
![]() |
![]() | #20 |
Профессор Join Date: 01 2005 Location: Perm Age: 41
Posts: 2,142
Downloads: 0 Uploads: 0
Reputation: 0 | 0 | ![]()
Отвечу коротко и ясно Если Аксемик говорит что в Ассемблере нету функции и что там есть CALL метод Значить надо ему верить. Человек ничего не говорил о ПРЕПОДЕ. Обычно такие задачи дают как тест при поступлении на работу ... Относительно ++ Я уже говорил о Страуструпе ... он сказал что не знает С++ ... делай выводы |
![]() |
![]() | #21 | ||
the mochinger Join Date: 02 2002 Location: Paranoid Android, @10:50 Age: 41
Posts: 1,894
Downloads: 2 Uploads: 0
Reputation: 204 | 4 | ![]() Quote:
ty znaesh chto u tebja obshego s assemblerom? vot, pravil'no. to chto napisano v italic. Quote:
posleduju moemu sovetu ![]() assemik ty sporit' ne umeesh | ||
![]() |
![]() | #23 |
Профессор Join Date: 01 2005 Location: Perm Age: 41
Posts: 2,142
Downloads: 0 Uploads: 0
Reputation: 0 | 0 | ![]()
Ганс Андесон Я программировал и для микроконтроллеров и для интеловских ЦПУ В ассемблере есть CALL metod но там нету функции ... функции ты сам делаеш на ассемблере ... передачу данным ты тоже осуществляеш ручками ... |
![]() |
![]() | #24 |
the mochinger Join Date: 02 2002 Location: Paranoid Android, @10:50 Age: 41
Posts: 1,894
Downloads: 2 Uploads: 0
Reputation: 204 | 4 | ![]()
vo pervyx, v mire est' 121434e382947854251495 assemblerov. i xvatit offtopit' dalshe po aske... |
![]() |
![]() | #25 |
Младенец Join Date: 05 2004 Location: usa Age: 75
Posts: 35
Downloads: 0 Uploads: 0
Reputation: 0 | 0 | ![]()
fuufff rebyata kakoy assembler aa ? pomogite bratiku napisat etu vesh .vse eto na C,a ne C++ ili asembler, ![]() you have to build a non-scientific calculator. The user should give the instructions as a sequence ending with sentinel “=” and your program should calculate the result without considering the precedence of the operators. In addition to these, your calculator has to be able to store values into a single variable, (i.e. called A below), which will probably be used in another input. The variable name must consist of a single letter. If the user enters a non-letter character, you must warn the user until a letter is entered. You can assume that the input sequence will consist of operators (defined below), numbers and the variable that is defined by the user. You can also assume that the input contains a valid expression terminated by “=”. So, you do not need to do any input check for the sequence. There will be no space between operators and numbers. You must read the numbers as characters and convert them to number equivalents. There can only be positive integers. The operators that must be used are: + (addition), - (subtraction), * (multiplication), / (division), ^ (power) · +, -, * are self explanatory, · / performs normal division, not integer division: 5/2 = 2.5 · and ^ means power: 3^2 = 9 (meaning 3*3) 2^4 = 16 (meaning 2*2*2*2) Note that you must implement this power operation by yourselves. There is a function in “math.h” called “pow”, but you cannot use that function in your project. SAMPLE RUN: (Your program’s output is given in blue. User input is in red.) >>Welcome to the non-scientific calculator. >>Please enter the variable name to use in the calculations >>& >>You must enter a letter! Please re-enter the variable name: >>A >>Please enter the sequence: >> 3+1*4+5/2= >>Result = 10.5 >>What do you want to do now? a)Store the result in a variable b)Make another calculation c)Quit the program Choice>> a >>The variable A with the value 10.5 is stored. >>What do you want to do now? a)Store the result in a variable b)Make another calculation c)Quit the program Choice>> b >>Please enter the sequence: >>A+4*2-15= >> Result = 14.0 >>What do you want to do now? a)Store the result in a variable b)Make another calculation c)Quit the program Choice>> b >>Please enter the sequence: >>A+2^2= >> Result = 156.25 >>What do you want to do now? a)Store the result in a variable b)Make another calculation c)Quit the program Choice>> c Thank you for using the calculator… · As you can see from the sample run, the program has to be menu driven. |
![]() |
![]() | #27 |
the mochinger Join Date: 02 2002 Location: Paranoid Android, @10:50 Age: 41
Posts: 1,894
Downloads: 2 Uploads: 0
Reputation: 204 | 4 | ![]() ![]() ![]() |
![]() |