+
1 3 123
1 10 21
  1. #1
    Simbion       Simbion
    21.01.2007
    44
    ()
    0
    : 0 (: 0).

     Visual Basic? Help Plzzzzzz

    , ( , (((
    , . : , , 400 4, 100. !!! !!

  2. #2
    morskaya_svinka       morskaya_svinka
    26.12.2006
    1,182
    ()
    0
    : 0 (: 0).

     Re: Visual Basic? Help Plzzzzzz

    - . .
    , - !

  3. #3
    Mirage     Mirage       Mirage
    14.01.2007
    1,252
    ()
    0
    : 0 (: 0).

     Re: Visual Basic? Help Plzzzzzz

    ... ... .
    . .
    :
    : , ?
    :
    , , .

  4. #4
    Simbion       Simbion
    21.01.2007
    44
    ()
    0
    : 0 (: 0).

     Re: Visual Basic? Help Plzzzzzz

    Mirage
    ...
    , 132 , , 23 , . , ...

  5. #5
    Ektomorf    Ektomorf    Ektomorf      Ektomorf
    16.03.2007
    .
    635
    ()
    0
    : 0 (: 0).

     Re: Visual Basic? Help Plzzzzzz

    Simbion
    , ( , (((
    , . : , , 400 4, 100. !!! !!
    , 2 . .
    #410257823.
    P.S. 11.04.2007 17:00 18.00. .

    1
    P.P.S .

  6. #6
    Simbion       Simbion
    21.01.2007
    44
    ()
    0
    : 0 (: 0).

     Re: Visual Basic? Help Plzzzzzz

    ! ?

  7. #7
    andryv       andryv
    02.11.2006
    188
    ()
    0
    : 0 (: 0).

     Re: Visual Basic? Help Plzzzzzz

    Simbion
    400 4, 100
    .. .... 400 100?

    be smile .... always

  8. #8
    Simbion       Simbion
    21.01.2007
    44
    ()
    0
    : 0 (: 0).

     Re: Visual Basic? Help Plzzzzzz

    andryv
    .. .... 400 100?
    , , . 100, 400

  9. #9
    Simbion       Simbion
    21.01.2007
    44
    ()
    0
    : 0 (: 0).

     Re: Visual Basic? Help Plzzzzzz

    !!! ?

  10. #10
    BuXTeR       BuXTeR
    14.02.2007
    133
    ()
    0
    : 0 (: 0).

     Re: Visual Basic? Help Plzzzzzz

    , .. , Visual Basic ( - ). ?

    10
    :
    :
    #include "stdafx.h"
    #include <iostream>
    #include <conio.h>
    using namespace std;
    
    int isVisocos(int year)
    {
    	return(!(year%4));
    }
    void main()
    {
    	int daysInMonth[12]={31,28,31,30,31,30,31,31,30,31,30,31};
    	while(1)
    	{
    		system("cls");
    		int day=0,month=0,year=0,dayNumber=0;
    		cout<<"Enter day: ";
    		cin>>day;
    		cout<<"Enter month: ";
    		cin>>month;
    		cout<<"Enter year: ";
    		cin>>year;
    
    		if((day>daysInMonth[month-1]&&!(isVisocos(year)&&month==2&&day==29))||(day<1||month<1||month>12||year<0))
    			cout<<"Incorrect date"<<endl;
    		else
    		{
    			for(int i=0;i<month-1;i++)
    			{
    				dayNumber+=daysInMonth[i];
    			}
    			dayNumber+=day;
    			if(isVisocos(year)&&month>2) dayNumber++;
    			cout<<"Day number of date "<<day<<"."<<month<<"."<<year<<" is "<<dayNumber<<endl;
    		}
    		cout<<"Press any key to continue..."<<endl;
    		getch();
    	}
    }
    3
    , .. isVisocos:
    :
    int isVisocos(int year)
    {
    	if(year%4==0&&year%100==0&&year%400!=0)
    		return 1;
    	else
    		return 0;
    }
    BuXTeR; 02.05.2007 02:47. :