,   CyberForum.ru

- C++


C++ Crash (access violation) http://www.cyberforum.ru/cpp-beginners/thread669626.html
: http://acm.timus.ru/problem.aspx?space=1&num=1313 p.s. , .. : #include <iostream> #include <vector> using namespace std;
C++ ? void Func(const A &a = A(0, 0, 0)) { } void Func(A a = A(0, 0, 0)) http://www.cyberforum.ru/cpp-beginners/thread669617.html
C++
#include <stdio.h> #include <conio.h> #include <stdlib.h> #include <locale.h> int i; int fact (int n){ if ( n<1 ) return 1; else return n*fact(n-1);
C++
, ( 1 ). ?? : vector <string> strV; string a; strV = f; strV = k; strV = l;
C++ JPEG http://www.cyberforum.ru/cpp-beginners/thread669598.html
.jpg, ( !) ???
C++ , "" , ! ++ Builder XE 2 3. , 3- . , , , "" , , ...

JlightenDev_C++
61 / 61 / 7
: 12.08.2012
: 150
12.10.2012, 19:11    
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
#include <iostream>
#include <conio.h>
 
using namespace std;
 
/* Í*ïèøèòå ïðîãð*ììó, êîòîð*ÿ ç*ïð*øèâ*åò øèðîòó â ãð*äóñ*õ, ìè*óò*õ è
ñåêó*ä*õ, ïîñëå ÷åãî îòîáð*æ*åò øèðîòó â äåñÿòè÷*îì ôîðì*òå.  îä*îé ìè*óòå
60 óãëîâûõ ñåêó*ä, * â îä*îì ãð*äóñå 60 óãëîâûõ ìè*óò; ïðåäñò*âüòå ýòè
ç**÷å*èÿ ñ ïîìîùüþ ñèìâîëè÷åñêèõ êî*ñò**ò. Äëÿ ê*æäîãî ââîäèìîãî ç**÷å*èÿ
äîëæ** èñïîëüçîâ*òüñÿ îòäåëü**ÿ ïåðåìå***ÿ. Ðåçóëüò*ò âûïîë*å*èÿ
ïðîãð*ììû äîëæå* âûãëÿäåòü ñëåäóþùèì îáð*çîì:
Enter a latitude in degrees, minutes, and seconds:
First, enter the degrees: 37
Next, enter the minutes of arc: 51
Finally, enter the seconds of arc: 19
37 degrees, 51 minutes, 19 seconds = 37.8553 degrees  */
int main(){
    setlocale(LC_ALL, "Russian") ;
        float  deg, min, sec;
    cout << "Ââåäèòå øèðîòó â ãð*äóñ*õ, ìè*óò*õ è ñåêó*ä*õ\n" ;
    cout << "Ââåäèòå ãð*äóñû: " ;
    cin >> deg;
    cout <<  "Ââåäèòå ìè*óòû:  " ; //1 deg = 60 min = 3600 sec
    cin >> min;
    cout << "Ââåäèòå ñåêó*äû:  " ;
    cin >> sec;
    float h = (deg + min/60 + sec/3600);
    cout << deg << " degrees, " << min << " minutes, " << sec << " seconds = " << h; 
    
    getch();
    return 0;
}
 
: 05:20. GMT +3.
- , ,
-
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
@Mail.ru