Results 1 to 18 of 18

Thread: C++ -

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    rootless wolfshark's Avatar
    Join Date: Dec:2005
    Location:
    Posts: 5,768

    C++ -

    C++ .
    Visual C++ 6 . , Visual C++ Express Edition . 6'. cout readf readf . cin , cout cin readf ... MiniGW , Visual C++ Express. 3- - iostream . , endl .
    :
    #include <iostream.h>
    #include <conio.h>

    //Returns the factorial of n
    int Factorial(int n) {
    //Loop variable
    int i;
    int Result;

    //Initialize the result
    Result = 1;

    //Now multiply by 1 .. n
    for (i = 1; i <= n; i = i + 1)
    Result = Result * i;

    return Result;
    }

    void main() {
    int n;

    //Get a value
    cout << "What value?";
    cin >> n;

    //Print the factorial
    cout << Factorial(n) << endl;

    cout << "\nPress any key" << endl;
    while (!kbhit());
    }
    , "" "" MiniGW (Borland )
    Crashing is NOT normal. It is accepted as normal because of Windows.
    Ah the Geforce 440 MX...all the power of the Geforce 2MX, without nearly a damn being changed...

  2. #2
    XaMaB's Avatar
    Join Date: Nov:2001
    Location:
    Posts: 20,387
    Visual C++ Express Edition 2005.
    cin/cout

    "namespace std;"

    .
    : XaMaB; . 0.42

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

  3. #3
    Registered User
    Join Date: Mar:2004
    Location:
    Posts: 3,748
    -

    using namespace std;

    std:: stdc++ .

  4. #4
    Pesho's Avatar
    Join Date: Nov:2001
    Location: Sofia
    Posts: 5,169
    : include- <iostream.h>, a <iostream>. C++, - 100%. 10 , . -, . .

  5. #5
    rootless wolfshark's Avatar
    Join Date: Dec:2005
    Location:
    Posts: 5,768
    Quote Originally Posted by Pesho View Post
    : include- <iostream.h>, a <iostream>. C++, - 100%. 10 , . -, . .
    .

    - , .

    : <iostream>
    2: Microsoft Visual C++ 6.0 .
    3: , , !
    Last edited by wolfshark; 4th January 2007 at 19:35.
    Crashing is NOT normal. It is accepted as normal because of Windows.
    Ah the Geforce 440 MX...all the power of the Geforce 2MX, without nearly a damn being changed...

  6. #6
    Pesho's Avatar
    Join Date: Nov:2001
    Location: Sofia
    Posts: 5,169
    Thinking in C++ Bruce Eckel. - . PDF .

  7. #7
    Banned haste's Avatar
    Join Date: Mar:2006
    Location:
    Posts: 759
    http://msdn.com e .

    , - :
    1. ++?
    2. ?
    3. ( )?

    :
    1. " - 100 " .
    2. , .

  8. #8
    rootless wolfshark's Avatar
    Join Date: Dec:2005
    Location:
    Posts: 5,768
    100 . 200, 4 . , , .

    :
    1 : VB C++
    2 : , - C++
    3 : Visual Basic ,

    http://www.cplusplus.com/doc/tutorial/
    Crashing is NOT normal. It is accepted as normal because of Windows.
    Ah the Geforce 440 MX...all the power of the Geforce 2MX, without nearly a damn being changed...

  9. #9
    Banned haste's Avatar
    Join Date: Mar:2006
    Location:
    Posts: 759
    wolfshark: " " , (. data structures).

    To , ( ). , , . "", data structures , " " (HTML LaTex ). , Visual Basic ( ) , (++ - "" o Visual Basic, VB ). VB , . , , . , // .

    , : , , - .

    - ++ data/mind structures:

    ++
    - C++ Cookbook by D. Ryan Stephens, Christopher Diggins, Jonathan Turkanis, and Jeff Cogswell - , ++. () ;

    - C++ Primer (4th Edition) by Stanley B. Lippman, Jos&#233;e Lajoie, and Barbara E. Moo - , ++ . ( C++ Primer Answer Book by Clovis L. Tondo, Bruce P. Leung);

    - The C++ Programming Language (3rd Edition) by Bjarne Stroustrup - ( ). ;

    - Secure Programming Cookbook for C and C++ by John Viega and Matt Messier - . ;

    - C++ Gems: Programming Pearls from The C++ Report Stanley B. Lippman - "" Java C# + "More C++ Gems by Stanley Lippman and Robert C. Martin";

    - Numerical Recipes in C++. The Art of Scientific Computing. by William H. Press, Saul A. Teukolsky, William T. Vettering, and Brian P. Flannery - " ", " ";

    - Parallel Programming Using C++ by Gregory V. Wilson and Paul Lu - ", ". ( ) MPI;


    Data structures
    - Introduction to Algorithms by Thomas H. Cormen (2nd edition) - . Cambridge, Mass., USA , () ;

    - Introduction to the Theory of Computation by Michael Sipser - ( )! , !!!;

    - The Art of Computer Programming, Volumes 1-4 by Donald E. Knuth - 4 . . , ( , );

    - Hacker's Delight by Henry S. Warren Jr. - "The Art of Computer Programming, Volume 0: Bit Manipulation". , ;


    Mind structures
    - () . ;

    - Problem-Solving Strategies by Arthur Engel - , . ;

    :
    1. - , , - .
    2. 2008 ++ , - . " ", !

  10. #10
    ɐ-əpoɔᴉu⋂ ɐ ə anrieff's Avatar
    Join Date: Apr:2004
    Location: Sofia
    Posts: 8,448
    Quote Originally Posted by haste View Post
    ... 2. 2008 ++ , - . " ", !
    , : 2008? (C++-0x) 2010, -- . , ,
    , . .
    "640K ught to be enough for anybody" - Bill Gates, 1981
    ::Machine specs::Fract::AGG::::Baileys::blog::YouTube channel

  11. #11
    Pesho's Avatar
    Join Date: Nov:2001
    Location: Sofia
    Posts: 5,169
    Quote Originally Posted by anrieff View Post
    , : 2008? (C++-0x) 2010, -- . , ,

    C++0x Duke Nukem Forever. 1.0 D Programming Language.

  12. #12
    XaMaB's Avatar
    Join Date: Nov:2001
    Location:
    Posts: 20,387
    C, D. B ?
    - ,
    : XaMaB; . 0.42

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

  13. #13
    Banned haste's Avatar
    Join Date: Mar:2006
    Location:
    Posts: 759
    anrieff: 2006 roadmap, , 2007 2008 " ". ( ), :
    It follows that the standard must be complete for ratification by the ISO member nations in 2008. ...
    - !

    .: ++/data structures, ?

    .2:
    C++0x Duke Nukem Forever.
    Pesho , automatic garbage collection ( 2006, ). : . , .
    Last edited by haste; 5th January 2007 at 15:31.

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 |