,  ,

- C++

> > >

 
C++ ( ) http://www.cyberforum.ru/cpp-beginners/thread823573.html
: ( ) ...
C++ error LNK2019: "public: __thiscall Vector<int>::Vector<int>(void)" (?0?$Vector@H@@QAE@XZ) _main //Vector.h #include <iostream> #include <Windows.h> #include <climits> #include <vector> #include <stdlib.h> #include <fstream> #include <string> #include <math.h>... http://www.cyberforum.ru/cpp-beginners/thread823570.html
C++
4 4
C++
1...10 0 40 1...10 m, m<10 ...
C++ ? http://www.cyberforum.ru/cpp-beginners/thread823534.html
( , - ), #include <iostream> #include <ctime> #include <cstdlib>...
C++ : , "". . . #include <iostream> #include...

AL78
0 / 0 / 0
: 28.03.2013
: 13

- C++

31.03.2013, 12:10. 220. 0
( )

, , !!!!

10 . , : , .
: ( 5 ), ( 20 ), . ( ), ( ). : , 20000 . 100 .
:
C
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#include <stdio.h>
#include <conio.h>
#include<windows.h>
#include <locale.h>
 
struct Product
{
    char ShifProd[5];   
    char NameProd[20];  
    double Price;
    int Number;
};
 
int main()
{
    setlocale(0,"Russian");
    Product a[100];
    int n = 0,op;
    do
    {
        puts("############################");
        puts("#  (1) Äîá*âèòü òîâ*ð      #");
        puts("#  (2) Ïîê*ç*òü ñïèñîê.    #");
        puts("#  (0) Âûõîä.              #");
        puts("############################");
        do op = getch() - '0';
        while(op < 0 || op > 2);
        switch(op)
        {
            case 1:{
                system("cls");
                fflush(stdin);
                printf("Ââåäèòå øèôð òîâ*ð*: \n ");
                gets(a[n].ShifProd);
                printf("Ââåäèòå **èìå*îâ**èå òîâ*ð*: \n ");
                gets(a[n].NameProd);
                printf("Ââåäèòå öå*ó òîâ*ð* (â ðóá.): \n ");
                scanf("%lf",&a[n].Price);
                printf("Ââåäèòå êîëè÷åñòâî òîâ*ð*: \n ");
                scanf("%d",&a[n].Number);
                n++;
                system("cls");
                }
                break;
                case 2:{
                        system("cls");
                        if(n == 0) puts("Â ñïèñêå *åò ç*ïèñåé.");
                        else{
                            puts("###############################################################################");
                            puts("# Øèôð#       Í*èìå*îâ**èå #         Öå** #        Êîë-âî #"); 
                            puts("###############################################################################");
                            for(int i = 0; i < n; i++){
                                printf("#%5s #%20s #%14lf #%15d #",a[i].ShifProd,a[i].NameProd,a[i].
                                Price, a[i].Number);
                                puts("#");
                            }
                            puts("###############################################################################");
                        }
                        system("pause");
                        system("cls");
                    }break;
                }
 
    }while(op !=0);
        return 0;
}
0
? .
 
- , ,
-
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
@Mail.ru