A
AnonymousMay 14, 2020, 9:46 a.m.
FIFO
#include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <stdlib.h> #include <stdio.h> int main() { int fd, fork_res; ssize_t size; char
A
AnonymousMay 14, 2020, 12:26 a.m.
20 bits
#include <sys/types.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> int main() { int fd; ssize_t size; char str20bits[20]; (void)umask(0); fd = open("file
python
from PyQt5.QtWidgets import QApplication, QMainWindow, QLabel, QGridLayout, QWidget, QCheckBox, QSystemTrayIcon, \ QSpacerItem, QSizePolicy, QMenu, QAction, QStyle, qApp from PyQt5.QtCore import
A
AnonymousMay 9, 2020, 10:07 p.m.
Untitled
from math import floor def get_coubes_sum(number, result_array=None, starting_point=0): # основная рекурсивная функция, где starting_point отвечает за глубину рекурсси # первичная иници
A
AnonymousMay 9, 2020, 9:11 p.m.
Untitled
def vec_move(tile, vec): '''Сдвигаемся по вектору''' next_tile = [] for i in range(2): next_tile.append(tile[i]+vec[i]) return tuple(next_tile) def print_field(field):
BlinCTMay 8, 2020, 11:14 a.m.
Untitled
if (!strcmp(optarg, "old")) { ataopts.output_format &= ~ata_print_options::FMT_BRIEF; } else if (!strcmp(optarg, "brief")) { ataopts.output_format |= ata_print_options::FMT_BRIEF; } else i
A
AnonymousMay 6, 2020, 5 a.m.
Untitled
<!DOCTYPE html> <html> <head> <title>Испытание 1: красивая форма</title> <meta charset="utf-8"> </head> <body> <form class="login-form" action="/auth" method
Evgenii LegotckoiMay 5, 2020, 2:28 a.m.
123456
componentDidMount(){ this.startTimer() } startTimer = () => { let inter_new = setInterval(this.check, 10); this.check(inter_new) } check = (inte
A
AnonymousMay 4, 2020, 5:45 p.m.
Переход между бранчами, vkbottle
from tortoise import Tortoise from vkbottle import Bot, Message from vkbottle.branch import ClsBranch, rule_disposal from vkbottle.framework.framework.branch.database_branch import DatabaseBranch
A
AnonymousMay 2, 2020, 1:43 a.m.
ывпывпывп
using System; using System.Linq; using System.Threading.Tasks; namespace rocket_bot { public partial class Bot { public Rocket GetNextMove(Rocket rocket) {
BlinCTApril 30, 2020, 2:27 p.m.
Untitled
import QtQuick 2.12 Item { id: ctextItem property string textItem property color color: "#ffffff" // property string fontName: "Frutiger57" property int
A
AnonymousApril 14, 2020, 1:32 p.m.
Untitled
import React, {useState} from 'react'; import clsx from 'clsx'; import { makeStyles } from '@material-ui/core/styles'; import TextField from '@material-ui/core/TextField'; import FormControlLabel
A
AnonymousApril 12, 2020, 12:47 p.m.
Untitled
import React, {useState} from 'react'; import clsx from 'clsx'; import { makeStyles } from '@material-ui/core/styles'; import TextField from '@material-ui/core/TextField'; import FormControlLabel
A
AnonymousApril 12, 2020, 11:09 a.m.
3
x = input() m = True if x[0] == '0': m = False else: for i in x: if i < '0' or i > '7': m = False if m: print('Yes') else: print('No')
ChristoFApril 10, 2020, 9:11 a.m.
#2 gSoap-клиент Qt
/* В продолжение https://wiki.qt.io/How_to_use_gSOAP_with_Qt_for_Web_Service_Client. #wsdl2h.exe Создание header-файла из wsdl .\wsdl2h.exe -o ws.h -ipath http://ссылка на wsdl #soapcpp2
A
AnonymousApril 3, 2020, 10:10 a.m.
Проверка безопасности
<?php header("Access-Control-Allow-Origin: *"); $config = array( 'host' => '123', 'user' => '123', 'pass' => '123', 'base' => '123' ); $db = new mysqli($config['host'], $config['user']
A
AnonymousMarch 25, 2020, 4:46 p.m.
Untitled
n = 5 na, nb = 99, 99 c = na * 5 d = nb * 5 if d >= 100: c += d // 100 d -= (d // 100) * 100 print('Цена за кг. картофеля:', na, 'грн.', nb, 'копеек.') print('Для покупи', n, 'кг. к
A
AnonymousMarch 25, 2020, 6:38 a.m.
Untitled
import turtle turtle.shape("turtle") x = 1 y = 20 z = 4 turtle.forward(y) turtle.left(90) turtle.forward(y) turtle.left(90) turtle.forward(y) turtle.left(90) turtle.forward(y) turtle.p
A
AnonymousMarch 20, 2020, 4:02 p.m.
A
AnonymousMarch 19, 2020, 7:52 a.m.
Код макроса
function Add5() { var spreadsheet = SpreadsheetApp.getActive(); spreadsheet.getRange('A2:F2').activate(); spreadsheet.setActiveSheet(spreadsheet.getSheetByName('Все операции'), true); spre
d
- dsfs
- April 26, 2024, 2:56 p.m.
C ++ - Test 004. Pointers, Arrays and Loops
- Result:80points,
- Rating points4
d
- dsfs
- April 26, 2024, 2:35 p.m.
C++ - Test 001. The first program and data types
- Result:73points,
- Rating points1
Last comments
Qt Linux - Lesson 001. Autorun Qt application under Linux как сделать автозапуск для флэтпака, который не даёт создавать файлы в ~/.config - вот это вопрос ))
АК
Qt WinAPI - Lesson 007. Working with ICMP Ping in Qt Без строки #include <QRegularExpressionValidator> в заголовочном файле не работает валидатор.
Анатолий КононенкоFeb. 5, 2024, 12:50 p.m.
EVADec. 25, 2023, 9:30 p.m.
Boost - static linking in CMake project under Windows Сделал всё по-как у вас, но выдаёт ошибку [build] LINK : fatal error LNK1104: не удается открыть файл "libboost_locale-vc142-mt-gd-x64-1_74.lib" Хоть убей, не могу понять в чём дел…
Qt/C++ - Lesson 056. Connecting the Boost library in Qt for MinGW and MSVC compilers Для решения твой проблемы добавь в файл .pro строчку "LIBS += -lws2_32" она решит проблему , лично мне помогло.
Now discuss on the forum
DA
Unlock Your Aesthetic Potential: Explore MSC in Facial Aesthetics and Cosmetology in India Embark on a transformative journey with an msc in facial aesthetics and cosmetology in india . Delve into the intricate world of beauty and rejuvenation, guided by expert faculty and …
Dr Gangil AcademicsApril 20, 2024, 5:45 p.m.
Мобильное приложение на C++Qt и бэкенд к нему на Django Rest Framework Евгений, добрый день! Такой вопрос. Верно ли следующее утверждение: Любое Android-приложение, написанное на Java/Kotlin чисто теоретически (пусть и с большими трудностями) можно написать и на C+…
Павел ДорофеевApril 14, 2024, 12:35 p.m.
Вернуть старое поведение QComboBox, не менять индекс при resetModel Добрый день! У нас много проектов в которых используется QComboBox, в версии 5.5.1, когда модель испускает сигнал resetModel, currentIndex не менялся. В версии 5.15 при resetModel происходит try…