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;
}
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;
}
for an older compiler ....
for a newer compiler ....Code:#include <iostream.h> void funktion1() { cout<<"ffffffffffffffffffffff"<<flush; } void funktion2() { cout<<"zzzzzzzzzzzzzzzzzzzzzzzz"<<flush; } int main() { funktion1(); funktion2(); return 0; }
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
thanx alot
what more can u do with the flush?
you could start by spelling funktion right???
function
ure right i was wrighting in swedish and just copied it
well function!
u happy now?
.............................................
then what should i do
yea, and wrighting is spelled writing
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";
}
If eye had a peny four everry werd eye c spelld rong on teh intrnet i'd bee a milleonare
oh is WRIGHTING spelled writing?!?
ok man, but You is spelled SMART!