I don't want to write in the view i just want to get whats stored in the file at the given seek position. I dont know the syntax for it that's why i asked...
Type: Posts; User: frassunit
I don't want to write in the view i just want to get whats stored in the file at the given seek position. I dont know the syntax for it that's why i asked...
Ok, thanx for tha previous help but i have a problem with viewing something after i save it to a file, i cant seem to get the syntax for it. Say I have the function for adding data to a file like...
Thanks guys but the am std::fstream alone doesn't work but when i add the using before it, it works perfectly same for the std::string; and i set the parameter as pass by reference, thanx alot...
Ok am in the header file I am going to post below, I i get the following errors
error C2061: syntax error : identifier 'fstream'
I get those two errors for the two methods, I searched for...
i found the problem, and yes i had "Insurance File Removed" in a print function. am the problem is after the function calculates the premium it calls the destructor from the base class...
You see what i posted, those are the only codes that i have included stuff in etc.
this is regarding the the program i should make. I have come across something in my exe file stating that "Insurance File Removed" even though i have nothing printing that on the screen and after it...
bool Vehicle:: Any_Accident(void){
string accident;
cout<<"\nHas The Vehicle Been through any accidents?"<<"\nYes/No:";
cin>> accident;
if (accident== "yes" || accident== "Yes"){
...
error C2677: binary '||' : no global operator found which takes type 'std::string' (or there is no acceptable conversion)
when i get this error what am i facing?
ok i got rid of 2 of the problems , i only have a condional error now. i think its my if statement that is the problem. gonna continue fishing around it to see if i can get rid of the problem...
Ok, once more I have come to a buck with some syntax and i think i have tried everything i kno to correct it so here goes the code and thanks for the help you guys been giving me so far.
...
the code that i used the directive in was an implentation file for the date class. thanks for the string advice, thats why i was getting an error while debugging, thats y i also placed comments and...
i fixed that, but this what am doing is a work in progress for an oop class am doing at school. Here is the update to what i have now.
#ifndef Life_Insurance_Header
#define...
ok that code there was giving me a thinking but i kinda understand it now. The question asked for like a type of policy so i thought the different polices would be the general class and inherit...
Ok I Got a lil project and am seeking a bit of help with my header files (interfaces). I just want some help to clear up the headers before i jump on the implementation...Thanks in advance for your...
Thanks, it compiles perfectly in borland, but i still get a build error in visual c++.
OK guys am kinda new to c++ but I have a bit of knowledge about c though. The other day in class I wrote this code but it wont compose on visual c++, am asking for some help because I got an error I...
i have a question. LIFO is a stack right so what is a que because i was told that u can work at any end but the end u chose u have to continue using that end throughout the code.
yup or u would have a problem with input and outputs if they didnt exist. i have a nice question too, which do u guys prefer: getch(); or sleep();?
hmmm, thats something like what i would want, but i thought there was a simpler way in getting to implement them, like from a library, but thanks for all the help and new tips i learnt..
i am making a console program, for a data structures project, but bonus marks are alotted if we can get like instead of using enter key escape key and the arrow key to browse and navigate through the...
interesting, the only way to exit the program is using the escape key because escape = int 27, am i correct? i actually use turboC(borland C++ ) as my compiler and yes am using windows. suppose i...
Well I Am Sort of a noob in c right, but i would like to know how do you implement the f keys on your keyboard into a c program and the arrow keys too. i dont kno the library for them.
i have a question, the double link list right, i was told it points to both the previous and the next nodes but i dont fully understand how they work and also the circular link list.