This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Licensed to the Apache Software Foundation (ASF) under one | |
# or more contributor license agreements. See the NOTICE file | |
# distributed with this work for additional information | |
# regarding copyright ownership. The ASF licenses this file | |
# to you under the Apache License, Version 2.0 (the | |
# "License"); you may not use this file except in compliance | |
# with the License. You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define _CRT_SECURE_NO_WARNINGS // отключение предупреждений о небезопасности | |
#include <iostream> // для cout, cin, endl | |
#include <stdio.h> // для printf, scanf | |
using namespace std; // пространство имен std | |
int main(int argc, char** argv) { | |
setlocale(LC_ALL, "Russian"); // подключение русского языка | |
int number1; // целое число |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <iostream> | |
#ifdef _WIN32 // Если это Windows | |
#include <io.h> | |
#include <fcntl.h> | |
#endif | |
int main(int argc, char** argv) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma execution_character_set( "utf-8" ) // for MSVC | |
#include <boost/nowide/args.hpp> // for utf8_to_utf16 | |
#include <boost/nowide/fstream.hpp> // for fstream | |
#include <boost/nowide/iostream.hpp> // for cout, cerr, cin, clog | |
using namespace boost::nowide; // for cout, cerr, cin, clog | |
using std::endl; // for endl | |
int main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <clocale> | |
#include <string> | |
#include <iostream> | |
using namespace std; | |
int main() { | |
setlocale(LC_ALL, "Russian"); | |
string fio; | |
cout << "Введите строку: "; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <wx/wx.h> | |
int main(int argc, char** argv) | |
{ | |
wxLocale m_locale; // Создать объект локали для wxWidgets | |
m_locale.Init(wxLANGUAGE_RUSSIAN, wxLOCALE_DONT_LOAD_DEFAULT); // Установить локаль для wxWidgets | |
#ifdef __WXMSW__ // Определение для Windows | |
SetConsoleCP(1251); // Установить кодовую страницу ввода для Windows | |
SetConsoleOutputCP(1251); // Установить кодовую страницу вывода для Windows |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "MyForm.h" | |
#include <Windows.h> | |
using namespace Project1; // Название проекта | |
int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int) { | |
Application::EnableVisualStyles(); | |
Application::SetCompatibleTextRenderingDefault(false); | |
Application::Run(gcnew MyForm); | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"profiles": { | |
"ConsoleApp": { | |
"commandName": "Project" | |
}, | |
"WSL2": { | |
"commandName": "Executable", | |
"executablePath": "wsl", | |
"commandLineArgs": "dotnet ConsoleApp.dll [commandLineArgs]" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
package="kz.talipovsn.permissions"> | |
<uses-permission android:name="android.permission.INTERNET" /> | |
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES"/> | |
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO"/> | |
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO"/> | |
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace TSN_CSh_lab6 | |
{ | |
public partial class Form1 : Form | |
{ | |
public const string FILE_NAME = "Settings.ini"; // Имя файла настроек | |
public Form1() | |
{ | |
InitializeComponent(); | |
} |
NewerOlder