Jump to content

Oklah

Members
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

10 Good

About Oklah

  • Rank
    Registered user
  • Birthday 01/02/1995

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Oklah

    [Easy] Algo challenge #4

    #include <iostream> using namespace std; int h,m; char O[11][100] = {"ten", "twenty", "thirty", "forty", "fifty", "sixty", "seventy", "eichty", "ninety"}; char M[19][150] = {"one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "eleven", "twelve", "thirteen", "fourteen", "fifteen", "sixteen", "seventeen", "eighteen", "nineteen"}; char A[2][12] = {"quarter", "half"}; void trans() { if(m==0) cout<<O[h-1]<<" o'clock"; else if(m==1) cout<<M[m-1]<<" minute "<<"past "<<M[h-1]; else if(m>1 && m<20 && m!= 15) cout<<M[m-1]<<" minutes "<<"past "<<M[h-1]; else if(m==15) cout<<A[0]<<" minutes "<<"past "<<M[h-1]; else if(m==30) cout<<A[1]<<" minutes "<<"past "<<M[h-1]; else if(m==45) cout<<A[0]<<" minutes "<<"past "<<M[h-1]; else{ cout<<O[m/10%10-1]<<" "<<M[m%10-1]<<" minutes "<<"past "<<M[h-1]; } } int main() { do{ cout<<"H = "; cin>>h; cout<<"M = "; cin>>m; }while(h<0 || h>12 || m<0 || m>60); trans(); return 0; }
  2. Salut, dupa cum zice si titlul, cum pot afla hostul de la o baza de date? Adica am numele, parola si numele bazei de date dar nu stiu hostul..
  3. Oklah

    Chestii moca de pe themeforest.net

    D?-mi ?i mie Contact Form-ul te rog
×