Follow the below steps to install the latest version of PostgreSQL on Windows by scoop package manager.
scoop install postgresql -g
import std.stdio : writefln; | |
void main() { | |
"%,3?d".writefln('_', 2_000_000.sumOfPrimesBelow); | |
} | |
ulong sumOfPrimesBelow(ulong num) { | |
// Create a dynamic array of booleans initialized to true | |
bool[] primes = new bool[num]; | |
primes[] = true; |
import vibe.d; | |
import vibe.web.rest; | |
import std.array; | |
shared static this() | |
{ | |
auto router = new URLRouter; | |
router.get("/", serveStaticFiles("./../client/index.html")) | |
.get("*", serveStaticFiles("./../client/")); |
List Updated 2024 -> https://docwiki.embarcadero.com/RADStudio/Athens/en/Compiler_Versions | |
{$IFDEF VER80} ShowMessage('Delphi 1');{$ENDIF} | |
{$IFDEF VER90} ShowMessage('Delphi 2');{$ENDIF} | |
{$IFDEF VER100} ShowMessage('Delphi 3');{$ENDIF} | |
{$IFDEF VER120} ShowMessage('Delphi 4');{$ENDIF} | |
{$IFDEF VER130} ShowMessage('Delphi 5');{$ENDIF} | |
{$IFDEF VER140} ShowMessage('Delphi 6');{$ENDIF} |
use std::convert::Infallible; | |
use axum::{ | |
async_trait, | |
extract::FromRequestParts, | |
http::{request::Parts, Request, header::CONTENT_LENGTH}, | |
middleware::{from_fn, Next}, | |
response::{Html, IntoResponse, IntoResponseParts, Response}, | |
routing::get, | |
Router, body::{Full, self}, |
<NotepadPlus> | |
<UserLang name="Golang" ext="go" udlVersion="2.1"> | |
<!-- | |
NPP Syntax Highlight for Go | |
using most used color in NPP for Golang. | |
Author: blinksmith Version: 0.1.3 | |
Last tested in Notepad++ v7.5.9 | |
Quick start : | |
Method 1 |
import std.stdio: writefln; | |
import std.math : sqrt, log; | |
int popCount(int n) | |
{ | |
n -= (n >>> 1) & 0x55555555; | |
n = ((n >>> 2) & 0x33333333) + (n & 0x33333333); | |
n = ((n >> 4) & 0x0F0F0F0F) + (n & 0x0F0F0F0F); | |
return (n * 0x01010101) >> 24; |
I assume that you already created C++ Win32 project where you want to include SQLite.
amalgamation
source version of SQLite.Developer Command Prompt for VS ****
which is usually available at Start -> Programs -> Visual Studio **** -> Visual Studio Tools
.cl /c /EHsc sqlite3.c
lib sqlite3.obj
sqlite3.lib
to Linker -> Input -> Additional Dependencies
.