Please give me list of 10 common irregular verbs sorted from “a” to “z” beginning as "a"…
- User
Please give me list of 10 common irregular verbs sorted from “a” to “z” beginning as "a" in format C++:
#define PRESENT_SIMPLE 0 #define PAST_SIMPLE 1 #define FUTURE_SIMPLE 2 #define PRESENT_CONTINUOUS 3 #define PAST_CONTINUOUS 4 #define FUTURE_CONTINUOUS 5 #define PRESENT_PERFECT 6 #define PAST_PERFECT 7 #define FUTURE_PERFECT 8 #define PERFECT_CONTINUOUS_TENSES 9 #define PRESENT_PERFECT_CONTINUOUS 10 #define PAST_PERFECT_CONTINUOUS 11 #define FUTURE_PERFECT_CONTINUOUS 12
struct stword { string *word; int qu; bool b; void init(){word=new string[qu];} } struct stverb { word verb; bool ir; }; Where word is array of strings for each verb tense, b is 0 if verb can be applied to humans or 1 if can not ir is 0 if verb is irregular or 1 and 0 if else qu is quantity of “word” strings=quantity of “to” strings, For example, stverb ir_verbs[10]; ir_verbs[0].ir=0; ir_verbs[0].verb.qu_tenses=3; ir_verbs[0].verb.init(); ir_verbs[0].verb.word[PRESENT_SIMPLE]=“do”; ir_verbs[0].verb.word[PAST_SIMPLE]=“did”; ir_verbs[0].verb.word[FUTURE_SIMPLE]=“done”; ir_verbs[0].verb.b=0;//can be applied to humans suach as “He do”
Please continue in C++ style using structures stverb
- Assistant
stverb ir_verbs[10];
// irregular verb - bring ir_verbs[0].ir=0; ir_verbs[0].verb.qu_tenses=3; ir_verbs[0].verb.init(); ir_verbs[0].verb.word[PRESENT_SIMPLE]="bring"; ir_verbs[0].verb.word[PAST_SIMPLE]="brought"; ir_verbs[0].verb.word[FUTURE_SIMPLE]="brought"; ir_verbs[0].verb.b=1;
// irregular verb - come ir_verbs[1].ir=0; ir_verbs[1].verb.qu_tenses=3; ir_verbs[1].verb.init(); ir_verbs[1].verb.word[PRESENT_SIMPLE]="come"; ir_verbs[1].verb.word[PAST_SIMPLE]="came"; ir_verbs[1].verb.word[FUTURE_SIMPLE]="come"; ir_verbs[1].verb.b=1;
// irregular verb - do ir_verbs[2].ir=0; ir_verbs[2].verb.qu_tenses=3; ir_verbs[2].verb.init(); ir_verbs[2].verb.word[PRESENT_SIMPLE]="do"; ir_verbs[2].verb.word[PAST_SIMPLE]="did"; ir_verbs[2].verb.word[FUTURE_SIMPLE]="done"; ir_verbs[2].verb.b=0;
// irregular verb - eat ir_verbs[3].ir=0; ir_verbs[3].verb.qu_tenses=3; ir_verbs[3].verb.init(); ir_verbs[3].verb.word[PRESENT_SIMPLE]="eat"; ir_verbs[3].verb.word[PAST_SIMPLE]="ate"; ir_verbs[3].verb.word[FUTURE_SIMPLE]="eaten"; ir_verbs[3].verb.b=1;
// irregular verb - fall ir_verbs[4].ir=0; ir_verbs[4].verb.qu_tenses=3; ir_verbs[4].verb.init(); ir_verbs[4].verb.word[PRESENT_SIMPLE]="fall"; ir_verbs[4].verb.word[PAST_SIMPLE]="fell"; ir_verbs[4].verb.word[FUTURE_SIMPLE]="fallen"; ir_verbs[4].verb.b=1;
// irregular verb - go ir_verbs[5].ir=0; ir_verbs[5].verb.qu_tenses=3; ir_verbs[5].verb.init(); ir_verbs[5].verb.word[PRESENT_SIMPLE]="go"; ir_verbs[5].verb.word[PAST_SIMPLE]="went"; ir_verbs[5].verb.word[FUTURE_SIMPLE]="gone"; ir_verbs[5].verb.b=1;
// irregular verb - have ir_verbs[6].ir=0; ir_verbs[6].verb.qu_tenses=3; ir_verbs[6].verb.init(); ir_verbs[6].verb.word[PRESENT_SIMPLE]="have"; ir_verbs[6].verb.word[PAST_SIMPLE]="had"; ir_verbs[6].verb.word[FUTURE_SIMPLE]="had"; ir_verbs[6].verb.b=0;
// irregular verb - know ir_verbs[7].ir=0; ir_verbs[7].verb.qu_tenses=3; ir_verbs[7].verb.init(); ir_verbs[7].verb.word[PRESENT_SIMPLE]="know"; ir_verbs[7].verb.word[PAST_SIMPLE]="knew"; ir_verbs[7].verb.word[FUTURE_SIMPLE]="known"; ir_verbs[7].verb.b=1;
// irregular verb - run ir_verbs[8].ir=0; ir_verbs[8].verb.qu_tenses=3; ir_verbs[8].verb.init(); ir_verbs[8].verb.word[PRESENT_SIMPLE]="run"; ir_verbs[8].verb.word[PAST_SIMPLE]="ran"; ir_verbs[8].verb.word[FUTURE_SIMPLE]="run"; ir_verbs[8].verb.b=1;
// irregular verb - see ir_verbs[9].ir=0; ir_verbs[9].verb.qu_tenses=3; ir_verbs[9].verb.init(); ir_verbs[9].verb.word[PRESENT_SIMPLE]="see"; ir_verbs[9].verb.word[PAST_SIMPLE]="saw"; ir_verbs[9].verb.word[FUTURE_SIMPLE]="seen"; ir_verbs[9].verb.b=1;