c++ another code...help please :]

Questions about programming languages and debugging
Post Reply
User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

c++ another code...help please :]

Post by ayu »

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;
}
"The best place to hide a tree, is in a forest"

User avatar
Nerdz
The Architect
The Architect
Posts: 1127
Joined: 15 Jun 2005, 16:00
18
Location: #db_error in: select usr.location from sucko_member where usr.id=63;
Contact:

Post by Nerdz »

Hmmm what is the question?
Give a man a fish, you feed him for one day.
Learn a man to fish, you feed him for life.

User avatar
sternbildchen
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 421
Joined: 26 Apr 2006, 16:00
17
Location: Germany

Post by sternbildchen »

EDIT: lol nvm....i solved it :S

Post Reply