Article View: pl.comp.lang.c
Article #310009c++ trudna języka czy to biblioteka była zła?
From: M.M.
Date: Wed, 18 Dec 2019 01:54
Date: Wed, 18 Dec 2019 01:54
13 lines
1590 bytes
1590 bytes
Zobaczcie u siebie co wyświetla ten program, bo u mnie
najpierw wyświetla 0 (słownie ZERO!!!!). A myślałem że
jak użyję szablonów to będzie bezpieczniej :(
#include <iostream>
#include <limits>
#include <climits>
int main() {
std::cout << std::numeric_limits<__int128>::digits << std::endl;
std::cout << sizeof(__int128) * CHAR_BIT << std::endl;
return 0;
}
Technical Details
Message-ID:
<e3f3579d-595f-4a2a-bbc7-a200dfccd756@googlegroups.com>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!wsisiz.edu.pl!goblin3!goblin.stu.neva.ru!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!g89no1971065qtd.0!news-out.google.com!w29ni1859qtc.0!nntp.google.com!g89no1971057qtd.0!postnews.google.com!google-groups.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
X-Received: by 2002:ac8:7b45:: with SMTP id m5mr165509qtu.360.1576634069664; Tue, 17 Dec 2019 17:54:29 -0800 (PST) X-Received: by 2002:a25:ae9e:: with SMTP id b30mr1095039ybj.462.1576634069400; Tue, 17 Dec 2019 17:54:29 -0800 (PST) Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!wsisiz.edu.pl!goblin3!goblin.stu.neva.ru!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!g89no1971065qtd.0!news-out.google.com!w29ni1859qtc.0!nntp.google.com!g89no1971057qtd.0!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: pl.comp.lang.c Date: Tue, 17 Dec 2019 17:54:29 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=178.37.231.75; posting-account=xjvq9QoAAAATMPC2X3btlHd_LkaJo_rj NNTP-Posting-Host: 178.37.231.75 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <e3f3579d-595f-4a2a-bbc7-a200dfccd756@googlegroups.com> Subject: c++ trudna języka czy to biblioteka była zła? From: "M.M." <mmarszik@gmail.com> Injection-Date: Wed, 18 Dec 2019 01:54:29 +0000 Lines: 13 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit