Results 1 to 9 of 9

Thread: ++

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    -==-
    Join Date: Sep:2003
    Location:
    Posts: 6,444

    ++

    . while . .
    PHP Code:
    #include <cstdlib>
    #include <iostream>
    #include <math.h>

    using namespace std;

    int main(int argcchar *argv[])
    {
        
    double number,igues,err,tmp,prec,;
        
    long int counter,i;
        
    counter=0;
        
    err=1;
        
    prec=1/1000;
        
    cout<<"Number:";
        
    cin>>number;
        
    cout<<"Initial gues:";
        
    cin>>igues;
                  while ((
    counter<=10)or(err>=prec))
                        { 
                        
    tmp igues/number/igues/2;
                        
    err fabs((tmp*tmp number));
                        
    igues tmp;
                        
    counter++;
                        
    cout<<counter<<" iteration:"<<igues<<" err: "<<err<<"\n";
                        };                                   
        
    system("PAUSE");
        return 
    EXIT_SUCCESS;

    He who asks is a fool for five minutes, but he who does not ask reamins a fool forever. Old Chinese saying
    Quote Originally Posted by worm4 View Post
    a .

  2. #2
    Banned haste's Avatar
    Join Date: Mar:2006
    Location:
    Posts: 759


    Code:
    err>=prec
    while- "".

    Code:
    prec=1/1000;
    - .

  3. #3
    Banned pe6o's Avatar
    Join Date: Jan:2002
    Location: Sofia
    Posts: 1,263
    1/1000 0. 1.0/1000 .

  4. #4
    -==-
    Join Date: Sep:2003
    Location:
    Posts: 6,444
    . prec ? 10- ?

    //. .
    Last edited by Yasen6275; 16th November 2010 at 21:21.
    He who asks is a fool for five minutes, but he who does not ask reamins a fool forever. Old Chinese saying
    Quote Originally Posted by worm4 View Post
    a .

  5. #5
    philosophus duratea icaci's Avatar
    Join Date: Oct:2006
    Location: Aachen
    Posts: 2,698
    <offtopic>
    , or || , ...
    </offtopic>
    Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others

  6. #6
    -==-
    Join Date: Sep:2003
    Location:
    Posts: 6,444
    . . !(||). . || or. ?
    He who asks is a fool for five minutes, but he who does not ask reamins a fool forever. Old Chinese saying
    Quote Originally Posted by worm4 View Post
    a .

  7. #7
    philosophus duratea icaci's Avatar
    Join Date: Oct:2006
    Location: Aachen
    Posts: 2,698
    C++ "or" ,
    Code:
    #define or ||
    - . 10, - . - &&, and
    Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others

  8. #8
    -==-
    Join Date: Sep:2003
    Location:
    Posts: 6,444
    . 5 .
    He who asks is a fool for five minutes, but he who does not ask reamins a fool forever. Old Chinese saying
    Quote Originally Posted by worm4 View Post
    a .

  9. #9
    ɐ-əpoɔᴉu⋂ ɐ ə anrieff's Avatar
    Join Date: Apr:2004
    Location: Sofia
    Posts: 8,448
    icaci, , gcc or, and extension - , '|', '&' ( 6 ).
    kate "or", "and", "xor" , for, if .
    - if- && (and) || (or).
    , . .
    "640K ught to be enough for anybody" - Bill Gates, 1981
    ::Machine specs::Fract::AGG::::Baileys::blog::YouTube channel

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 |