- 1
- 2
Однажды наступит день, когда очередную версию компилятора для "Java" напишут на "PHP".
Факт.
Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
−2
Однажды наступит день, когда очередную версию компилятора для "Java" напишут на "PHP".
Факт.
0
http://pdrs.dp.ua/pedia/
http://pdrs.dp.ua/blogs/lenak/
0
https://skillbox.ru/php/
Насчёт двенадцати месяцев этих доморощенных учителей занесло на повороте. Если отбросить всякую поеботню вроде ООП, "Laravel" и "Git", "PHP" можно выучить менее, чем за полгода.
Да и нехуй им за что-то там платить - всё можно найти в бумажных учебниках и в Интернете.
0
Геном человека занимает 3.3 Gb
Геном рыбы "Protopterus aethiopicus" -- 130 Gb
Вопрос: откуда в рыбе столько говна?
−1
"Java", "Python" и "C/C++" - говно.
Факт.
+2
https://s22.postimg.cc/5zky9jn1t/Image_from_i_OS.jpg
0
https://habr.com/post/419141/
−3
#include <iostream>
using namespace std;
void wtf() {
return 0;
}
int main() {
return wtf();
cout << wtf();
}
Решил нопейсать ватафак-код.
Классика жанра. Ретурн в воидовской функции. Плюс действие после ретурна.
0
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
/* The "Enter le ..." thing
is left for Шindows compilers.
Don't mind it. */
namespace SoloLearn
{
public class Program
{
public static void Main(string[] args)
{
int a = 0;
int b = 0; //Declare two numbers
string leChar; //Declare the character
int sum; //Declare the place where the result of the expression would be stored
Console.WriteLine("Enter le first number\n");
string c = a.ToString(); //Convert the 1st № to string
c = Console.ReadLine(); //Assign the 1st number
Console.WriteLine("Enter le character\n");
leChar = Console.ReadLine(); //Assign the char
Console.WriteLine("Enter le second number\n");
string d = b.ToString(); //Convert the 2nd № to string
d = Console.ReadLine(); //Assign the second number
a = System.Convert.ToInt16(c);
b = System.Convert.ToInt16(d);
sum = Calculate(a,leChar,b); //Calculate
Console.WriteLine("{0} {1} {2} is {3}", a, leChar, b, sum);
}
public static int Calculate(int x, string z, int y) {
int qwerty = 0;
switch(z) {
case "+": //Case of addition
qwerty = x + y;
break;
case "-": //Case of subtraction
qwerty = x - y;
break;
case "*": //Case of multiplication
qwerty = x * y;
break;
case "/": //Case of division
qwerty = x / y;
break;
}
return qwerty; //If smth = Calculate(parameters), var smth would have the content of this var © Your Captain Obvious
}
}
}
Выдавил из себя где-то месЕц назад. Как я умудрялся делать 2 переменные для просто стринговых версий существующих переменных только для того, чтобы прочитать инпут? Хорошо, что в сисярпе есть гарбаж коллектор. И да, названия переменных во второй функции - прекрасные (посмотрите: x, y, z, qwerty - не прекрасно ли?) говГо.
0
https://javascript.ru/forum/events/74655-peredacha-parametrov-v-funkciyu.html
https://javascript.ru/forum/events/74576-mozhno-li-ispolzovat-funkciyu-odnogo-diva-v-drugom.html
https://javascript.ru/forum/events/74553-kalkulyaciya-ceny-na-sajjte.html