User:BulbaBot/Archive

From Bulbapedia, the community-driven Pokémon encyclopedia.
< User:BulbaBot
Revision as of 07:52, 20 March 2010 by BulbaBot (talk | contribs) (Created page with '{{#ifeq: {{FULLPAGENAME}}|User:BulbaBot/Archive|<span style="font-family:Monospace;">#include <iostream></span><br> <span style="font-family:Monospace;">using namespace std;</spa…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

#include <iostream>
using namespace std;

int main(){

int archiveno = 1;
int archives[archiveno];

cout << "Welcome to BulbaBot's talk page.\n";

//enter archive dates

archives[0] = U-1194463440 to U-1269050280;

cout << "Previous archives are below\n" << archives;

//get talk page size

int talksize;

cout << "Please enter talk page size in bytes.\n";
cin >> talksize;

//talksize should be less than 64 kilobytes

int talkkilo = talksize / 1024;
int talkperc = talkkilo / 64 * 100;

cout << "Talk page size is " << talkkilo << " kilobytes.";
if(talkkilo < 65) cout << "Percentage of talk page taken: " << talkperc;
else cout << "ERROR: OVERFLOW. PLEASE ARCHIVE TALK PAGE.";

}