EDIT: lol nvm....i solved it :S
the book i have just doesn't describe this good :s
it says that the functions area and omkrets doesnt have a definition..and that i should do that....but i don't get it :s
#include<iostream.h>
#include<iomanip.h>
void rektinfo(float bredd, float hojd);
float area(float bredd, float hojd);
float omkrets(float bredd, float hojd);
void main()
{
rektinfo(6.5,4);
rektinfo(12,25);
}
void rektinfo(float bredd, float hojd)
{
cout<<"**********************"<<endl;
cout<<"REKTANGELINFORMATION"<<endl;
cout<<"Bredd"<<setw(10)<<bredd<<endl;
cout<<"Höjd"<<setw(10)<<hojd<<endl;
cout<<"Area"<<setw(10)<<area(bredd,hojd)<<endl;
cout<<"Omkrets"<<setw(10)<<omkrets(bredd,hojd)<<endl;
cout<<"**********************"<<endl;
}
c++ another code...help please :]
c++ another code...help please :]
"The best place to hide a tree, is in a forest"
- sternbildchen
- Fame ! Where are the chicks?!
- Posts: 421
- Joined: 26 Apr 2006, 16:00
- 17
- Location: Germany