Results 1 to 8 of 8

Thread: C++

Hybrid View

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

  2. #2
    Eclipse sasoh's Avatar
    Join Date: Apr:2005
    Location:
    Posts: 130
    Code:
    if ((a*q+c*w+c)==0) return 0
    else return 1}
    ';' -, g

    , cin/cout ?

    indent- , -
    Last edited by sasoh; 10th July 2007 at 00:39.

  3. #3
    philosophus duratea icaci's Avatar
    Join Date: Oct:2006
    Location: Aachen
    Posts: 2,698
    Pascal
    Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others

  4. #4
    Deleted User 4eRNoBiL's Avatar
    Join Date: Oct:2005
    Location:
    Posts: 739
    . , 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

  5. #5
    Registered User morgoth_srs's Avatar
    Join Date: Mar:2004
    Location: Sofia
    Posts: 1,149
    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.

  6. #6
    philosophus duratea icaci's Avatar
    Join Date: Oct:2006
    Location: Aachen
    Posts: 2,698
    Quote Originally Posted by morgoth_srs View Post
    int main void main "warning funciton not return a value".
    ..., "warning: return type of 'main' is not 'int'" (GNU gcc) "warning: function must be of type int: main()" (Sun cc), "warning #1079: return type of function 'main' must be 'int'" (Intel icc). , ANSI C .
    "return 0;" ( return EXIT_SUCCESS; ) main.
    Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others

  7. #7
    Eclipse sasoh's Avatar
    Join Date: Apr:2005
    Location:
    Posts: 130
    main() int, void :-)

  8. #8
    Registered User
    Join Date: Oct:2003
    Location:
    Posts: 4,317
    Quote Originally Posted by UnknownIdentity View Post
    !
    ++.
    .........
    , . ..
    Smile
    - . , , . , -.
    Windows :
    http://msdn.microsoft.com/vstudio/express/
    , , , - , .

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 |