Results 1 to 21 of 21
Thread: C++
Hybrid View
-
15th May 2004 15:44 #1
++
. . . ++, ... .
:
, , 2000.
:
#include <iostream.h>
struct izp
{char ime[20],pi;
int D,M,G;
char klip[10],pk;}
izp s[20];
int i,n;
main()
{do
{cout<<"\n Broi izpulnitelq";
cin>>n;}
while(n<1||n>20);
for(i=0;i<n;i++)
{s[i].pi=s[i].ime[0];
cout<<"\n Ime na izpulnitelq";
cin>>s[i].pi;
do
{cout<<"\n Vuvedi godina";
cin>>s[i].G;}
while(s[i].G<1950||s[i].G>1970);
do
{cout<<"\n Vuvedi mesec";
cin>>s[i].M;}
while(s[i].M<1||s[i].M>12);
do
{cout<<"\n Vuvedi den";
cin>>s[i].D;}
while(s[i].D<1||s[i].D>31);
cout<<"\n klip";
s[i].pk=s[i].klip[0];
cin>>s[i].pk;
if(s[i].G>2000)
cout<<"\n"<<s[i].pk;}
return 0;}
1 , . , 3 ... ... ? . 17.05.04.
!: Destiny flying high above all. Destiny can't replace my life scary shadows of my past are alive. Destiny who cares as it turns around and I know that it descends with a smile.
-
15th May 2004 16:42 #2Mmmm, sessy!
Join Date: May:2003
Location:
Posts: 696
, ,
{
do
{
cout<<"\n Broi izpulnitelq";
cin>>n;
}
while(n<1||n>20);
for(i=0;i<n;i++)
{
s[i].pi=s[i].ime[0];
cout<<"\n Ime na izpulnitelq";
cin>>s[i].pi;
do
{
cout<<"\n Vuvedi godina";
cin>>s[i].G;
}
while(s[i].G<1950||s[i].G>1970);
do
{
cout<<"\n Vuvedi mesec";
cin>>s[i].M;
}
while(s[i].M<1||s[i].M>12);
do
{
cout<<"\n Vuvedi den";
cin>>s[i].D;
}
while(s[i].D<1||s[i].D>31);
cout<<"\n klip";
s[i].pk=s[i].klip[0];
cin>>s[i].pk;
if(s[i].G>2000)
cout<<"\n"<<s[i].pk;
}
return 0;
}
:
for(i=0;i<n;i++)
if(s[i].G>2000)
cout<<"\n"<<s[i].pk;
1950 1970. 2000... .
-
15th May 2004 16:49 #3
Re: ++
Originally posted by wenzdy
. . . ++, ... .
:
, , 2000.
:
#include <iostream.h>
struct izp
{char ime[20],pi;
int D,M,G;
char klip[10],pk;}
izp s[20];
int i,n;
main()
{do
{cout<<"\n Broi izpulnitelq";
cin>>n;}
while(n<1||n>20);
for(i=0;i<n;i++)
{s[i].pi=s[i].ime[0];
cout<<"\n Ime na izpulnitelq";
cin>>s[i].pi;
do
{cout<<"\n Vuvedi godina";
cin>>s[i].G;}
while(s[i].G<1950||s[i].G>1970);
do
{cout<<"\n Vuvedi mesec";
cin>>s[i].M;}
while(s[i].M<1||s[i].M>12);
do
{cout<<"\n Vuvedi den";
cin>>s[i].D;}
while(s[i].D<1||s[i].D>31);
cout<<"\n klip";
s[i].pk=s[i].klip[0];
cin>>s[i].pk;
if(s[i].G>2000)
cout<<"\n"<<s[i].pk;}
return 0;}
1 , . , 3 ... ... ? . 17.05.04.
!
:
char ime[20],pi;
pi character, cin, , , - member- G, 1950 1970, do...while ....
........In the long run, we re all dead
-
15th May 2004 16:58 #4
[bg]malyk oftopik .... [/bg] SingulusCorpora [bg], kakwo e twa ne]o deto koda w signaturata ti generira?[/bg]
-
15th May 2004 16:59 #5
... ... .... ... - , .

Last edited by wenzdy; 15th May 2004 at 17:08.
: Destiny flying high above all. Destiny can't replace my life scary shadows of my past are alive. Destiny who cares as it turns around and I know that it descends with a smile.
-
15th May 2004 17:14 #6
...
http://hardwarebg.com/forum/showthre...threadid=29755Originally posted by gkirilov
[bg]malyk oftopik .... [/bg] SingulusCorpora [bg], kakwo e twa ne]o deto koda w signaturata ti generira?[/bg]In the long run, we re all dead
-
15th May 2004 17:21 #7
Re: Re: ++
SingulusCorporaOriginally posted by SingulusCorpora
:
char ime[20],pi;
pi character, cin, , , - member- G, 1950 1970, do...while ....
........
int D,M,G te 2 a ?: Destiny flying high above all. Destiny can't replace my life scary shadows of my past are alive. Destiny who cares as it turns around and I know that it descends with a smile.
-
15th May 2004 17:30 #8
"CODE" . .
Code:#include <iostream.h> struct izp { char ime[20],pi; int D,M,G; char klip[10],pk; } izp s[20]; int i,n; main() { do { cout<<"\n Broi izpulnitelq"; cin>>n; } while(n<1||n>20); for(i=0;i<n;i++) { s[i].pi=s[i].ime[0]; cout<<"\n Ime na izpulnitelq"; cin>>s[i].pi; do { cout<<"\n Vuvedi godina"; cin>>s[i].G; } while(s[i].G<1950||s[i].G>1970); do { cout<<"\n Vuvedi mesec"; cin>>s[i].M; } while(s[i].M<1||s[i].M>12); do { cout<<"\n Vuvedi den"; cin>>s[i].D; } while(s[i].D<1||s[i].D>31); cout<<"\n klip"; s[i].pk=s[i].klip[0]; cin>>s[i].pk; if(s[i].G>2000) cout<<"\n"<<s[i].pk; } return 0; }
99 little bugs in the code, 99 little bugs...
Knock one down, and test it again, 100 little bugs in the cod...
-
15th May 2004 17:31 #9
Re: Re: Re: ++
#include <iostream.h>
struct izp
{
char ime[20],pi;
int D,M,G;
char klip[10],pk;
};
izp s[20];
int i,n;
main()
{
do
{
cout<<"\n Broi izpulnitelq";
cin>>n;
}
while(n<1||n>20);
for(i=0;i<n;i++)
{
s[i].pi=s[i].ime[0];
cout<<"\n Ime na izpulnitelq";
cin>>s[i].ime;
//
do
{
cout<<"\n Vuvedi godina";
cin>>s[i].G;
}
while(s[i].G<1950||s[i].G>1970);
//
do
{
cout<<"\n Vuvedi mesec";
cin>>s[i].M;
}
while(s[i].M<1||s[i].M>12);
//
do
{
cout<<"\n Vuvedi den";
cin>>s[i].D;
}
while(s[i].D<1||s[i].D>31);
//
cout<<"\n klip";
s[i].pk=s[i].klip[0];
cin>>s[i].klip;
if(s[i].G>2000)
cout<<"\n"<<s[i].klip;
}
return 0;
}
.In the long run, we re all dead
-
15th May 2004 17:38 #10
, .
/ ?
, .
.
#include <iostream.h>
struct izp
{
char ime[20];
int D,M,G;
char klip[10];
};
izp s[20];
int i,n;
main()
{
do
{
cout<<"\n Broi izpulnitelq ";
cin>>n;
}
while(n<1||n>20);
for(i=0;i<n;i++)
{
cout<<"\n Ime na izpulnitelq ";
cin>>s[i].ime;
do
{
cout<<"\n Vuvedi godina ";
cin>>s[i].G;
}
while(s[i].G<1950||s[i].G>2004);
do
{cout<<"\n Vuvedi mesec ";
cin>>s[i].M;}
while(s[i].M<1||s[i].M>12);
do
{cout<<"\n Vuvedi den ";
cin>>s[i].D;}
while(s[i].D<1||s[i].D>31);
cout<<"\n klip ";
cin>>s[i].klip;
}
for(i=0;i<n;i++)
{
if(s[i].G>2000)
cout<<"\n"<<s[i].klip;
}
return 0;
}, .
-
15th May 2004 17:41 #11
...
: Destiny flying high above all. Destiny can't replace my life scary shadows of my past are alive. Destiny who cares as it turns around and I know that it descends with a smile.
-
15th May 2004 17:54 #12
... , , 2000. ...... 1950 1970. , ... ?
SingulusCorpora ...: Destiny flying high above all. Destiny can't replace my life scary shadows of my past are alive. Destiny who cares as it turns around and I know that it descends with a smile.
-
15th May 2004 18:16 #13
- ... . !!!
:
#include <iostream.h>
struct izp
{
char ime[20],pi;
int D,M,G,K;
char klip[10],pk;
};
izp s[20];
int i,n;
main()
{
do
{
cout<<"\n Broi izpulnitelq";
cin>>n;
}
while(n<1||n>20);
for(i=0;i<n;i++)
{
s[i].pi=s[i].ime[0];
cout<<"\n Ime na izpulnitelq";
cin>>s[i].ime;
//
do
{
cout<<"\n Vuvedi godina";
cin>>s[i].G;
}
while(s[i].G<1950||s[i].G>1970);
//
do
{
cout<<"\n Vuvedi mesec";
cin>>s[i].M;
}
while(s[i].M<1||s[i].M>12);
//
do
{
cout<<"\n Vuvedi den";
cin>>s[i].D;
}
while(s[i].D<1||s[i].D>31);
//
cout<<"\n klip";
s[i].pk=s[i].klip[0];
cin>>s[i].klip;
do
{
cout<<"\n Vuvedi godina";
cin>>s[i].K;
}
while(s[i].K<2000||s[i].K>2003);
if(s[i].K>2000)
cout<<"\n"<<s[i].klip;
}
return 0;
}: Destiny flying high above all. Destiny can't replace my life scary shadows of my past are alive. Destiny who cares as it turns around and I know that it descends with a smile.
-
15th May 2004 23:06 #14
C++
. , ... ... . , .
:
.
1234, 12. 4 !
!Last edited by wenzdy; 15th May 2004 at 23:16.
: Destiny flying high above all. Destiny can't replace my life scary shadows of my past are alive. Destiny who cares as it turns around and I know that it descends with a smile.
-
16th May 2004 01:46 #15
-
16th May 2004 10:39 #16
3- 4- .
: Destiny flying high above all. Destiny can't replace my life scary shadows of my past are alive. Destiny who cares as it turns around and I know that it descends with a smile.
-
16th May 2004 11:58 #17...Code:
#include <stdio.h> #include <iostream.h> int x,i; char buffer[20]; main() { cin >>x; itoa(x, buffer); for(i=0;buffer[i] !='\0';i++) { if((i != 3) || (i !=4)) cout << buffer[i] } cout<<endl; }
-
16th May 2004 17:16 #18Mmmm, sessy!
Join Date: May:2003
Location:
Posts: 696
, , ?Originally posted by Smoky
...Code:#include <stdio.h> #include <iostream.h> int x,i; char buffer[20]; main() { cin >>x; itoa(x, buffer); for(i=0;buffer[i] !='\0';i++) { if((i != 3) || (i !=4)) cout << buffer[i] } cout<<endl; }
...
- :
for(int i=0; i<strlen(buffer); i++), .
, .
-
16th May 2004 23:50 #19Code:
if((i != 2) || (i !=3))
12.00 Silent Boost, debug
strlen() - ,
, , , 5 -
-
17th May 2004 00:02 #20
-
, :Code:if((i != 2) && (i !=3))
Code:{ char s[1000]; do { cout << "Enter a number >= 1000\n"; cin >> s; } while(atoi(s) < 1000); cout << s[0]; cout << s[1]; if (strlen(s) > 4) cout << &s[4]; }Last edited by monster; 17th May 2004 at 00:38.
-
18th May 2004 20:40 #21
wenzdy:
1. , . . , , .
2. main(). - , . - - .




Reply With Quote
R9 280,
7th May 2023, 21:28 in