alexinus #1 Опубликовано: 14 ноября 2012 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.cModify 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. Ебать, не знаю как я могу отплатить, могу просто ебать отдать акк, уйти с пд, короче хелп плиз Скрытый текст ВСЕ ЧТО ТЫ ИСКАЛ ДО ЭТОГО, БЕСПЛАТНО И БЕЗ СМС ГОРЯЧО, ГРЯЗНО, КИСКИ, АНАРХИЯ, МАЙДАН, АНТИМАЙДАН, РЕВОЛЮЦИЯ, СИГМА ХУЕСОС. ФОТОГРАФИЯ ВСЕЙ ЭЛИТЫ ПД, ВСЕ ЧЕРЕПА, ВСЕ ЛЮДИ, ВСЕ УВАЖАЕМО ПРЯМО СЕЙЧАС И БЕЗ РЕГИСТРАЦИИ Поделиться сообщением Ссылка на сообщение
Kant #3 14 ноября 2012 лол.Это даже первоклашка напишет, прочитав про функции printf и scanfне то что жирный десятикласник Торжество разума в том, чтобы уживаться с теми, у кого этого разума нет. Вольтер.Чтобы хорошо высыпаться, нужно спать 8 часов в день. И еще столько же ночью. Поделиться сообщением Ссылка на сообщение
.felix #4 14 ноября 2012 а почему на английском то?думал сначала на работу какое-то тестовое задание но рли слишком легко для работы Поделиться сообщением Ссылка на сообщение
alexinus #5 14 ноября 2012 Обучение идет на инглише, скажем так это для саморазвития, мне хотя бы пример нужно увидеть, так как нихуя не поясняли. Скрытый текст ВСЕ ЧТО ТЫ ИСКАЛ ДО ЭТОГО, БЕСПЛАТНО И БЕЗ СМС ГОРЯЧО, ГРЯЗНО, КИСКИ, АНАРХИЯ, МАЙДАН, АНТИМАЙДАН, РЕВОЛЮЦИЯ, СИГМА ХУЕСОС. ФОТОГРАФИЯ ВСЕЙ ЭЛИТЫ ПД, ВСЕ ЧЕРЕПА, ВСЕ ЛЮДИ, ВСЕ УВАЖАЕМО ПРЯМО СЕЙЧАС И БЕЗ РЕГИСТРАЦИИ Поделиться сообщением Ссылка на сообщение
Zwei #6 14 ноября 2012 program MyProgram;beginWriteLn ('Hello, world!');end. Steam http://steamcommunity.com/id/zweig Поделиться сообщением Ссылка на сообщение
Masjka #7 14 ноября 2012 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.cModify 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: Поделиться сообщением Ссылка на сообщение
rogogo #8 14 ноября 2012 Автор жирный, идет нахуй Русскоязычное сообщество Minecraft(кликабельно) Королева боли Нежданчик Поделиться сообщением Ссылка на сообщение
dinkelan #9 14 ноября 2012 program MyProgram;beginWriteLn ('Hello, world!');end. <3 <3<3 Поделиться сообщением Ссылка на сообщение
alexinus #10 14 ноября 2012 program MyProgram;beginWriteLn (''Hello, world!'');end. Скрытый текст ВСЕ ЧТО ТЫ ИСКАЛ ДО ЭТОГО, БЕСПЛАТНО И БЕЗ СМС ГОРЯЧО, ГРЯЗНО, КИСКИ, АНАРХИЯ, МАЙДАН, АНТИМАЙДАН, РЕВОЛЮЦИЯ, СИГМА ХУЕСОС. ФОТОГРАФИЯ ВСЕЙ ЭЛИТЫ ПД, ВСЕ ЧЕРЕПА, ВСЕ ЛЮДИ, ВСЕ УВАЖАЕМО ПРЯМО СЕЙЧАС И БЕЗ РЕГИСТРАЦИИ Поделиться сообщением Ссылка на сообщение
LeapHarder #11 14 ноября 2012 program huipoumivara,b,c:integer;begina=2;b=2;c:=a+b;writeln©;end. Поделиться сообщением Ссылка на сообщение
Kant #12 14 ноября 2012 бля, мне так не хочется делать лабу, что пойду помогу жирному и задача с номером t03p02.cpp. не напишется, тк предполагает наличие условия для t03p01.cpp, а его нет. Торжество разума в том, чтобы уживаться с теми, у кого этого разума нет. Вольтер.Чтобы хорошо высыпаться, нужно спать 8 часов в день. И еще столько же ночью. Поделиться сообщением Ссылка на сообщение
alexinus #13 14 ноября 2012 Да даже если одну, огромное тебе спасибо спасибо. Скрытый текст ВСЕ ЧТО ТЫ ИСКАЛ ДО ЭТОГО, БЕСПЛАТНО И БЕЗ СМС ГОРЯЧО, ГРЯЗНО, КИСКИ, АНАРХИЯ, МАЙДАН, АНТИМАЙДАН, РЕВОЛЮЦИЯ, СИГМА ХУЕСОС. ФОТОГРАФИЯ ВСЕЙ ЭЛИТЫ ПД, ВСЕ ЧЕРЕПА, ВСЕ ЛЮДИ, ВСЕ УВАЖАЕМО ПРЯМО СЕЙЧАС И БЕЗ РЕГИСТРАЦИИ Поделиться сообщением Ссылка на сообщение
rogogo #14 14 ноября 2012 (изменено) № *--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 win32Type "copyright", "credits" or "license()" for more information.>>> ================================ RESTART ================================>>> idi nahui zhirnyi uebak Изменено 14 ноября 2012 пользователем rogogo Русскоязычное сообщество Minecraft(кликабельно) Королева боли Нежданчик Поделиться сообщением Ссылка на сообщение
KotZhilkina #15 14 ноября 2012 ' ' 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 Публикация отключена Поделиться сообщением Ссылка на сообщение
Kant #16 14 ноября 2012 http://rghost.ru/41571576 про printf и scanf http://ru.wikipedia.org/wiki/Printfhttp://www.rsdn.ru/forum/cpp/1128588.1http://www.cplusplus.../cstdio/printf/ Писал чисто в блокнотике, ничего не проверял, вероятность успешной компиляции и правильной работы с первой попытки стремится к нулю. Торжество разума в том, чтобы уживаться с теми, у кого этого разума нет. Вольтер.Чтобы хорошо высыпаться, нужно спать 8 часов в день. И еще столько же ночью. Поделиться сообщением Ссылка на сообщение
alexinus #17 14 ноября 2012 Вроде все работает, спасибо огромное!!!! Скрытый текст ВСЕ ЧТО ТЫ ИСКАЛ ДО ЭТОГО, БЕСПЛАТНО И БЕЗ СМС ГОРЯЧО, ГРЯЗНО, КИСКИ, АНАРХИЯ, МАЙДАН, АНТИМАЙДАН, РЕВОЛЮЦИЯ, СИГМА ХУЕСОС. ФОТОГРАФИЯ ВСЕЙ ЭЛИТЫ ПД, ВСЕ ЧЕРЕПА, ВСЕ ЛЮДИ, ВСЕ УВАЖАЕМО ПРЯМО СЕЙЧАС И БЕЗ РЕГИСТРАЦИИ Поделиться сообщением Ссылка на сообщение
1010 #18 14 ноября 2012 пиздец толку с этих задач на практике нихуя не делаете напишите игру какую-то с норм графикой на движке Поделиться сообщением Ссылка на сообщение
rogogo #19 14 ноября 2012 пиздец толку с этих задач на практике нихуя не делаете напишите игру какую-то с норм графикой на движкеесли бы ты знал, какую хуйню ты морозишь, ты бы закрыл свой тупой рот, забился в угол, и сидел бы тихо-тихо, пока бы тебя не позвали Русскоязычное сообщество Minecraft(кликабельно) Королева боли Нежданчик Поделиться сообщением Ссылка на сообщение
xeneor #20 14 ноября 2012 пиздец толку с этих задач на практике нихуя не делаете напишите игру какую-то с норм графикой на движкезадачи логику развивают и мозг в целом МОЙ СФ #1[media=] [/media] МОЙ ИНВОКЕР[media=] [/media] МОЙ СФ #2[media=] [/media] МОЙ КАНАЛ С ДРУГИМИ НАРЕЗКАМИhttp://www.youtube.com/user/MrXeneor/videos Поделиться сообщением Ссылка на сообщение