Sei sulla pagina 1di 3

:

#include "stdafx.h" #include <iostream> #include<math.h> using namespace std;

double NerqnadziqiHashvum(double (ej1), int(ej2)) { return sqrt((ej1*ej2)+(ej2*ej2)); } int _tmain(int argc, _TCHAR* argv[]) { cout<<"Mutqagrel ejery"<<endl; int a,b; while(cin>>a>>b) { cout<<"Nerqnadziqy havasar e"<<NerqnadziqiHashvum(a,b); cout <<endl; } return 0; }

#include "stdafx.h" #include <iostream> #include<math.h> using namespace std;

double GcajinHavArmat(double (gorc1),

double(gorc2))

{ return gorc2/gorc1; } int _tmain(int argc, _TCHAR* argv[]) {int a,b; cout<<"Mutqagrel gcajin havasarman gorcakicnery"<<endl; while(cin>>a>>b) cout<<"Gcajin Havasarman armaty klini"<<GcajinHavArmat(a,b)<<endl; return 0; }

// DursBerelShabatvaOrery.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> using namespace std; void ShowWeekDey(int DeyNoumber) { switch (DeyNoumber) { case 1: { cout<<"Mondey"<<endl; break; } case 2: { cout<<"Tuesday"<<endl; break; } case 3: { cout<<"Thursday"<<endl; break; } case 4: { cout<<"Wednesday"<<endl; break; } case 5: { cout<<"Friday"<<endl; break; } case 6: { cout<<"Saturday"<<endl; break; } case 7: { cout<<"Sunday"<<endl; break; } int _tmain(int argc, _TCHAR* argv[]) { int day; while(cin>>day) { cout<<"Show Weet Day"<<endl; ShowWeekDey(day);

cout<<endl; } return 0; }
1>d:\lessons\karucum\dursberelshabatvaorery\dursberelshabatvaorery\dursberelshabatvaorery.cpp(53) : error C2601: 'wmain' : local function definitions are illegal 1> d:\lessons\karucum\dursberelshabatvaorery\dursberelshabatvaorery\dursberelshabatvaorery.cpp(13): this line contains a '{' which has not yet been matched 1>d:\lessons\karucum\dursberelshabatvaorery\dursberelshabatvaorery\dursberelshabatvaorery.cpp(65) : fatal error C1075: end of file found before the left brace '{' at 'd:\lessons\karucum\dursberelshabatvaorery\dursberelshabatvaorery\dursberelshabatvaorery.cpp(13)' was matched 1>Build log was saved at "file://d:\lessons\karucum\DursBerelShabatvaOrery\DursBerelShabatvaOrery\Debug\BuildLog.htm" 1>DursBerelShabatvaOrery - 2 error(s), 0 warning(s) ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

Potrebbero piacerti anche