Jump to content

devilirium

Member
  • Posts

    3
  • Joined

  • Last visited

Awards

This user doesn't have any awards

Contact Methods

  • Twitter
    devilirium

Profile Information

  • Gender
    Male
  • Location
    Hungary

devilirium's Achievements

  1. #include <stdio.h> void CalcTip(const float item1, const float tip15, const float tip18, const float tip20, float*tip1, float*tip2, float* tip3) { *tip1 = (item1 * tip15); *tip2 = (item1 * tip18); *tip3 = (item1 * tip20); } int main(void) { float tip1, tip2, tip3; CalcTip(0.2, 1, 2, 3, &tip1, &tip2, &tip3); printf("item1 = %f\t%f\t%f\t%f\n", 0.2, tip1,tip2,tip3); return 0; }
  2. while(true) { if (i == 0) { cout << "Have exceeded the limit... try later" << endl; break; // return -1 or handle the problem outside? } i = i - 1; cout << "Enter your password " ; getline(cin, input); if ( input == "P@ssw0rd") { cout << "In " << years << " years, $" << D << " deposited per month will grow to $" << S << endl; break; } else { cout << "incorrect, password! " << i <<" more try limit\n" << endl; } }
  3. Hey! I want to win the Excalibur, since I'm really interested about the brown switches I've already dealt with blues, but I don't feel comfortable typing on it, since it makes other people rather annoyed at the office and at home too (I'm a coder).
×