Page 1 of 2 12 LastLast
Results 1 to 25 of 29

Thread: Dev-C++

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered 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

  2. #2
    XaMaB's Avatar
    Join Date: Nov:2001
    Location:
    Posts: 20,387
    system("pause")
    : XaMaB; . 0.42

    In God we Trust (all others must submit a X.509 certificate). , ()

  3. #3
    user-friendly 0wn3r's Avatar
    Join Date: Mar:2006
    Location: Bulgaria,Plovdiv
    Posts: 1,165
    ?
    believing

  4. #4
    Registered User
    Join Date: Nov:2008
    Location: Sofia
    Posts: 29
    0

    .

  5. #5
    Registered User morgoth_srs's Avatar
    Join Date: Mar:2004
    Location: Sofia
    Posts: 1,149
    int sum=0;
    cout<<"sum = "<<sum;
    : . : . : . : . : . : -. : -.

  6. #6
    Registered User
    Join Date: Nov:2008
    Location: Sofia
    Posts: 29
    sum .

  7. #7
    Registered abUser ike's Avatar
    Join Date: Jul:2004
    Location: sofi
    Posts: 4,965
    Have no fear ike iz here.
    CPU Cx486DLC@40MHz, RAM 4MB, VGA Trident 512KB, HDD Conner 160MB, Monitor 14" Color

  8. #8
    Registered User FuLLmaXx's Avatar
    Join Date: Jan:2007
    Location: UK
    Posts: 540
    - using namespace std; include-. cout-a.
    ( , cout std::cout)

  9. #9
    Registered User
    Join Date: Nov:2008
    Location: Sofia
    Posts: 29




  10. #10
    Registered 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;
    }

  11. #11
    Registered User
    Join Date: Dec:2007
    Location: Sofia
    Posts: 366
    , , fabs().

  12. #12
    Registered User
    Join Date: Nov:2008
    Location: Sofia
    Posts: 29
    #include <math.h>

  13. #13
    Bombera's Avatar
    Join Date: Jul:2001
    Location: 4EVA
    Posts: 13,833
    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|

  14. #14
    Defender Kaspirtov's Avatar
    Join Date: Jun:2006
    Location: Sf
    Posts: 7,414
    Quote Originally Posted by Bombera View Post
    Papaya=15;

    Gooseberry=5;
    -, ? :-):-):-)
    " , , , , ."

  15. #15
    Registered User
    Join Date: Nov:2008
    Location: Sofia
    Posts: 29



  16. #16
    Bombera's Avatar
    Join Date: Jul:2001
    Location: 4EVA
    Posts: 13,833
    Quote Originally Posted by Kaspirtov View Post

    Gooseberry=5;
    -, ? :-):-):-)
    .
    - .
    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|

  17. #17
    Registered 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 b
    AMD 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/

  18. #18
    Bombera's Avatar
    Join Date: Jul:2001
    Location: 4EVA
    Posts: 13,833
    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|

  19. #19
    Mes Que Un Club F3N0M3NA's Avatar
    Join Date: Nov:2008
    Location: Sofia
    Posts: 175
    Quote Originally Posted by Bombera View Post
    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;
    }
    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

  20. #20
    Registered User
    Join Date: Dec:2007
    Location: Sofia
    Posts: 366
    Quote Originally Posted by F3N0M3NA View Post
    C, 5 . @Bombera, - - :
    - , Bombera,

  21. #21
    Mes Que Un Club F3N0M3NA's Avatar
    Join Date: Nov:2008
    Location: Sofia
    Posts: 175
    Quote Originally Posted by Pheoman View Post
    - , Bombera,
    , , ,
    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

  22. #22
    Undead user Oldman's Avatar
    Join Date: Oct:2003
    Location: outside
    Posts: 432
    Quote Originally Posted by F3N0M3NA View Post
    , , ,
    , VS2008 :

    Code:
    error C2057: expected constant expression
    error C2466: cannot allocate an array of constant size 0
    error C2133: 'b' : unknown size
    :
    Code:
     int *b = new int[C];
    .

  23. #23
    Mes Que Un Club F3N0M3NA's Avatar
    Join Date: Nov:2008
    Location: Sofia
    Posts: 175
    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

  24. #24
    Undead user Oldman's Avatar
    Join Date: Oct:2003
    Location: outside
    Posts: 432
    Quote Originally Posted by F3N0M3NA View Post
    , dev c++ , ...
    feature C99 Variable-length array, ISO C++. C++ -pedantic .
    .

  25. #25
    Guest
    Join Date: Jan:2000
    Posts: 9,193
    , , , . , dev c++ . , . .
    !

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |