Μαθηματικός Posted January 23, 2011 Posted January 23, 2011 #include <iostream.h> int main() { int x = 5; int y = 7; cout << x + y; cout << x * y; system("pause"); return 0; } to metaglotizw kai emfanizete 1235...dld 5 +7 = 12 kai 7*5 35..ok den lew...ala pos tha to kanw na emfanizete prwta to 12 kai stin katw sira to 35? gt den fenete etsi oraia....dld se diaforetiki sira.
douga Posted January 23, 2011 Posted January 23, 2011 xrhsimopoihse to <<endl; gia na paei apo katw gia thn akriveia to programma grafete #include <iostream> #include <math> main() { int x=5; int y=7; cout<<(x+y)<<endl; cout<<(x*y)<<endl; int delay; cin>>delay; } xrhsimopoiw #include <iostream> epeidh douleuw se windows
Μαθηματικός Posted January 23, 2011 Author Posted January 23, 2011 xrhsimopoihse to <<endl; gia na paei apo katw gia thn akriveia to programma grafete #include <iostream> #include <math> main() { int x=5; int y=7; cout<<(x+y)<<endl; cout<<(x*y)<<endl; int delay; cin>>delay; } xrhsimopoiw #include <iostream> epeidh douleuw se windows ayta ti ine? int delay; cin>>delay; ine anagea?
douga Posted January 23, 2011 Posted January 23, 2011 ayta einai gia na kathusterei to programma dld na vlepeis to apotelesma... Borei na grafonde mono sthn Borland c++ thn opoia douleuw egw.. esy ama xrhshmopoieis kapio allo programma gia c++ borei na exei allo command gia to delay...
Μαθηματικός Posted January 23, 2011 Author Posted January 23, 2011 ayta einai gia na kathusterei to programma dld na vlepeis to apotelesma... Borei na grafonde mono sthn Borland c++ thn opoia douleuw egw.. esy ama xrhshmopoieis kapio allo programma gia c++ borei na exei allo command gia to delay... a ne ontos katalava...emena exei to system("pause"); ...xoris auto to programma klinei amesos
douga Posted January 23, 2011 Posted January 23, 2011 a ne ontos katalava...emena exei to system("pause"); ...xoris auto to programma klinei amesos nai se mena dn douleue to programma me to system("pause"); return 0; mono me to int delay; cin delay; elpizw na se vohthisa
Μαθηματικός Posted January 23, 2011 Author Posted January 23, 2011 nai se mena dn douleue to programma me to system("pause"); return 0; mono me to int delay; cin delay; elpizw na se vohthisa ontos ne..dokimasa auta ta lines me to endl kai ime ok...request to lock :P sintoma mou fenete tha aniksw kenourgio topic sxetika me help pali :P....lock it
WeirdSituation Posted January 23, 2011 Posted January 23, 2011 ontos ne..dokimasa auta ta lines me to endl kai ime ok...request to lock :P sintoma mou fenete tha aniksw kenourgio topic sxetika me help pali :P....lock it
Recommended Posts