🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #9291

DOS-programma

#9291
From: Dietmar Hertsen
Date: Fri, 03 May 2002 15:08
53 lines
2507 bytes
/* Wilt er iemand dit compillen naar een DOS-programma (C++). THX, het
is zeer dringend. */

#include <iostream>
#include <string>

using std::cout;
using std::cin;

int main() {
	const int passI = 157482585;
	const string passS = "he1dfo4ge";
	int tempI;
	int tempI2 = 0;
	string tempStr;
	bool tempB;
	cout << "Welkom bij de Windows opstartmodus. \nEnkele randapparaten
zijn niet aangesloten waardoor de computer \nmisschien kan crashen.
Wenst u dit probleem te verhelpen, \nvolg dan alle aanwijzingen." <<
endl;
	while (true) {
		again: cout << "Geef het serienummer van uw computer in: ";
		cin >> tempI;
		if (tempI == passI){
			cout << "Bedankt, u kunt nu verder gaan." << endl;
			goto breakpoint;
		} else {
			cout << "Uw serienummer wordt nagekeken." << endl;
			system("PAUSE");
			while ( tempI2 < tempI ){
				++tempI2;
				cout << tempI2 << " van " << tempI << endl;
			}
			cout << "Sorry uw serienummer werd niet aanvaard." << endl;
			cout << "Geef een willekeurig letterwoord in (geen spaties): ";
			cin >> tempStr;
			if (tempStr == passS){
				cout << "Bedankt, u kunt nu verder gaan." << endl;
				goto breakpoint;
			} else {
				cout << "Sorry, uw letterwoord bevat spaties." << endl;
				cout << "We beginnen de cyclus opnieuw" << endl;
				goto again;
			}
		}
	}
	breakpoint: return 0;
}
-- 
PENTIUM = Produces Erroneous Numbers Thru Incorrect Understanding of
Math
*	MSN dhertsen_2@hotmail.com		ICQ 157482585
*	http://www.sphosting.com/dietmar
Technical Details
Message-ID: <3CD2A7DD.6210A9BF@pandora.be>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.online.be!newsfeeds.belnet.be!news.belnet.be!ossa.telenet-ops.be!afrodite.telenet-ops.be.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fcea4,99df1730abfb609a,start
X-Google-Attributes: gidfcea4,public
X-Google-ArrivalTime: 2002-05-03 08:08:40 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.online.be!newsfeeds.belnet.be!news.belnet.be!ossa.telenet-ops.be!afrodite.telenet-ops.be.POSTED!not-for-mail
Message-ID: <3CD2A7DD.6210A9BF@pandora.be>
From: Dietmar Hertsen <dietmar.hertsen@pandora.be>
X-Mailer: Mozilla 4.72 [en] (Win98; I)
X-Accept-Language: nl
MIME-Version: 1.0
Newsgroups: be.comp.programming
Subject: DOS-programma
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 53
Date: Fri, 03 May 2002 15:08:38 GMT
NNTP-Posting-Host: 213.224.87.27
X-Complaints-To: abuse@telenet.be
X-Trace: afrodite.telenet-ops.be 1020438518 213.224.87.27 (Fri, 03 May 2002 17:08:38 MET DST)
NNTP-Posting-Date: Fri, 03 May 2002 17:08:38 MET DST
Organization: Telenet Internet