Results 1 to 25 of 29
Thread: Dev-C++
Hybrid View
-
8th January 2010 10:31 #1Registered User
Join Date: Nov:2008
Location: Sofia
Posts: 29
Dev-C++
.
for (int i=5; ;i--)
{
if(!(i<5))break;
sum++;
}
:
#include <cstdlib>
#include <iostream>
int main()
{
for (int i=5; ;i--)
{
if(!(i<5))break;
sum++;
}
system("PAUSE");
return 0;
}
'sum' undeclared (first use this function)
int sum;
Press any key to continue ...
.
DEV-C++ 4.9.9.2
-
8th January 2010 11:06 #2
system("pause")
: XaMaB; . 0.42
In God we Trust (all others must submit a X.509 certificate). , ()
-
8th January 2010 15:50 #3
-
8th January 2010 16:04 #4Registered User
Join Date: Nov:2008
Location: Sofia
Posts: 29
0

.
-
8th January 2010 16:08 #5
int sum=0;
cout<<"sum = "<<sum;: . : . : . : . : . : -. : -.
-
8th January 2010 17:04 #6Registered User
Join Date: Nov:2008
Location: Sofia
Posts: 29
sum .
-
8th January 2010 17:22 #7Have no fear ike iz here.
CPU Cx486DLC@40MHz, RAM 4MB, VGA Trident 512KB, HDD Conner 160MB, Monitor 14" Color
-
8th January 2010 22:11 #8
- using namespace std; include-. cout-a.
( , cout std::cout)
-
9th January 2010 12:12 #9Registered User
Join Date: Nov:2008
Location: Sofia
Posts: 29


-
12th January 2010 21:05 #10Registered User
Join Date: Nov:2008
Location: Sofia
Posts: 29
. 
#include <cstdlib>
#include <iostream>
using namespace std;
int main()
{
double x=1.5, y=-1.5;
bool b1=x*x+y*y<=4&&y>=0;
bool b2=fabs(x)<=1&&y<0&&y>=-2;
cout<<(b1||b2)<<'\n';
system("PAUSE");
return 0;
}
-
12th January 2010 21:17 #11Registered User
Join Date: Dec:2007
Location: Sofia
Posts: 366
, , fabs().
-
13th January 2010 13:15 #12Registered User
Join Date: Nov:2008
Location: Sofia
Posts: 29
#include <math.h>
-
16th January 2010 12:24 #13
x=currants - , .
Papaya=15;
?EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|
-
16th January 2010 12:28 #14
-
16th January 2010 12:36 #15Registered User
Join Date: Nov:2008
Location: Sofia
Posts: 29

-
16th January 2010 12:50 #16
-
16th January 2010 15:26 #17Registered User
Join Date: Jun:2008
Location: Bulgaria
Posts: 126
int main ()
{
int b[C] = {25, 45, 15, 10, 30};
int a = b[0];
for (int i = 1; i < C; i++) {
if (b[i] < a) {
a = b[i];
}
}
cout << a << endl;
return 0;
}
, C bAMD Phenom X4 9850 BE + Xigmatek S1284EE/GIGABYTE - MA790X-DS4/2GB CORSAIR DOMINATOR 1072Mhz + CORSAIR Airflow Fan /500GB SEAGATE 32MB/GIGABYTE 4850ZL
/YESICO/Creative X-FI XtremeGamer FATAL1TY Champion Series, 7.1, 24bit/Cooler Master UCP 900W/
-
16th January 2010 16:00 #18
C , b.
Code:#define DIM_OF(x) (sizeof(x)/sizeof(x[0])) int main () { int b[] = {25, 45, 15, 10, 30}; int a = b[0]; for (int i = 1; i < DIM_OF(b); i++) { if (b[i] < a) { a = b[i]; } } cout << a << endl; return 0; }EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|
-
20th January 2010 21:18 #19
C, 5 . @Bombera, - - :
#include <iostream>
using namespace std;
int main ()
{
int C;
cout <<"Vuvedete C:";
cin >>C;
int b[C] ;
for (int i = 0;i<C;i++) {
cout <<"b["<<i<<"]=";
cin >>b[i];
}
int a = b[0];
for (int i = 1; i<C; i++) {
if (b[i] < a) a = b[i];
}
cout <<"Nai-malkiqt element v masiva e: "<<a<<endl;
system ("pause");
return 0;
}Q9550@4.3GHz | 3D Mark 06 GTX 280 | 3D Mark 06 4870x2 | 3D Mark 06 5850
Asrock P67 Pro3|Intel Core i7 2600k|A-Data 2X2GB DDR3 @ 1866MHz 8-8-8-24|Sapphire 6850|WD Caviar Black 750GB Sata III 64MB|Coolermaster RealPower M700|Coolermaster HAF 922|Samsung SM P2350|A4Tech X755FS|Logitech Wave Keyboard
-
20th January 2010 21:43 #20Registered User
Join Date: Dec:2007
Location: Sofia
Posts: 366
-
20th January 2010 23:41 #21Q9550@4.3GHz | 3D Mark 06 GTX 280 | 3D Mark 06 4870x2 | 3D Mark 06 5850
Asrock P67 Pro3|Intel Core i7 2600k|A-Data 2X2GB DDR3 @ 1866MHz 8-8-8-24|Sapphire 6850|WD Caviar Black 750GB Sata III 64MB|Coolermaster RealPower M700|Coolermaster HAF 922|Samsung SM P2350|A4Tech X755FS|Logitech Wave Keyboard
-
21st January 2010 09:15 #22
-
21st January 2010 20:21 #23
, dev c++ , . : http://picbg.net/img.php?file=890269593e8b92ca.jpg
Q9550@4.3GHz | 3D Mark 06 GTX 280 | 3D Mark 06 4870x2 | 3D Mark 06 5850
Asrock P67 Pro3|Intel Core i7 2600k|A-Data 2X2GB DDR3 @ 1866MHz 8-8-8-24|Sapphire 6850|WD Caviar Black 750GB Sata III 64MB|Coolermaster RealPower M700|Coolermaster HAF 922|Samsung SM P2350|A4Tech X755FS|Logitech Wave Keyboard
-
21st January 2010 22:09 #24
-
21st January 2010 22:06 #25Guest
Join Date: Jan:2000
Posts: 9,193
, , , . , dev c++ . , . .
!




Reply With Quote


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