#include %26lt;iostream%26gt;
#include %26lt;iomanip%26gt;
#include %26lt;string%26gt;
#include %26lt;cctype%26gt;
#include %26lt;ctime%26gt;
#include %26lt;cstdlib%26gt;
using namespace std;
// true if s1 is a prefix of s2, not case sensitive
bool prefix(const string%26amp; s1, const char* s2) {
for (int i=0;; ++i) {
if (i==int(s1.size()))
return true;
if (s2[i]==0 || tolower(s1[i])!=tolower(s2[i]))
return false;
}
}
// A Month represents a month and year, which prints as a calendar
class Month {
public:
Month(const string%26amp; m="", int y=0); // Defaults: this month and year
// m is the month name or prefix, not case sensitive
class Ambiguous {}; // Thrown if m matches %26gt;1 month name, e.g. "JU"
class Invalid {}; // Thrown if m matches no month name, e.g. "X"
void print(ostream%26amp; out) const; // Print a one month calendar to out
void add(int n) {now+=n;} // Add n months (may be negative)
private:
int now; // year * 12 + month (0=Jan, 11=Dec), e.g. 24001 means Feb. 2000
static con
Can someone change this c++ program into another c language like (printf,scanf) this is calendar program?
have u tried it yet
first try it urself and post the errors then after we will help ya
Reply:Yes, you may contact a C expert to convert it. Check websites like http://oktutorial.com/
Reply:its_tru_its_damm is right, first of all - you help yourself then ask from others.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment