learningbasics
12-07-05, 07:37 PM
ok 1st let me tell a little about me... well im in this computer science class in 10th grade and we are using the VERY old turbo C++ 3.0 and its been about 5 months sence i have been in the class, i desided instead of always staying after school to finish a problem in that class, i will just buy the program at... http://shop.borland.com/dr/v2/ec_MAIN.Entry10?SP=10023&PN=1&V1=640972&xid=39696&CID=0&DSP=&CUR=840&PGRP=0&CACHE_ID=0 ... and get a 3 for 1 deal, it also include the turbo C++ 3.0 we are using...
NOW for the problem im having, after having trouble installing 3.0 (took a while becuase i had trouble in the prompt to install it but finaly after a while i did install 3.0)
and i was setting my program up.... it looked like this....
//comment section
//bruce
//shell
//block7
//Library
#include<conio.h>
#include<iomanip.h>
#include<iostream.h>
#include<apstring.h>
#include<apvector.h>
#include<apmatrix.h>
//const section
//Var Section
apvector < apstring > Names( 20 );
apvector < apstring > Names2( 20 );
int I;
int Count;
void Main()
{
do
{
clrscr();
cout << "enter 20 names into the screen OR untill you press ZZZ" << endl;
getline( cin, Names[Count] );
Count++;
}
while ( Names[Count - 1] != "ZZZ" && Count < 20 );
clrscr();
if ( Count < 20 )
Count = Count - 2;
For( I = 0; I < Count + 1; I++ ) cout << Names[I].length() << endl;
}
its not the hole project i have to do, but basicly thats it for now, and the problem im having is that the program cant find the file for #include<apstring.h>
#include<apvector.h>
#include<apmatrix.h>
i quote its words
"unable to open include file 'apstring.h'"
"unable to open include file 'apvector.h'"
"unable to open include file 'apmatrix.h'"
and thus becuase of that it cant understand
apvector < apstring > Names( 20 );
apvector < apstring > Names2( 20 );
i need to know... is there somthing i need to install (or download) to get the <ap(blah blah).h> to work?
please help
NOW for the problem im having, after having trouble installing 3.0 (took a while becuase i had trouble in the prompt to install it but finaly after a while i did install 3.0)
and i was setting my program up.... it looked like this....
//comment section
//bruce
//shell
//block7
//Library
#include<conio.h>
#include<iomanip.h>
#include<iostream.h>
#include<apstring.h>
#include<apvector.h>
#include<apmatrix.h>
//const section
//Var Section
apvector < apstring > Names( 20 );
apvector < apstring > Names2( 20 );
int I;
int Count;
void Main()
{
do
{
clrscr();
cout << "enter 20 names into the screen OR untill you press ZZZ" << endl;
getline( cin, Names[Count] );
Count++;
}
while ( Names[Count - 1] != "ZZZ" && Count < 20 );
clrscr();
if ( Count < 20 )
Count = Count - 2;
For( I = 0; I < Count + 1; I++ ) cout << Names[I].length() << endl;
}
its not the hole project i have to do, but basicly thats it for now, and the problem im having is that the program cant find the file for #include<apstring.h>
#include<apvector.h>
#include<apmatrix.h>
i quote its words
"unable to open include file 'apstring.h'"
"unable to open include file 'apvector.h'"
"unable to open include file 'apmatrix.h'"
and thus becuase of that it cant understand
apvector < apstring > Names( 20 );
apvector < apstring > Names2( 20 );
i need to know... is there somthing i need to install (or download) to get the <ap(blah blah).h> to work?
please help