!  ,  ,

- C++

> > >

 
C++ Unresolved external http://www.cyberforum.ru/cpp-beginners/thread625744.html
#include <iostream.h> #include <iomanip.h> #include <conio.h> #include <math.h> class Hex { unsigned char hex; unsigned int dec; int v; //
C++ , #include<stdio.h> #include<windows.h> #include<conio.h> #include <iostream.h> #include<string.h> #include<ctype.h> struct zap { char marka; char god; http://www.cyberforum.ru/cpp-beginners/thread625718.html
C++
, . , : sterling, ...
C++
, , .
C++ http://www.cyberforum.ru/cpp-beginners/thread625659.html
. ++ . !):wall: 47 , , ...
C++ ....... .... #include <stdio.h> #include <iostream> #include <conio.h> #include <math.h> using...

mingebag
0 / 0 / 0
: 19.07.2012
: 5

- C++

19.07.2012, 02:42. 909. 11
( )

"++ . 4- " Dev C++
:
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
// FunctionDemo  äåìî*ñòð*öèÿ èñïîëüçîâ**èÿ
// ôó*êöèé. Â*óòðå**èé öèêë
// ïðîãð*ììû îôîðìëå* ê*ê
// îòäåëü**ÿ ôó*êöèÿ
#include <stdio.h>
#include <iostream>
// sumSequence  ñóììèðóåò ïîñëåäîâ*òåëü*îñòü
// ÷èñåë, ââåäå**ûõ ñ êë*çè*òóðû, ïîê*
// ïîëüçîâ*òåëü *å ââåäåò îòðèö*òåëü*îå
// ÷èñëî. Âîçâð*ù*åò ñóììó ââåäå**ûõ ÷èñå
int sumSequence(void)
{
 // áåñêî*å÷*ûé öèêë
 int accumulator = 0;
 for (;;)
 {
 // ââîä ñëåäóþùåãî ÷èñë*
 int value = 0;
 cout << "Ââåäèòå ñëåäóþùåå ÷èñëî: ";
 cin >> value;
 // åñëè î*î îòðèö*òåëü*îå...
 if (value < 0)
 {
 // ...òîãä* âûõîäèì èç öèêë*
 break;
 // ...è**÷å äîá*âëÿåì ÷èñëî ê
 // ïåðåìå**îé accumulator
 accumulator = accumulator + value;
 // âîçâð*ù*åì ç**÷å*èå ñóììû
 return accumulator;
 }
 int main(int arg, char* pszArgs[]);
 cout << "Ýò* ïðîãð*ìì* ñóììèðóåò ïîñëåäîâ*òåëü*îñòè\n"
 << "÷èñåë. Ê*æä*ÿ ïîñëåäîâ*òåëü*îñòü\n"
 << "ç*ê**÷èâ*åòñÿ îòðèö*òåëü*ûì ÷èñëîì.\n"
 << "Ââîä ñåðèé ç*âåðø*åòñÿ ââîäîì \n"
 << "äâóõ îòðèö*òåëü*ûõ ÷èñåë ïîäðÿä \n" ;
 // ñóììèðóåì ïîñëåäîâ*òåëü*îñòè ÷èñåë...
 int accumulatedValue;
 do
 { 
 // ñóììèðóåì ïîñëåäîâ*òåëü*îñòè ÷èñåë,
 // ââåäå**ûõ ñ êë*âè*òóðû
 cout << "\nÂâåäèòå ñëåäóþùóþ ïîñëåäîâ*òåëü*îñòü\n";
 accumulatedValue = sumSequence();
 // âûâîä îáùåé ñóììû ** ýêð**
    cout << "\n Îáù*ÿ ñóìì* ð*â** "
         << accumulatedValue
         << "\n";
 // ...ïîê* âîçâð*ù*åì*ÿ ñóìì* *å ð*â**
 } while (accumulatedValue != 0);
 cout << "complited\n" ;
 return 0 ;
 
}}
2 :
19 `cout' undeclared (first use this function)
20 `cin' undeclared (first use this function)
#include <iostream> ( #include <iostream.h>) .
0
? .
 
- , ,
-
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.