🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: de.comp.lang.c++
Article #1886

wrap around abfragen/verhindern

#1886
From: Joerg Bornemann
Date: Sat, 23 Mar 1996 21:17
19 lines
539 bytes
Hallo!

Wie kann ich den wrap around von Variablen
vom Typ int in einer Schleife am besten abfragen?

Also...

int i,a;

for (i = 1; i < 200; i++)
{
        a = i*i*i;
        if wrap_around(a)
                continue;
}

cu Joerg
--
E-Mail: juri@compi.baltic.de
Technical Details
Message-ID: <65QI1FlrHvB@compi.baltic.de>
Path: arc1-ca.pugleaf.net!compi.baltic.de!juri

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!compi.baltic.de!juri
Date: 23 Mar 1996 22:17:00 +0100
From: juri@compi.baltic.de (Joerg Bornemann)
Newsgroups: de.comp.lang.c++
Message-ID: <65QI1FlrHvB@compi.baltic.de>
Subject: wrap around abfragen/verhindern
X-Newsreader: CrossPoint v3.1