Forum: C++ Aug 14th, 2009 |
| Replies: 3 Views: 221 The append mode is just there to avoid the overwrite of the existing records
Im not sure if I understand what ur saying can u ellaborate a bit
Thanks |
Forum: C++ Aug 14th, 2009 |
| Replies: 3 Views: 221 Hi all
I have a function writetofile() which save a record to a file but the problem is when its writting to a file it doesnt write the record in a correct order, here is the code for... |
Forum: C++ Jun 4th, 2009 |
| Replies: 5 Views: 490 Does anyone know a source code for calculating Zodiac Sign using a given DoB
Thanks |
Forum: C++ Mar 13th, 2009 |
| Replies: 10 Views: 459 But U actually did... Thanx a lot man, it wasnt difficult now was it |
Forum: C++ Mar 13th, 2009 |
| Replies: 10 Views: 459 If I do that, I only accept one number frm the user and it prints out this statement "Odd Numbers = 1" |
Forum: C++ Mar 13th, 2009 |
| Replies: 10 Views: 459 What is wrong is that it is not keeping track of odd numbers or even numbers the users enters but instead it just print 1 for odd numbers only,
int Num;
cout << "EVEN - ODD " << endl;
cout <<... |
Forum: C++ Mar 13th, 2009 |
| Replies: 10 Views: 459 I have tried that but its not working |
Forum: C++ Mar 13th, 2009 |
| Replies: 10 Views: 459 I need to keep track of odd and even number which will be accepted from the user 10 time after the user entering them I have to print something like odd number = "The number of odd numbers from what... |
Forum: C++ Dec 3rd, 2008 |
| Replies: 21 Views: 1,706 I dont know why you are assigning the address or memory location of data to savings whereas your variable data is not a pointer, I think the problem in your code is a mismatch of the data types you... |
Forum: C++ Oct 27th, 2008 |
| Replies: 5 Views: 610 I have a datetime picker, then I have ValueChanged event handler for it and a code that goes like this
DateTime date = DateTime::Parse(dtpDate->Text);
System::DateTime::Compare(date,... |
Forum: C++ Oct 27th, 2008 |
| Replies: 5 Views: 610 Im not sure if Im doing it right but... I have changed the datetimepicker to ValueChanged so now I dont have compare option to compare the datetimepicker with Now().CurrentDate()
PLease let me... |
Forum: C++ Oct 27th, 2008 |
| Replies: 5 Views: 610 I need to make sure that when the user select a date from a DateTimePicker the date should not be less than Today's date,
anyone knows how to achieve that
Thanx |
Forum: C++ Oct 27th, 2008 |
| Replies: 1 Views: 282 Guys, can anyone help me with the code to print from a list view I need to select a record from a list view then click button Print and bring the information accross the print document page, PLease... |
Forum: C++ Oct 20th, 2008 |
| Replies: 3 Views: 500 I have tried that but all the text appears in one column instead of writting each record on its separate column and it reads the spaces too |
Forum: C++ Oct 20th, 2008 |
| Replies: 3 Views: 500 Guys I need to read from a text file and display to a listview I have tried google but nothing like what I am looking for, can anyone help me, Im using windows application
Thanx in advance |
Forum: C++ Oct 14th, 2008 |
| Replies: 1 Views: 926 Guys
I need help with creating telephone input mask on the text box I am using windows programming, I need something like this ( )- 1823121
Any help would be highly appreciated |
Forum: C++ Oct 7th, 2008 |
| Replies: 3 Views: 662 I dont know what would I do without u, thanx man but can u provide me with a sample code so I can just replace |
Forum: C++ Oct 7th, 2008 |
| Replies: 3 Views: 662 Can anyon help me with the code to delete from file using the delete method or function
void delete()
{
}
Thanks in advance |
Forum: C++ Aug 5th, 2008 |
| Replies: 2 Views: 421 I have struct which is like this
struct Node
{
int Num;
Node *Point
}
so the program has to insert the numbers in the list during the execution, so the user can insert as many... |
Forum: C++ Jun 18th, 2008 |
| Replies: 0 Views: 522 Guys
Im alwayz having a syntax error which makes my form designer to dissappear and that scares the hell out of me coz Im writting practical test tomorrow, and what I wana know is what could be... |
Forum: C++ Jun 16th, 2008 |
| Replies: 23 Views: 1,197 Oh hang on... wait!!!! so what could be the problem coz what I understand is once the compiler gets to the if statement it just jump straight to the else part even if I entered the only last date and... |
Forum: C++ Jun 16th, 2008 |
| Replies: 23 Views: 1,197 I suppose its a logic error so I wouldnt know, what I know is... that if statement is not working at all, I have tryied to move it inside the loop but hey it has a hard head and stubborn to do what I... |
Forum: C++ Jun 16th, 2008 |
| Replies: 23 Views: 1,197 The if statement is not working at all and when outside the loop it only reads the last date and flight number from the file, ok now how do I take my if statement inside the loop without having to... |
Forum: C++ Jun 16th, 2008 |
| Replies: 23 Views: 1,197 Ok now what could be the problem on this statement if(date == F.date && flight == F.FlightNum) |
Forum: C++ Jun 16th, 2008 |
| Replies: 23 Views: 1,197 Again!!!!!!!!!!!! even if you need two!!!! wow then C++ is getting closer to what we call "more than complicated" where am coming from |
Forum: C++ Jun 16th, 2008 |
| Replies: 23 Views: 1,197 Ok I got it now, it reads and write everything from the file, What i dont understand how come coz I have read only two variables and output only them, so there is just no way it could find the date... |
Forum: C++ Jun 16th, 2008 |
| Replies: 23 Views: 1,197 Im sorry about that too, I also thought my program would do the same too such as reading the date and flight number
the format of my file is of the ff
date FlightNum DepartAt ... |
Forum: C++ Jun 16th, 2008 |
| Replies: 23 Views: 1,197 I have to read two fields which is date and flight and compare them with the ones that user entered if found the program has to accept the user's details which are names and so forth so the prob is... |
Forum: C++ Jun 16th, 2008 |
| Replies: 23 Views: 1,197 |
Forum: C++ Jun 16th, 2008 |
| Replies: 23 Views: 1,197 Here is the code
int x;
int seats = 0;
//open files
ofstream TempFile;
TempFile.open("TempFile.dat");
ifstream capeFile;
ifstream durbsFile; |
Forum: C++ Jun 16th, 2008 |
| Replies: 23 Views: 1,197 |
Forum: C++ Jun 16th, 2008 |
| Replies: 23 Views: 1,197 What usually be the cuase of the file reading the wrong data, lets say I have a file and I wana read a date which is the 1st data in the file but instead is reading something else
My file is more... |
Forum: C++ Jun 10th, 2008 |
| Replies: 7 Views: 713 Now tell me Ed What are you doing here Date capeDate;
Date durbsDate; |
Forum: C++ Jun 10th, 2008 |
| Replies: 7 Views: 713 I forgot to mention it....Accepting the passenger's details shouldnt be the problem, My problem is to get the date and the flight number from those files and compare them with the ones that user... |
Forum: C++ Jun 10th, 2008 |
| Replies: 7 Views: 713 I have two files and have to compare dates and flight-number to both files and if found I have to accept passenger details,
The isFlightAvailable is a function where I have my boolean which... |
Forum: C++ Jun 10th, 2008 |
| Replies: 7 Views: 713 Another assignment, another due date, another exams, thats how I describe my life these days
Im trying to read a date from the user and compare it with the date in the file and if the date is... |
Forum: C++ Jun 4th, 2008 |
| Replies: 4 Views: 431 |
Forum: C++ Jun 4th, 2008 |
| Replies: 4 Views: 431 Ok Now I wana do the same to the 2nd form, that is, if I click to the button it has to take me back to the 1st form so the problem is when I try the above code to the 2nd form it gives me errors |
Forum: C++ Jun 4th, 2008 |
| Replies: 4 Views: 431 Guys
I have 2 forms and I have a button that when I click have to open another form
but I dont know how to do that, I have google searched it but I ended having hilarious syntax errors, anyone... |
Forum: C++ Jun 3rd, 2008 |
| Replies: 6 Views: 633 Have you ever read something and after that feel like you dont know what you thought you knew or wander if there is anything u know about the subject at hand, thats what alwayz happen when I read... |