Forum: PHP Mar 15th, 2008 |
| Replies: 0 Views: 1,938 Hi everyone,
I've just installed the latest versions of the aforementioned programs in a bid to get started with PHP (yes, I'm new to it). Here are the specific versions:
Eclipse 3.3.2... |
Forum: Troubleshooting Dead Machines Jan 13th, 2008 |
| Replies: 27 Views: 107,993 Dear cblanck,
I'm sorry to hear that your son passed away at such a tender age. My take is, your laptop might be faulty but the hard disk may still be fine. You may attempt to remove its hard disk... |
Forum: C++ Mar 29th, 2006 |
| Replies: 50 Views: 8,032 Sort array? Which array?
Try this out anyway, I fixed a logic error. Hope this helps.
void SortAverage ()
{
int mvt[MAXMEMBERS];
for (int i = 0; i < numPlayers - 1; ++i)
{
double max =... |
Forum: C++ Mar 28th, 2006 |
| Replies: 50 Views: 8,032 This is as simple as I can go without breaking the logic...
fin >> judgeNumber[i][j];
if (!fin || judgeNumber[i][j] == -1)
{
judgeCount[i] = j;
break;
}
fin >>... |
Forum: C++ Mar 28th, 2006 |
| Replies: 50 Views: 8,032 I know how to do a selection sort algorithm, no worry on that. But I need answers to those two questions...
Are you sure you want it descending?
Do you want the sort to reshuffle ALL the arrays,... |
Forum: C++ Mar 28th, 2006 |
| Replies: 50 Views: 8,032 Before I start working on those, let me confirm these:
You want the sort to be descending, according to average. This means if I have:
4, 6, 3, 8, 1, 5, 7
You want it to be sorted as:
8, 7, 6,... |
Forum: C++ Mar 28th, 2006 |
| Replies: 50 Views: 8,032 What do you want to sort? And how do you want it sorted (ascending, descending etc.)? |
Forum: C++ Mar 28th, 2006 |
| Replies: 50 Views: 8,032 Finally got my C++ compiler working. I've compiled the code and fixed some small compilation warnings:
#include <iostream>
#include <fstream>
#include <cstdlib>
using namespace std;
// Const... |
Forum: C++ Mar 28th, 2006 |
| Replies: 21 Views: 2,700 Erm, you can only set the font size and font whatever if you save the file in a format that provides some extension on formatting, say, like Rich-Text Format (RTF), Hypertext Markup Language (HTML... |
Forum: C++ Mar 28th, 2006 |
| Replies: 50 Views: 8,032 Hey lsu420luv,
Sorry for the reply like 8 hours later. You see, I live in Singapore and the reply you gave was at 4am SGT. Was asleep by then.
From what I saw in your previous post, I think you... |
Forum: DaniWeb Community Feedback Mar 28th, 2006 |
| Replies: 2 Views: 1,396 Hi cscgal,
I understand that clicking on the button will do in the Advanced Reply mode. I always use the Advanced Reply anyway. It's just that if there's a lot of inline code it is rather... |
Forum: Visual Basic 4 / 5 / 6 Mar 27th, 2006 |
| Replies: 5 Views: 4,586 I'm sorry but I didn't know that ToLower() is a VB.NET specific function. You see, I've never programmed in VB4/5/6 before, but I had done VB.NET and VBA so I thought I might be able to share... |
Forum: Visual Basic 4 / 5 / 6 Mar 27th, 2006 |
| Replies: 5 Views: 4,586 I believe Access does not have the LIMIT keyword, and that is only an extension specific to MySQL. MS SQL Server uses TOP but I don't think Access has this function. Also, Access and MS SQL Server... |
Forum: C++ Mar 27th, 2006 |
| Replies: 50 Views: 8,032 You might want to add two more global array variables first, assuming you need the unweighted and weighted:
int average[MAXMEMBERS];
int weightedScore[MAXMEMBERS];
Then you can calculate for each... |
Forum: DaniWeb Community Feedback Mar 27th, 2006 |
| Replies: 2 Views: 1,396 Dear moderators,
I would like to report a potential bug as in this post:
http://www.daniweb.com/techtalkforums/post200331-1.html
I used if (!(fin >> pianoPlayer[i])) in line 6 and the [i] was... |
Forum: C++ Mar 27th, 2006 |
| Replies: 5 Views: 2,468 I would suggest that you call the super implementation of new and delete, if that's possible. You must know that these operators are not mere malloc's and free's. Apart from Googling the source for... |
Forum: C++ Mar 27th, 2006 |
| Replies: 50 Views: 8,032 You need to have the underlined portion in your condition, as mentioned in my previous post:
void PrintReport(ofstream& fout)
{
for (i = 0; i < MAXMEMBERS; i++)
{
fout << "Piano Player: ";... |
Forum: Visual Basic 4 / 5 / 6 Mar 27th, 2006 |
| Replies: 15 Views: 5,281 Just rating this thread. Wasn't able to edit my previous posts to do this. Apparently there is a 30 minutes edit limit. |
Forum: C++ Mar 27th, 2006 |
| Replies: 50 Views: 8,032 That has already been done in my previous post (look at the underlined portion):
int ReadScores (ifstream& fin)
{
int i;
for (i = 0; fin && i < MAXMEMBERS; ++i)
{
if (!(fin >>... |
Forum: Troubleshooting Dead Machines Mar 27th, 2006 |
| Replies: 27 Views: 107,993 I know that this will go into the area of copyright infringement that's why I did not specifically state any methods to get the ISO. However, I believe that as long as you bought the software, even... |
Forum: C++ Mar 27th, 2006 |
| Replies: 1 Views: 3,029 I assume this is a directed graph because the file states two opposite edges for any two nodes.
You do something along this line:
ifstream fin("myfile.txt");
if (!fin)
cout << "Error" << endl;... |
Forum: Troubleshooting Dead Machines Mar 27th, 2006 |
| Replies: 27 Views: 107,993 You could try that. Alternatively you could search for a torrent that gives you an ISO for the Windows XP CD. Then you can burn that out for your use. So long as you have a legal CD-Key, you own the... |
Forum: Visual Basic 4 / 5 / 6 Mar 27th, 2006 |
| Replies: 2 Views: 1,448 You need to buy VB in the sense that you need to buy the IDE/compiler, because VB is Microsoft propietry. But I believe Microsoft provides a free version of the IDE/compiler; I do not know about VB... |
Forum: C++ Mar 27th, 2006 |
| Replies: 50 Views: 8,032 Sorry, but I do not fully understand what you have posted (no, I'm not pointing out the spelling mistakes):
What do you mean by "sentinal control"?
What do you mean by "disply the filled... |
Forum: Java Mar 27th, 2006 |
| Replies: 9 Views: 1,431 Well, I guess it's because we can't just give you a full solution without you even trying to work something out. Otherwise you wouldn't learn anything would you? However, out of good will I've... |
Forum: Visual Basic 4 / 5 / 6 Mar 27th, 2006 |
| Replies: 15 Views: 5,281 Sure. I'd be looking forward to that when I have the time to write a full tutorial out.
I just recalled this regarding the use of \' in an SQL statement. I would not recommend that, one reason is... |
Forum: C++ Mar 26th, 2006 |
| Replies: 50 Views: 8,032 It's not printing anything because you did not call the PrintReport method?
Your reading method seems to be flawed. Try this method (it's a modified version what I wrote earlier):
int ReadScores... |
Forum: Visual Basic 4 / 5 / 6 Mar 26th, 2006 |
| Replies: 15 Views: 5,281 I concur with what you've said. I would imagine that he tested this out in Access at the Query panel, where it is known for creating SQL statements that sometimes work internally only. Been there,... |
Forum: C++ Mar 26th, 2006 |
| Replies: 50 Views: 8,032 Five arrays... well you could try your original method I guess. What more can I say since the situation is like that... |
Forum: C++ Mar 26th, 2006 |
| Replies: 50 Views: 8,032 That's possible, but it could become very messy. It might be better to have three arrays, one for the judge ID, another for the score, and the last for the student ID. This student ID will allow you... |
Forum: Visual Basic 4 / 5 / 6 Mar 26th, 2006 |
| Replies: 15 Views: 5,281 It's hard to say because of the kind of data put into the database at a certain insertion.
I do not know if you have heard of this term "MVC", but it you have, I would like to first of all say... |
Forum: Troubleshooting Dead Machines Mar 26th, 2006 |
| Replies: 27 Views: 107,993 What nizzy1115 said is true, you could use any Windows XP CD to do this. But if you don't then I guess you will have to do with traditional servicemen. But really now, you don't have a Windows XP CD... |
Forum: Visual Basic 4 / 5 / 6 Mar 26th, 2006 |
| Replies: 15 Views: 5,281 Comatose, I'm sorry but I believe you got me wrong. I said:
I did not mean anything about escaping double quotes in VB. I know that I have to use Chr(34) to use the double quote... painful yes,... |
Forum: Java Mar 26th, 2006 |
| Replies: 11 Views: 2,556 Dear Richard,
I have done some testing and I did not encounter the problem you did. I tested several DOS programs like ping and java and of course javac, using java and even javaw to test out my... |
Forum: C++ Mar 26th, 2006 |
| Replies: 50 Views: 8,032 Hey lsu420luv, I would suggest the following way of implementing this part of your project. You would have to implement the output file logic yourself.
typedef std::map<int, float> Ratings; // Use... |
Forum: Visual Basic 4 / 5 / 6 Mar 26th, 2006 |
| Replies: 15 Views: 5,281 I agree with the frequency of this mistake. Normally what I would do in Java if I'm not using a PreparedStatement is something to this extent:
String sql = "INSERT INTO [MyTable] ([VChar1], [Dbl2],... |
Forum: Java Mar 26th, 2006 |
| Replies: 11 Views: 2,556 Dear Richard,
I actually wanted to see the command string you passed into Runtime.getRuntime().exec(), not the code in the sense of just Runtime.getRuntime().exec(). We all know that this Java... |
Forum: Java Mar 26th, 2006 |
| Replies: 3 Views: 2,752 Dear Tigerdude, glad that you've worked it out. Well, you shouldn't hold it on your lecturer 'cause people do make mistakes. Logic error anyone? :)
Anyway, what I meant in the first point is that... |
Forum: Visual Basic 4 / 5 / 6 Mar 26th, 2006 |
| Replies: 15 Views: 5,281 Oh yes, you might want to post this in the database forum next time... I think this is more of a database question than a VB question. I would not have spotted it if I didn't happen to venture into... |
Forum: Visual Basic 4 / 5 / 6 Mar 26th, 2006 |
| Replies: 15 Views: 5,281 Dear Sul, I do not know if you know about Queries in Microsoft Access.
Queries in Microsoft Access are more commonly known as "Views" in the database world. They behave exactly like Tables but... |