thaks this is exactly what was i looking for
Type: Posts; User: pczafer
thaks this is exactly what was i looking for
can anybody tell me how can i call function for only first if statement, only once???
void displayCerteinDate ( )
{ //Find records with certain Date and Display all records in same Date....
here is my real codes, if entry date and time not in the array i want to ask again till its find in array
so how im gonna do it????
void deleteAppointmentRecords( )
{
bool flag = false;...
i want to return begining in void function(); like return in main();
if is wrong number i want to ask till number right.
but my codes returning the main all the time i tryid but still same. does...
with return; or without that its returning to Main.
i wan to return inside the void. so user can enter right option number
how to return in void??
how im gonna loop menu if option not 1 or 2 ???
void display( )
{
int option;
system("cls"); //clear screen
cout<<endl<<endl;
cout<<"\t * Display Menu *\n";
cout<<"\n\t1. Display For...
thanks anon
i done but didnt solve my problem i even tried just but still same
so i dont think its a problem
you right anon
i have date struct (day, mounth ,year) time is string i tried
but didn`t work and incrementing currentSize once now
i couldnt figure out how im gonna use this
if ( )
{
...
sorry for my codes i tryed to clean a bit.
its not checking and printing and
can anybody see mistakes now??????
void addAppointmenRecords( )
{
int number, i,k;
system("cls"); ...
I`m trying to to use if statement but something going wrong.
statement must be 2 steps
IF There is still room in the array and
IF there is not an Appointmen on the same Date and Time!...
sorry matsp
this is my entry
its not checking if there an Appointmen on the same Date and Time!
and and fallowing each other. i couldent work out.
thaks grumpy i fixed like this, im not getting any error or worning now but i still have problem.
what is wrong with my
void addAppointmenRecords( )
{
int number, i;
system("cls"); ...
can any one see my mistakes for illegal else and
seems not working
void addAppointmenRecords( )
{
int number, i;
system("cls"); //clear screen
cout<<"\nHow many Appointmen...
like finding and editing something from file.
void editAppointmenRecords( )
{
int editname;
system("cls"); //clear screen
cout<<"\nEnter person Name you want to Edit: ";
cin>>editname;...
i just need edit name or description nothing else.
but i dont know how to do.
can you give me any exaples
my write and read options working fine.
thanks
hi eveyone
i need to edit person name or Appointmendescription but not date or time in my program. i can write all the records to the file and can read from the file.
and need to edit the file...
its working now thaks for your help
void writeAppointmenRecords( )
{
int index;
//create and open an output text file
ofstream outfile("C:\\Documents and...
Thanks Daved for replying,
I made couple of changes, i made every entry differet line
void writeAppointmenRecords( )
{
int index;
//create and open an output text file
...
sorry i spelled wrong there im not getting any error
thats the why i put all my codes so if anyone want to run and see.
the program asked for user name, Descriptions, date and time for recordes....
Thanks for replaying Litz
actualy it was like this but i changed when i was tring different thinks.
im now getting any errors or warnings.
so what can be wrong with my codes????
here is my all...
hi everyone
i am having problem with read from file, i can write to the filr but can not read from file
can anyone have a look at my codes or give me some examples so i can have look and try to see...
Tnaks for replaying vart
first im only beginner so i dont know to much yet.
this is my entry
and this is in the file
Hi everyone,
i have a problem reading records from file
i can write to th efile but cannot read back
can any one help wit this please
void writeAppointmenRecords( )
{
int index;
...