ჩემი პირველი ნამუშევრები C++ ში

Posted: October 14, 2011 in C++ Project

// C++ მართკუთხედის ფართობი.cpp : main project file.

 

#include “stdafx.h”

#include <math.h>

#include “iostream”

 

using namespace System;

using namespace System::Threading;

using namespace std;

 

int main()

{

system(“title martkutxedis fartobis gamotvla by Jubo”);

system(“color 9”);

int jubo1;

int jubo2;

int jubopasuxi;

cout << “martkutxedis gverdi a= “;

cin >> jubo1;

cout << endl;

cout << “martkutxedis gverdi b= “;

cin >> jubo2;

cout << endl;

jubopasuxi = jubo1 * jubo2;

cout << jubopasuxi;

double s;

Console::WriteLine(L”    <<– martkutxedis fartobi”+s.ToString());

Thread::Sleep (55000);

return 0;

}

 

***

// Math.cpp : main project file.

 

#include “stdafx.h”

#include “iostream”

#include “conio.h”

using namespace std;

 

 

void main(){

int num1;

int num2;

int numAnswer;

cout << “ricxvi I: “;

cin >> num1;

cout << endl;

cout << “ricxvi II: “;

cin >> num2;

cout << endl;

numAnswer = num1 + num2;

cout << numAnswer;

 

_getch();

}

All projects:  http://allshares.ge/download.php?id=4AFE127C65

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / შეცვლა )

Twitter picture

You are commenting using your Twitter account. Log Out / შეცვლა )

Facebook photo

You are commenting using your Facebook account. Log Out / შეცვლა )

Google+ photo

You are commenting using your Google+ account. Log Out / შეცვლა )

Connecting to %s