They’re really desperate to ingrain AI into society hoping to tug the heart strings of public to jump unto the boat of destruction to humanity’s individualism.
Isn’t it so sweet Microsoft after so many years of neglect, they admit to these issues in Windows lately? Doesn’t this just make you wanna run out and meet them halfway to give them a warm hug only? Just gives us this warm fuzzy feeling thinking about it.
/s
Question
showlow
Can anyone with experience in C help me convert this code?
#include <iostream>
using namespace std;
int main()
{int m,d,y;
cout<<"Enter month: ";
cin>>m;
cout<<"Enter day: ";
cin>>d;
cout<<"Enter year: ";
cin>>y;
cout<<"The day after "<<m<<"/"<<d<<"/"<<y<<" is: ";
d++;
if(d>30)
{d=1;
m++;
if(m>12)
{m=1;
y++;
}
}
cout<<m<<"/"<<d<<"/"<<y<<endl;
system("pause");
return 0;
}
Link to comment
https://www.neowin.net/forum/topic/1072887-converting-c-to-c/Share on other sites
5 answers to this question
Recommended Posts