Перейти к публикации
  • Сейчас на странице   Всего пользователей: 0   (0 пользователей, 0 гостей)

alexinus

Программисты, прошу помощи

Рекомендованные сообщения

Define variables capable of storing the following values: -0.12; 12; -120; 12000; 120000; 12.121212; 12.1212121212121212. Always choose a type with range as narrow as possible. Send this values to the standard output. Name your program t02p05.cpp.

Write a program in which you ask the user to enter one integer value. Then display this value on standard output in the three lines in decimal, hexadecimal and octal system respectively. Print the hexadecimal value with 0x prefix. Name your program t02p06.c

Modify the program above so that on the standard output the variables are printed together with the result, in a form “x + y = result”, in the decimal, octal and hexadecimal notation respectively. All values should be printed in fields of width 5. Name your program t03p02.cpp.

Write a program, in which you define two variables x and y. Ask user to provide values for these variables and read them off the keyboard. Compute the sum, difference, product, quotient, remainder of the division of x by y and the square roots of these variables. Choose appropriate types to store the results of this operations. Display the results with corresponding descriptions. Name your program t03p03.cpp.

Write a program, in which you define a variable x of integer type. Its value should be provided by an user. Use the bitwise shift operators to multiply this variable by 8 and to divide it by 4. Display the results of this calculations on the standard output. Name your program t03p04.cpp.

 

Ебать, не знаю как я могу отплатить, могу просто ебать отдать акк, уйти с пд, короче хелп плиз

 

 
Скрытый текст

 

ВСЕ ЧТО ТЫ ИСКАЛ ДО ЭТОГО, БЕСПЛАТНО И БЕЗ СМС ГОРЯЧО, ГРЯЗНО, КИСКИ, АНАРХИЯ, МАЙДАН, АНТИМАЙДАН, РЕВОЛЮЦИЯ, СИГМА ХУЕСОС.

7100d23116.jpg

 

 

ФОТОГРАФИЯ ВСЕЙ ЭЛИТЫ ПД, ВСЕ ЧЕРЕПА, ВСЕ ЛЮДИ, ВСЕ УВАЖАЕМО ПРЯМО СЕЙЧАС И БЕЗ РЕГИСТРАЦИИ

e528e31319.jpg


 

 

Поделиться сообщением


Ссылка на сообщение

Как насчет просто удалиться? :hmm:

Поделиться сообщением


Ссылка на сообщение

лол.

Это даже первоклашка напишет, прочитав про функции printf и scanf

не то что жирный десятикласник


Торжество разума в том, чтобы уживаться с теми, у кого этого разума нет. Вольтер.
Чтобы хорошо высыпаться, нужно спать 8 часов в день. И еще столько же ночью.

Поделиться сообщением


Ссылка на сообщение

а почему на английском то?

думал сначала на работу какое-то тестовое задание но рли слишком легко для работы

Поделиться сообщением


Ссылка на сообщение

Обучение идет на инглише, скажем так это для саморазвития, мне хотя бы пример нужно увидеть, так как нихуя не поясняли.


 

 
Скрытый текст

 

ВСЕ ЧТО ТЫ ИСКАЛ ДО ЭТОГО, БЕСПЛАТНО И БЕЗ СМС ГОРЯЧО, ГРЯЗНО, КИСКИ, АНАРХИЯ, МАЙДАН, АНТИМАЙДАН, РЕВОЛЮЦИЯ, СИГМА ХУЕСОС.

7100d23116.jpg

 

 

ФОТОГРАФИЯ ВСЕЙ ЭЛИТЫ ПД, ВСЕ ЧЕРЕПА, ВСЕ ЛЮДИ, ВСЕ УВАЖАЕМО ПРЯМО СЕЙЧАС И БЕЗ РЕГИСТРАЦИИ

e528e31319.jpg


 

 

Поделиться сообщением


Ссылка на сообщение

Define variables capable of storing the following values: -0.12; 12; -120; 12000; 120000; 12.121212; 12.1212121212121212. Always choose a type with range as narrow as possible. Send this values to the standard output. Name your program t02p05.cpp.

Write a program in which you ask the user to enter one integer value. Then display this value on standard output in the three lines in decimal, hexadecimal and octal system respectively. Print the hexadecimal value with 0x prefix. Name your program t02p06.c

Modify the program above so that on the standard output the variables are printed together with the result, in a form “x + y = result”, in the decimal, octal and hexadecimal notation respectively. All values should be printed in fields of width 5. Name your program t03p02.cpp.

Write a program, in which you define two variables x and y. Ask user to provide values for these variables and read them off the keyboard. Compute the sum, difference, product, quotient, remainder of the division of x by y and the square roots of these variables. Choose appropriate types to store the results of this operations. Display the results with corresponding descriptions. Name your program t03p03.cpp.

Write a program, in which you define a variable x of integer type. Its value should be provided by an user. Use the bitwise shift operators to multiply this variable by 8 and to divide it by 4. Display the results of this calculations on the standard output. Name your program t03p04.cpp.

 

Ебать, не знаю как я могу отплатить, могу просто ебать отдать акк, уйти с пд, короче хелп плиз

я обычно нажимаю ctrl+alt+delete ищу то что мне ненадо и снимаю задачу :fuckyea: :fuckyea:

Поделиться сообщением


Ссылка на сообщение

Автор жирный, идет нахуй


Русскоязычное сообщество Minecraft(кликабельно)

1ca7e1e06394857c53618143360f09cb.jpg

 

Королева боли

queen_of_pain_by_askatao-d4rsys0.jpg

 

 

Нежданчик

anigif_enhanced-buzz-26791-1354299164-7.gif

 

Поделиться сообщением


Ссылка на сообщение

program MyProgram;

begin

WriteLn ('Hello, world!');

end.


 

<3

Gquevedo-1024x814.jpg

 

 

<3<3

photo.jpg

 

Поделиться сообщением


Ссылка на сообщение

program MyProgram;

begin

WriteLn (''Hello, world!'');

end.


 

 
Скрытый текст

 

ВСЕ ЧТО ТЫ ИСКАЛ ДО ЭТОГО, БЕСПЛАТНО И БЕЗ СМС ГОРЯЧО, ГРЯЗНО, КИСКИ, АНАРХИЯ, МАЙДАН, АНТИМАЙДАН, РЕВОЛЮЦИЯ, СИГМА ХУЕСОС.

7100d23116.jpg

 

 

ФОТОГРАФИЯ ВСЕЙ ЭЛИТЫ ПД, ВСЕ ЧЕРЕПА, ВСЕ ЛЮДИ, ВСЕ УВАЖАЕМО ПРЯМО СЕЙЧАС И БЕЗ РЕГИСТРАЦИИ

e528e31319.jpg


 

 

Поделиться сообщением


Ссылка на сообщение

program huipoumi

var

a,b,c:integer;

begin

a=2;

b=2;

c:=a+b;

writeln©;

end.

Поделиться сообщением


Ссылка на сообщение

бля, мне так не хочется делать лабу, что пойду помогу жирному

 

и задача с номером t03p02.cpp. не напишется, тк предполагает наличие условия для t03p01.cpp, а его нет.


Торжество разума в том, чтобы уживаться с теми, у кого этого разума нет. Вольтер.
Чтобы хорошо высыпаться, нужно спать 8 часов в день. И еще столько же ночью.

Поделиться сообщением


Ссылка на сообщение

Да даже если одну, огромное тебе спасибо спасибо.


 

 
Скрытый текст

 

ВСЕ ЧТО ТЫ ИСКАЛ ДО ЭТОГО, БЕСПЛАТНО И БЕЗ СМС ГОРЯЧО, ГРЯЗНО, КИСКИ, АНАРХИЯ, МАЙДАН, АНТИМАЙДАН, РЕВОЛЮЦИЯ, СИГМА ХУЕСОС.

7100d23116.jpg

 

 

ФОТОГРАФИЯ ВСЕЙ ЭЛИТЫ ПД, ВСЕ ЧЕРЕПА, ВСЕ ЛЮДИ, ВСЕ УВАЖАЕМО ПРЯМО СЕЙЧАС И БЕЗ РЕГИСТРАЦИИ

e528e31319.jpg


 

 

Поделиться сообщением


Ссылка на сообщение
(изменено)

№ *--coding utf-8--*

list=[105, 100, 105, 32, 110, 97, 104, 117, 105, 32, 122, 104, 105, 114, 110, 121, 105, 32, 117, 101, 98, 97, 107]

word=''

for i in list:

word+=chr(list)

print word

 

if _naim_==__main()__:

__main()__

 

 

 

 

Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on win32

Type "copyright", "credits" or "license()" for more information.

>>> ================================ RESTART ================================

>>> idi nahui zhirnyi uebak


Изменено пользователем rogogo

Русскоязычное сообщество Minecraft(кликабельно)

1ca7e1e06394857c53618143360f09cb.jpg

 

Королева боли

queen_of_pain_by_askatao-d4rsys0.jpg

 

 

Нежданчик

anigif_enhanced-buzz-26791-1354299164-7.gif

 

Поделиться сообщением


Ссылка на сообщение

'
' SPLITFILEBYROWS.vbs
'
' Date: 25.10.2012
'
' Version: 1.00.00
'

Option Explicit

Dim SPLIT_ROWS
Dim SPLIT_SEPARATORLINE

SPLIT_ROWS = 21
SPLIT_SEPARATORLINE = ""

Dim CSV_NEWLINE
Dim CSV_FIELDSEPARATOR
Dim CSV_TEXTQUALIFIER

CSV_NEWLINE = vbCrLf
CSV_FIELDSEPARATOR = ";"
CSV_TEXTQUALIFIER = """"

Const strInputFilenameExtension = ".CSV"
Const strOutputFilenameExtension = ".SEPARATED.CSV"

Dim objArgs
Set objArgs = WScript.Arguments

If objArgs.Count <> 0 Then

   Dim objFSO
   Set objFSO = CreateObject("Scripting.FileSystemObject")

   Dim strFiles

   Dim strFile

   Dim objFile
   Dim objFolder

   Dim strArg
   For Each strArg in objArgs
       Select Case True
           Case objFSO.FileExists(strArg):
                   strFile = strArg
                   If strFile <> "" And UCase(Right(strFile, 4)) = strInputFilenameExtension Then
                       strFiles = strFiles & ";" & strFile
                   End If
           Case objFSO.FolderExists(strArg):
               Set objFolder = objFSO.GetFolder(strArg)
               For Each objFile In objFolder.Files
                   strFile = objFile.Path
                   If strFile <> "" And UCase(Right(strFile, 4)) = strInputFilenameExtension Then
                       strFiles = strFiles & ";" & strFile
                   End If
               Next
               Set objFile = Nothing
               Set objFolder = Nothing
           Case Else:
       End Select
   Next

   If Left(strFiles, 1) = ";" Then
       strFiles = Mid(strFiles, 2, Len(strFiles) - 1)
   End If

   If Right(strFiles, 1) = ";" Then
       strFiles = Mid(strFiles, 1, Len(strFiles) - 1)
   End If

   Dim arrFiles
   arrFiles = Split (strFiles, ";")

   Dim intFile
   Dim strFile_In
   Dim strFile_Out
   Dim objFile_In
   Dim objFile_Out
   Dim strRows_In
   Dim strRows_Out
   For intFile = LBound(arrFiles) To UBound(arrFiles)
       strFile_In = arrFiles(intFile)
       Set objFile_In = objFSO.OpenTextFile(strFile_In)
       strRows_In = objFile_In.ReadAll
       objFile_In.Close
       Set objFile_In = Nothing

       strRows_Out = SplitRows(strRows_In)

       strFile_Out = arrFiles(intFile) & strOutputFilenameExtension
       Set objFile_Out = objFSO.CreateTextFile(strFile_Out, 1)
       objFile_Out.WriteLine(strRows_Out)
       objFile_Out.Close
       Set objFile_Out = Nothing
   Next

   Set objFSO = Nothing

End If

Set objArgs = Nothing

WScript.Quit

Function SplitRows (ByVal strRows)

   SplitRows = ""

   Dim arrRows
   arrRows = Split(strRows, vbCrLf)

   Dim intRows
   intRows = 0

   Dim intRow
   For intRow = LBound(arrRows) To UBound(arrRows)

       Dim strFields
       strFields = arrRows(intRow)

       Dim arrFields
       arrFields = Split (strFields, CSV_FIELDSEPARATOR)

       Dim strRow
       strRow = ""

       Dim strField
       For Each strField In arrFields
           strRow = strRow & CSV_FIELDSEPARATOR & CSV_TEXTQUALIFIER & strField & CSV_TEXTQUALIFIER
       Next

       If Left(strRow, Len(CSV_FIELDSEPARATOR)) = CSV_FIELDSEPARATOR Then
           strRow = Mid(strRow, 1 + Len(CSV_FIELDSEPARATOR), Len(strRow) - Len(CSV_FIELDSEPARATOR))
       End If

       If Right(strRow, Len(CSV_FIELDSEPARATOR)) = CSV_FIELDSEPARATOR Then
           strRow = Mid(strRow, 1, Len(strRow) - Len(CSV_FIELDSEPARATOR))
       End If

       SplitRows = SplitRows & strRow & CSV_NEWLINE
       intRows = intRows + 1

       If intRows > SPLIT_ROWS Then
           SplitRows = SplitRows & SPLIT_SEPARATORLINE & CSV_NEWLINE
           intRows = 1
       End If
   Next


End Function


Публикация отключена

Поделиться сообщением


Ссылка на сообщение

http://rghost.ru/41571576

 

про printf и scanf

 

http://ru.wikipedia.org/wiki/Printf

http://www.rsdn.ru/forum/cpp/1128588.1

http://www.cplusplus.../cstdio/printf/

 

Писал чисто в блокнотике, ничего не проверял, вероятность успешной компиляции и правильной работы с первой попытки стремится к нулю.


Торжество разума в том, чтобы уживаться с теми, у кого этого разума нет. Вольтер.
Чтобы хорошо высыпаться, нужно спать 8 часов в день. И еще столько же ночью.

Поделиться сообщением


Ссылка на сообщение

Вроде все работает, спасибо огромное!!!!


 

 
Скрытый текст

 

ВСЕ ЧТО ТЫ ИСКАЛ ДО ЭТОГО, БЕСПЛАТНО И БЕЗ СМС ГОРЯЧО, ГРЯЗНО, КИСКИ, АНАРХИЯ, МАЙДАН, АНТИМАЙДАН, РЕВОЛЮЦИЯ, СИГМА ХУЕСОС.

7100d23116.jpg

 

 

ФОТОГРАФИЯ ВСЕЙ ЭЛИТЫ ПД, ВСЕ ЧЕРЕПА, ВСЕ ЛЮДИ, ВСЕ УВАЖАЕМО ПРЯМО СЕЙЧАС И БЕЗ РЕГИСТРАЦИИ

e528e31319.jpg


 

 

Поделиться сообщением


Ссылка на сообщение

пиздец толку с этих задач на практике нихуя не делаете напишите игру какую-то с норм графикой на движке

Поделиться сообщением


Ссылка на сообщение

пиздец толку с этих задач на практике нихуя не делаете напишите игру какую-то с норм графикой на движке

если бы ты знал, какую хуйню ты морозишь, ты бы закрыл свой тупой рот, забился в угол, и сидел бы тихо-тихо, пока бы тебя не позвали


Русскоязычное сообщество Minecraft(кликабельно)

1ca7e1e06394857c53618143360f09cb.jpg

 

Королева боли

queen_of_pain_by_askatao-d4rsys0.jpg

 

 

Нежданчик

anigif_enhanced-buzz-26791-1354299164-7.gif

 

Поделиться сообщением


Ссылка на сообщение

пиздец толку с этих задач на практике нихуя не делаете напишите игру какую-то с норм графикой на движке

задачи логику развивают и мозг в целом

 

МОЙ СФ #1

[media=]

[/media]

 

 

МОЙ ИНВОКЕР

[media=]

[/media]

 

 

МОЙ СФ #2

[media=]

[/media]

 

 

МОЙ КАНАЛ С ДРУГИМИ НАРЕЗКАМИ

 

Поделиться сообщением


Ссылка на сообщение
Гость
Эта тема закрыта для публикации сообщений.

×
×
  • Создать...