Forum: PHP Oct 24th, 2008 |
| Replies: 3 Views: 474 Thanks for inputs. still playing with it. |
Forum: PHP Oct 24th, 2008 |
| Replies: 3 Views: 474 I am using the latest phpmyadmin. I have a database and within it is a whole bunch of tables. I want to load a semicolon delimited text file but it doesn't seem to work. Here is the sample of my... |
Forum: VB.NET Oct 13th, 2008 |
| Replies: 6 Views: 2,170 Hi guys. Thanks. I wanted the user to enter as much data as they want and put it in a listbox. then it will end when the calculate average button is clicked.
Why does it do infinite loop? If I... |
Forum: VB.NET Oct 13th, 2008 |
| Replies: 6 Views: 2,170 Can someone explain to me why this code do not try to perform the loop? It just crashes my program:(Private Sub btnCommission_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles... |
Forum: C++ Nov 25th, 2007 |
| Replies: 15 Views: 1,446 in a post quick reply there is not preview button?? Also there is no CODE tag in there. Only quote |
Forum: C++ Nov 25th, 2007 |
| Replies: 15 Views: 1,446 I got the problem solved by the way.. I read your last post over and over again. below is my final code...const int NUM_NAMES = 20, SIZE = 17;
//function prototype
void selectionSort( char... |
Forum: C++ Nov 25th, 2007 |
| Replies: 15 Views: 1,446 Hi thanks for all the input. I dropped out of the class and decided to go the the classroom instead on spring. I will make sure to pest on my teacher anytime I don't understand anything. This is just... |
Forum: C++ Nov 17th, 2007 |
| Replies: 15 Views: 1,446 thats what I end up with and still digesting little by little. I just dont get this comparing C-strings stuff. |
Forum: C++ Nov 17th, 2007 |
| Replies: 15 Views: 1,446 ohhh, Hmm I am comparing strings.. why am I using int?? I should use strcpy?? Let me try |
Forum: C++ Nov 17th, 2007 |
| Replies: 15 Views: 1,446 I can't be possibly comparing it wrong because this is what the book said?? |
Forum: C++ Nov 15th, 2007 |
| Replies: 15 Views: 1,446 binarySearch function is suppose to start searching from the middle of the array then go up. if the value the user entered is not there, then start searching again from the middle of the array going... |
Forum: C++ Nov 15th, 2007 |
| Replies: 15 Views: 1,446 This is suppose to ask the user to type in the name and display the name if it is inside the array. Otherwise a message displays "The name is invalid". I am using binary search (binarySearch... |
Forum: C++ Nov 15th, 2007 |
| Replies: 15 Views: 1,446 here is my code. I don't know why it always returns the value that i do not ask for.?? This code display the name I typed in if it is inside the array. //this will sort strings using selection sort... |
Forum: C++ Nov 4th, 2007 |
| Replies: 3 Views: 1,153 Okay never mind I figured it out. thanks.... |
Forum: C++ Nov 4th, 2007 |
| Replies: 3 Views: 1,153 Okay I made changes. Here is my code but the ouput is wrong. Hmmmmmm.... |
Forum: C++ Nov 3rd, 2007 |
| Replies: 3 Views: 1,153 Why does the code below stop executing after displaying all the numbers stored in an array?
//this will let the user enter 10 values and
//store them into an array. After that
//sort it out and... |
Forum: C++ Oct 20th, 2007 |
| Replies: 7 Views: 1,162 Oh I see what you are saying. Every time the loop iterates, the average calculation will also calculate since it is a part of a loop. Instead having it outside the loop makes it look better and would... |
Forum: C++ Oct 20th, 2007 |
| Replies: 7 Views: 1,162 Hi thanks. I tried putting the average calculation inside the while loop and it still worked. The line 26 is the one giving problem when I was trying to find out the total of numbers inside the file.... |
Forum: C++ Oct 20th, 2007 |
| Replies: 7 Views: 1,162 well here is the code. It outputs 516 instead of 200 random numbers I am trying to read off random.txt file.//This will read the file random.txt,
//then it will tell you the number of numbers in the... |
Forum: C++ Oct 20th, 2007 |
| Replies: 7 Views: 1,162 why does this file outputs 516?? The value of numbers is being read from random.txt that has 200 random numbers in it. I was expecting this to output 200 and NOT 516.. whats up with this?
while... |
Forum: C++ Oct 19th, 2007 |
| Replies: 20 Views: 2,470 Hi Duos. Thanks for the input but I don't know what your header means. We are not on that part yet and all I have gone so far with the class and books are the very basic like loops, if else, very few... |
Forum: C++ Oct 18th, 2007 |
| Replies: 20 Views: 2,470 I am glad i found this forum by the way:) There is so much to learn and read here.. thank you |
Forum: C++ Oct 18th, 2007 |
| Replies: 20 Views: 2,470 thats true that people doesn't learn if you feed them the code - ONLY if they are not serious about learning it and just want to pass the course. In my case, this homework deadline was first week of... |
Forum: C++ Oct 17th, 2007 |
| Replies: 20 Views: 2,470 Ughh, I dont get it. I have a handful of numbers that the user entered sitting inside the variable numbers. Now, I need to be able to see those numbers and assign the big one to maxValue. But this... |
Forum: C++ Oct 17th, 2007 |
| Replies: 20 Views: 2,470 this is not working at all. the user should be able to enter as many numbers as he wants and then enter a SENTINEL when he is done. Then the program should look through the numbers he entered and... |
Forum: C++ Oct 16th, 2007 |
| Replies: 20 Views: 2,470 that code might work if we set a specific number of random integers to compare. What if we let the user to enter as many integers as we want? or only 5 numbers? We can't set a constant variable with... |
Forum: C++ Oct 16th, 2007 |
| Replies: 20 Views: 2,470 Gosh I am so sorry, what do you mean by extrimum? |
Forum: C++ Oct 16th, 2007 |
| Replies: 20 Views: 2,470 The chapter I am right now does not cover array so I dont think I am able to use arrays with this. :( |
Forum: C++ Oct 15th, 2007 |
| Replies: 20 Views: 2,470 Okay, I got abotu 5 problems solved today and I am on the hardest part! Basically my code ask the user to enter series of random numbers and then use sentinel to mark the end of numbers needed to be... |
Forum: C++ Oct 15th, 2007 |
| Replies: 6 Views: 732 so num IS the accumulator? why do we have to assign something in it? why can't it just grab the value of maxNum and increment then store the value to total? I don't clearly understand but I thank you... |
Forum: C++ Oct 15th, 2007 |
| Replies: 6 Views: 732 this doesn't work either. an example is if the user enter 3 the total should display 6 (1+2+3 = 6). What I dont understand is how the initializer really works on the first parameter of for loop?? we... |
Forum: C++ Oct 15th, 2007 |
| Replies: 6 Views: 732 I simply dot get it. heres my understanding
user enter a number
number entered get stored in variable maxNum
then get that number and sum up the total. HOW?
step1: initialize 0 to num
step2:... |
Forum: C++ Oct 15th, 2007 |
| Replies: 6 Views: 732 This is a very simple app I am trying to do. How else would sum up the total of the number the user entered? Example if the user enters 10, the loop will find the sum of 1,2,3,4,5.....10. Here is my... |