Skip to main content

Posts

Showing posts from March, 2020

Sam's year debugger in C++

Programming is fun if you have the passion and time for it.  I became bored,  quarantined in my place,  scripted some codes in C++.  Only if they would come to reality. If you are aware of Artificial Intelligence,  this may entice you.  Let's have some fun fellow geeks,  copy and run in your devices.  The good thing is that you can even run it on your Android device but of course with a special editor app called CppDroid .  Leave a comment or question in the comments section below. #include <iostream> #include <string.h> using namespace std; int main() { int year,future;     char reb,skip;     string user;     cout<<"Enter first name: ";     getline(cin,user);    cout<<endl<<endl<<"Welcome to Sam's year debugger"<<endl; cout<<"You are logged in as "<<user<<endl;     yenter:     cout<<endl<<"Enter current year: "; cin>>year;     if(year!=2020