- .cmake files on Modern CMake
This post is written by LLaMa3-70b model.
In Modern CMake, configuration files, also referred to as "config modules" or "package config files," play a vital role in managing dependencies and facilitating package discovery.
A configuration file is a CMake script generated by a package (e.g., a library) to provide
- Prepare Visual Studio Code to Work with Google's C++ Style Guide
Firstly, the reader should have "C/C++ Extension Pack" distrubed by Microsoft.
1. Click the File tab, and select Settings from Preferences menu.
2. Search for Clang_format Style. It has to give you two important result: C_Cpp: Clang_format_fallback Style and C_Cpp: Clang_format_style.
3.
- CMakeCheatsheet.txt
A small guide to creating your own library using CMake. Please note that this post is prepared for myself to remind me how to use it after a long time of forgetfulness.
1. project() and cmake_minimum_required() is mandatory.
2. ${PROJECT_NAME} is a variable holds our project name
- C++ Anahtar Kelimeleri
* static: Sınıflarda veya structlarda tüm instancelar tarafından aynı şekilde erişilen bir değişken/fonksiyon yaratmak için kullanılır. Bu yaratılmış değişken veya fonksiyon modifiye edildiğinde tüm instancelarda da modifiye edilmiştir. Sınıf veya struct dışı kullanımlarda ise linker'a "bu değişken veya fonkisyon yalnızca bu dosyaya özel, başka bir dosya ile bağlantı sağlama" demeye
- CSE1146 Vize II Sorular ve Cevaplar
Soru 1: Belirli Bir Aralıkta Gizemli ve Asal Sayı Bulucu
Write a complete C++ program that determines the prime and mysterious numbers between two numbers in ascending order given by the user.
If the given two boundary numbers are not provided in ascending order, terminate the program with an error
- C++ Cümledeki Kelimeleri Tersine Sıralama
string reverse_words(string const &s, char const div) {
string temp = s;
string ret;
string found;
size_t pos = 0;
do {
// Finding first occurrence
pos = temp.rfind(div);
if (pos > temp.length()) break;
// If pos found
ret += temp.substr(pos, temp.length()-1);
temp = temp.substr(0, pos);
} while (pos
- C++'de neden std:array sınıfını kullanmalıyız?
Öncelikle merhaba, bugün daha önceden bilmediğim bir konuyu, biraz da kendime anlatmak amacı ile bir gönderi yazmaya karar verdim. Bilmeniz gereken bir konu, tüm bu yazının yalnızca C++11'den sonrası için çalışıyor oluşu.
Ben çoğu zaman C++ ile de yazsam, C ile de yazsam, basit C tipi dizi tanımlamasını kullanıyordum.
- CSE1146 Vize I Çözümleri
İlk soruyu sınav esnasında yazmış olmama rağmen, bir hatadan dolayı (128. satırı unutmuştum) çok zaman kaybettim ve ikinci soruya bakamamıştım. Fırsat oldu baktım, buyurun onun çözümünü de ekliyorum.
Not, sorular bize tekrar açıldıktan sonra birkaç yanlış hatırladığım nokta fark ettim ikinci soruda. Onları düzelttim.
60 Puanlık İlk Sorunun Çözümü
#include