This file contains hidden or 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
@echo off | |
:: Устанавливаем путь к wxWidgets | |
set WX_DIR=D:\Development\RedPanda-CPP\wxWidgets | |
:: Устанавливаем путь к платформе С++ | |
set MINGW_DIR=D:\Development\RedPanda-CPP\mingw64 | |
:: Устанавливаем имя утилиты сборки | |
set MAKE_TOOL=mingw32-make.exe | |
:: Устанавливаем путь сборки (НЕ МЕНЯЙТЕ ЭТО!) |
This file contains hidden or 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> | |
class MyPanel : public wxPanel // Панель для рисования | |
{ | |
public: | |
MyPanel(wxWindow* parent) : wxPanel(parent, wxID_ANY) { | |
// Регистрируем обработчик события рисования | |
Bind(wxEVT_PAINT, &MyPanel::OnPaint, this); | |
} |
This file contains hidden or 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
CODEBLOCKS_PROJECTS_WX_SETTINGS_LINUX: | |
Global compiler settings -> Toolchain executables -> Compiler's installation directory : /usr | |
-- for linux build: -- | |
Project build options -> Compiler Settings -> Other compiler options : `wx-config --cflags` | |
Project build options -> Linker Settings -> Other linker options : `wx-config --libs` | |
Global compiler settings -> Toolchain executables -> C++ compiler : g++ | |
Global compiler settings -> Toolchain executables -> Linker for dynamic libs : g++ | |
Global compiler settings -> Toolchain executables -> Linker for static libs : ar |
This file contains hidden or 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
--- Все конфигурации проекта: --- | |
C/C++ -> Дополнительные каталоги включаемых файлов : $(wxwin)\include\msvc;$(wxwin)\include | |
Компоновщик -> Дополнительные каталоги библиотек : $(wxwin)\lib\vc_x64_lib | |
-------------------------------------------------------- | |
--- Системные переменные Windows: --- | |
wxwin : C:\Users\talip\Projects\wxWidgets |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
NewerOlder