0

am having this problem .........visual studio 2008\projects\project school billing systems\project school billing systems\project school billing systems.cpp(5) : fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory

and below is my code, can some 1 help me get it right,......... school billing system
from lower primary(1-3)/ upper primary(3-6) and grade 9-12

#include "stdafx.h"
#include <iostream.h>
#include <stdlib.h>

int total =0;
int stage;
char bill [15][100];
char items[15][100];
int main()
{
	using namespace std;
if (stage<= 3)// lower premary
	cout<<"Enter the number list"<<endl;
for(int a=0; a<15; a++)
	{
	cin>> items[a];
	}
	cout<<"the items for the term are"<<end;
	for(int b=0; a<15; a++)
	{
	cout<<items[b]; // accepting items
	}
	for (c=0; c<15; c++)
	{
	cin>>bill[c]; //accepting bills
	}
	if (bill<0 && bill>0)
		{
		cout<<"please kindly enter an amount"<<endl;
		}
	for(int disp=0; disp<15; disp++)//
	{
	cout<<item[a]<<"\t"<<"\t"<<bill[disp];
	}
	for (int d=0; d<15; d++)
	{
	total=total+bill[d];
	}
	cout<<total;

	return 0;
}
Attachments
// project school billing systems.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <iostream.h>
#include <stdlib.h>

int total =0;
int stage;
char bill [15][100];
char items[15][100];
int main()
{
	using namespace std;
if (stage<= 3)// lower premary
	cout<<"Enter the number list"<<endl;
for(int a=0; a<15; a++)
	{
	cin>> items[a];
	}
	cout<<"the items for the term are"<<end;
	for(int b=0; a<15; a++)
	{
	cout<<items[b]; // accepting items
	}
	for (c=0; c<15; c++)
	{
	cin>>bill[c]; //accepting bills
	}
	if (bill<0 && bill>0)
		{
		cout<<"please kindly enter an amount"<<endl;
		}
	for(int disp=0; disp<15; disp++)//
	{
	cout<<item[a]<<"\t"<<"\t"<<bill[disp];
	}
	for (int d=0; d<15; d++)
	{
	total=total+bill[d];
	}
	cout<<total;

	return 0;
}
3
Contributors
2
Replies
3
Views
9 Years
Discussion Span
Last Post by JRM
0

Those are not C++ libraries.
nix all of them.
Just use <iostream> (no .h)

You will also need :
using namespace std; //directive

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.