y not possible?

This is a discussion on y not possible? within the Game Programming forums, part of the General Programming Boards category; anyone know the right way of wrighting the following code?: #include <iostream.h> void funktion1() { cout<<"ffffffffffffffffffffff"; } void funktion2() { ...

  1. #1
    Registered User
    Join Date
    Dec 2001
    Posts
    479

    y not possible?

    anyone know the right way of wrighting the following code?:

    #include <iostream.h>

    void funktion1()
    {
    cout<<"ffffffffffffffffffffff";
    }

    void funktion2()
    {
    cout<<"zzzzzzzzzzzzzzzzzzzzzzzz";
    }

    main()
    {
    funktion1();
    funktion2();
    return 0;
    }

  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    for an older compiler ....
    Code:
    #include <iostream.h> 
    void funktion1() 
    { 
    cout<<"ffffffffffffffffffffff"<<flush; 
    } 
    void funktion2() 
    { 
    cout<<"zzzzzzzzzzzzzzzzzzzzzzzz"<<flush; 
    } 
    int main() 
    { 
    funktion1(); 
    funktion2(); 
    return 0; 
    }
    for a newer compiler ....
    Code:
    #include <iostream> 
    using namespace std;
    void funktion1() 
    { 
    cout<<"ffffffffffffffffffffff"<<flush; 
    } 
    void funktion2() 
    { 
    cout<<"zzzzzzzzzzzzzzzzzzzzzzzz"<<flush; 
    } 
    int main() 
    { 
    funktion1(); 
    funktion2(); 
    return 0; 
    }
    Last edited by Stoned_Coder; 01-20-2002 at 11:09 AM.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

  3. #3
    Registered User
    Join Date
    Dec 2001
    Posts
    479
    thanx alot

    what more can u do with the flush?

  4. #4
    Registered User
    Join Date
    Aug 2001
    Posts
    411
    you could start by spelling funktion right???

    function

  5. #5
    Registered User
    Join Date
    Dec 2001
    Posts
    479
    ure right i was wrighting in swedish and just copied it

    well function!
    u happy now?
    .............................................
    then what should i do

  6. #6
    Registered User
    Join Date
    Nov 2001
    Posts
    162
    yea, and wrighting is spelled writing

  7. #7
    Unregistered
    Guest

    Wink

    Try this code
    -Colin.



    #include <iostream.h>
    #include<conio.h>
    void funktion1(void);
    void funktion2(void);

    void main(void)
    {
    funktion1();
    funktion2();
    getche();
    }
    void funktion1()
    {
    cout<<"ffffffffffffffffffffff";
    }

    void funktion2()
    {
    cout<<"zzzzzzzzzzzzzzzzzzzzzzzz";
    }

  8. #8
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    If eye had a peny four everry werd eye c spelld rong on teh intrnet i'd bee a milleonare

  9. #9
    Unregistered
    Guest

    Thumbs up

    oh is WRIGHTING spelled writing?!?

    ok man, but You is spelled SMART!

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21