Results 1 to 8 of 8
Thread: C++
Hybrid View
-
9th July 2007 23:08 #1Registered User
Join Date: Jul:2007
Location: Goce Delchev
Posts: 1
C++
!
++. 10 Xi Yj. g:++=0. , g?
:
#include <iostream.h>
float a,b,c;//globalni promenlivi
cout << "vavedete stoinostite na pravata linia";
cin >>a>>b>>c;
funtion pr1( float q, float w)
{
if ((a*q+c*w+c)==0) return 0
else return 1}
int main()
{int i,j;
float X[10][2];
for(i=0;i<10;i++)
cout << "Vavedete kordinatite na tochkite";
cin >> X[i][0]<<X[i][1]
for(i=0;i<10;i++)
{
if (pr1(X[i][0],X[i][1])==0) cout << "tochka s
kordinati"<< X[i][0]<<','<<X[i][1]<<"leji na pravata
\n";
else cout << "tochka s kordinati"<<
X[i][0]<<','<<X[i][1]<<" ne leji na pravata \n";
}
}
, . ..
Smile
-
10th July 2007 00:23 #2';' -, gCode:
if ((a*q+c*w+c)==0) return 0 else return 1}
, cin/cout ?
indent- , -Last edited by sasoh; 10th July 2007 at 00:39.
-
10th July 2007 10:02 #3
Pascal
Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others
-
10th July 2007 18:05 #4
. , 10 "Vavedete kordinatite na tochkite". " , " "" " " , . .
icaci, .
dit: ++ : (), , . , ,Fujistu Lifebook E756 | Core i7-6500U / 400MHz-3.1GHz | 8 GB DDR4-2133 | Samsung PM871 / 256 GB SSD | 15" 1920x1080 | Manjaro Linux + kernel 4.19
-
10th July 2007 18:10 #5
main
cout << "vavedete stoinostite na pravata linia";
cin >>a>>b>>c;
int main void main "warning funciton not return a value". ,
funtion pr1( float q, float w) int pr1( float q, float w)
j , .
for(i=0;i<10;i++)
cout << "Vavedete kordinatite na tochkite";
cin >> X[i][0]<<X[i][1]
cout . ; cin, cout for .Last edited by morgoth_srs; 10th July 2007 at 18:18.
-
10th July 2007 23:59 #6Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others

-
11th July 2007 00:24 #7
-
11th July 2007 00:40 #8Registered User
Join Date: Oct:2003
Location:
Posts: 4,317
- . , , . , -.
Windows :
http://msdn.microsoft.com/vstudio/express/
, , , - , .




Reply With Quote

Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in