when i compile the following code , compiler through error as ..."fatal error LNK1120: 1 unresolved external "
#include<iostream> #include<conio.h> #include<string.h> using namespace std; void mix(char,int); int mian() { mix('=',50); cout<<"data types and rang"<<endl; cout<<"char -128 to 127 "; cout<<"short -32,768, to 32.767 "; cout<<"int -system dependent "; cout<<" double -2,483,648 to 2,483,647 "; cout<<endl; mix('-',40); return 0; } void mix(char ch , int n ) { for (int j=0;j<n;j++) cout<<ch; cout<<endl; }
This post has been edited by Skydiver: 03 August 2014 - 07:32 PM
Reason for edit:: Put code in code tags. Learn to do this yourself.