AKB Forums

Go Back   AKB Forums > Technical sections > Languages, Compilers and Interpreters
Home Register Blogs FAQ Members List Calendar Downloads Arcade Mark Forums Read

Languages, Compilers and Interpreters C,C++,C#,.NET,Java,PHP,Perl,SQL and more

Troubles when posting message? Click here! :: Проблемы с отправлением сообщения? Нажмите сюда!

Reply
 
LinkBack Thread Tools Display Modes
Old Mar 25, 2005, 12:08  
Младенец
 
Join Date: May 2004
Location: usa
Posts: 35
Rep Power: 0
Reputation: 10
novichok ya

privet u menya paru voprosov est
my 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.

for ex:
Please enter the variable name to use in the calculations
>>&
>>You must enter a letter! Please re-enter the variable name:
>>A

kak mojno napisat eto?
centrino is offline   Reply With Quote Quote selected
Old Apr 1, 2005, 09:39   #16
Профессор
 
Nikita's Avatar
 
Join Date: Jan 2005
Location: Perm
Posts: 2,142
Rep Power: 4
Reputation: 10
Send a message via ICQ to Nikita
Ганс Андерсон намекает на Ассемблер ... там функций нету
Вот до чего доводит Эмбедид Программинг ...
Nikita is offline   Reply With Quote Quote selected
Old Apr 1, 2005, 10:17   #17
the mochinger
 
Hans Andersen's Avatar
 
Join Date: Feb 2002
Location: Paranoid Android, @10:50
Posts: 1,771
Rep Power: 7
Reputation: 102
Send a message via ICQ to Hans Andersen Send a message via MSN to Hans Andersen Send a message via Yahoo to Hans Andersen
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.
Hans Andersen is offline   Reply With Quote Quote selected
Old Apr 1, 2005, 10:53   #18
Профессор
 
Nikita's Avatar
 
Join Date: Jan 2005
Location: Perm
Posts: 2,142
Rep Power: 4
Reputation: 10
Send a message via ICQ to Nikita
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-а эту часть :Р
Nikita is offline   Reply With Quote Quote selected
Old Apr 1, 2005, 11:04   #19
the mochinger
 
Hans Andersen's Avatar
 
Join Date: Feb 2002
Location: Paranoid Android, @10:50
Posts: 1,771
Rep Power: 7
Reputation: 102
Send a message via ICQ to Hans Andersen Send a message via MSN to Hans Andersen Send a message via Yahoo to Hans Andersen
Quote:
Originally Posted by accemic26
skolko ...-a v odnom poste:
- v assemblere est' funkzii.
В ассемблере нет функций там есть кол по аддресу ... в общем ты все это вручную делаеш ...
slushaj, drug, esli Alarik govorit chto Assmbler imeet xyz propery, to uchis' a ne vypendrivajsja. function/procedure eto i est' address.

Quote:
Originally Posted by accemic26
- ja chital chto chelovek xochet na C++. kak ja mog nameknut' na assembler?
опять не врубился он хочет не на С++ а на С из-за этого ему не подошел колькулятор Страуструпа ... будь вниметельнее
dorogoj, tut delo ne v "++"-e, zavd tanem. sut' ponimat' nado...

Quote:
Originally Posted by accemic26
- chelovek chetko pisal chto prepod xochet bez funktiona
Человек этого не писал ... опять ночью пил ?
Quote:
Originally Posted by centrino
rebyata zadace govoryat chto bez funtiona nado delat
nadejus' eto otvet?

Quote:
Originally Posted by accemic26
Щас доведете возьму и выдерну из gcalctool-а эту часть :Р
aper jan ba es qani or a ed mardy xndrum a, ete karas anes, de ara eli. en el qez (mez) pativ kta dra texy
__________________
The flower that blooms in adversity is the most rare and beautiful of all.
Hans Andersen is offline   Reply With Quote Quote selected
Old Apr 1, 2005, 11:10   #20
Профессор
 
Nikita's Avatar
 
Join Date: Jan 2005
Location: Perm
Posts: 2,142
Rep Power: 4
Reputation: 10
Send a message via ICQ to Nikita
Отвечу коротко и ясно
Если Аксемик говорит что в Ассемблере нету функции и что там есть CALL метод
Значить надо ему верить.

Человек ничего не говорил о ПРЕПОДЕ. Обычно такие задачи дают как тест при поступлении на работу ...

Относительно ++
Я уже говорил о Страуструпе ... он сказал что не знает С++ ... делай выводы
Nikita is offline   Reply With Quote Quote selected
Old Apr 1, 2005, 11:17   #21
the mochinger
 
Hans Andersen's Avatar
 
Join Date: Feb 2002
Location: Paranoid Android, @10:50
Posts: 1,771
Rep Power: 7
Reputation: 102
Send a message via ICQ to Hans Andersen Send a message via MSN to Hans Andersen Send a message via Yahoo to Hans Andersen
Quote:
Originally Posted by accemic26
Отвечу коротко и ясно
Если Аксемик говорит что в Ассемблере нету функции и что там есть CALL метод
Значить надо ему верить.
assemik i assembler znaet? loooooool.
ty znaesh chto u tebja obshego s assemblerom? vot, pravil'no. to chto napisano v italic.

Quote:
Originally Posted by accemic26
Человек ничего не говорил о ПРЕПОДЕ. Обычно такие задачи дают как тест при поступлении на работу ...

Относительно ++
Я уже говорил о Страуструпе ... он сказал что не знает С++ ... делай выводы
paru dnej nazad jo poovetoval ljudjam ne sporit' s taboj, eto bespolezno. vse ravno niche ne ponimaesh i ne pojmesh.
posleduju moemu sovetu
assemik ty sporit' ne umeesh
__________________
The flower that blooms in adversity is the most rare and beautiful of all.
Hans Andersen is offline   Reply With Quote Quote selected
Old Apr 1, 2005, 11:17   #22
Антиянкист и антисемит
 
Tivin's Avatar
 
Join Date: Mar 2002
Location: Yerevan
Posts: 1,734
Rep Power: 7
Reputation: 10
Send a message via ICQ to Tivin Send a message via Yahoo to Tivin
Quote:
Originally Posted by accemic26
Ганс Андерсон намекает на Ассемблер ... там функций нету
мдаааа
__________________
Я бы изменил мир, но Бог не даёт исходников...
Tivin is offline   Reply With Quote Quote selected
Old Apr 1, 2005, 11:21   #23
Профессор
 
Nikita's Avatar
 
Join Date: Jan 2005
Location: Perm
Posts: 2,142
Rep Power: 4
Reputation: 10
Send a message via ICQ to Nikita
Ганс Андесон
Я программировал и для микроконтроллеров и для интеловских ЦПУ
В ассемблере есть CALL metod но там нету функции ... функции ты сам делаеш на ассемблере ... передачу данным ты тоже осуществляеш ручками ...
Nikita is offline   Reply With Quote Quote selected
Old Apr 1, 2005, 11:24   #24
the mochinger
 
Hans Andersen's Avatar
 
Join Date: Feb 2002
Location: Paranoid Android, @10:50
Posts: 1,771
Rep Power: 7
Reputation: 102
Send a message via ICQ to Hans Andersen Send a message via MSN to Hans Andersen Send a message via Yahoo to Hans Andersen
vo pervyx, v mire est' 121434e382947854251495 assemblerov.
i xvatit offtopit' dalshe po aske...
__________________
The flower that blooms in adversity is the most rare and beautiful of all.
Hans Andersen is offline   Reply With Quote Quote selected
Old Apr 1, 2005, 11:37   #25
Младенец
 
Join Date: May 2004
Location: usa
Posts: 35
Rep Power: 0
Reputation: 10
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.
centrino is offline   Reply With Quote Quote selected
Old Apr 1, 2005, 13:46   #26
Профессор
 
Nikita's Avatar
 
Join Date: Jan 2005
Location: Perm
Posts: 2,142
Rep Power: 4
Reputation: 10
Send a message via ICQ to Nikita
Нет в этом тебе даже Ганс Андерсен не поможет
Твоя последняя надежда это Тиг
Он крутой программер ! Вот он птЫчка высокого полета ...
Nikita is offline   Reply With Quote Quote selected
Old Apr 1, 2005, 14:10   #27
the mochinger
 
Hans Andersen's Avatar
 
Join Date: Feb 2002
Location: Paranoid Android, @10:50
Posts: 1,771
Rep Power: 7
Reputation: 102
Send a message via ICQ to Hans Andersen Send a message via MSN to Hans Andersen Send a message via Yahoo to Hans Andersen
Tig?
__________________
The flower that blooms in adversity is the most rare and beautiful of all.
Hans Andersen is offline   Reply With Quote Quote selected
Old Apr 1, 2005, 14:26   #28
Профессор
 
Nikita's Avatar
 
Join Date: Jan 2005
Location: Perm
Posts: 2,142
Rep Power: 4
Reputation: 10
Send a message via ICQ to Nikita
Соори он задержится ...
Его Бил Гейтс попросил написать Виндавоз 2005 сервер эдишен.
Щас закончит и придет.
Nikita is offline   Reply With Quote Quote selected
Old Apr 1, 2005, 18:18   #29
Младенец
 
Join Date: May 2004
Location: usa
Posts: 35
Rep Power: 0
Reputation: 10
pozovite tiga
skajite chto tut umirayushiy armyanin est
pomogite ljudi dobrie
centrino is offline   Reply With Quote Quote selected
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 11:59.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
This board was founded on September 29, 2001
Powered by Viper Internet

Affordable Web Hosting | ParevNet

Buy text link