Search Results

Showing results 1 to 40 of 60
Search took 0.03 seconds.
Search: Posts Made By: death_oclock
Forum: C Mar 30th, 2009
Replies: 10
Solved: minmax
Views: 713
Posted By death_oclock
Ark's approach is much neater and most likely works. Your solution is very hard to read; the looping approach makes more sense.
Forum: C Mar 30th, 2009
Replies: 10
Solved: minmax
Views: 713
Posted By death_oclock
Purely for the sake of simplicity, I would go with this route (doesn't use a second set of variables):


int main( int argc, char *argv[] ){
int *numberlist, i, n, min, max ;

n = atoi(...
Forum: C Mar 5th, 2009
Replies: 4
Views: 1,769
Posted By death_oclock
For the purpose of adding a one dimensional array works well enough in representing a matrix. For more complicated operations though, it would likely be easier to define a matrix like int...
Forum: C++ Mar 1st, 2009
Replies: 12
Views: 648
Posted By death_oclock
Try posting a sample file generated by your program. Off the top of my head, I can't think of anything that would cause this.
Forum: C++ Mar 1st, 2009
Replies: 12
Views: 648
Posted By death_oclock
Have you tried uploading it again? Tried uploading other files? This seems to have nothing to do with your C++ program.
Forum: C++ Mar 1st, 2009
Replies: 12
Views: 648
Posted By death_oclock
The browser wouldn't make a difference if you use the same one to view pages on you local server as on your byethost server. Have you looked at the html source of both pages? I use byethost myself...
Forum: C++ Mar 1st, 2009
Replies: 12
Views: 648
Posted By death_oclock
Does your page try to run the .exe to generate the new page? Byethost disables the running of executables for some pretty important security reasons.
Forum: PHP Feb 26th, 2009
Replies: 10
Views: 1,137
Posted By death_oclock
Do you already have the part of the query that matches the site? Add to that (with an AND clause) a MATCH(field) AGAINST('value') as demonstrated in the link I gave you.
Forum: PHP Feb 26th, 2009
Replies: 10
Views: 1,137
Posted By death_oclock
Try looking at this page (http://hudzilla.org/phpwiki/index.php?title=Advanced_text_searching).
Forum: PHP Feb 26th, 2009
Replies: 18
Views: 3,713
Posted By death_oclock
Oh wow, how did I miss that part? Sorry 'bout that one.
Forum: PHP Feb 26th, 2009
Replies: 18
Views: 3,713
Posted By death_oclock
Honestly, you have been given the proper solutions. Sending (and therefore, reading) your forms with the POST method sends variables through the headers sent. For this purpose, however, I would...
Forum: C++ Feb 21st, 2009
Replies: 14
Views: 868
Posted By death_oclock
While this is not critical in any way, you should note that the large outputting section at the bottom won't actually print any of the embedded quotes. In this line:
cout<<"Each ""generation"" eight...
Forum: C++ Feb 21st, 2009
Replies: 5
Views: 829
Posted By death_oclock
Instead of making us download your .zip file, post some sample lines of the .dat file, including ones that do work and ones that don't (ie. Truman).
Forum: C++ Feb 21st, 2009
Replies: 6
Views: 434
Posted By death_oclock
When AncientDragon wrote Code[h] != 0, his code was correct. Yours isn't. Why? AncientDragon's codes array was a string literal, which automatically has a '\0' or 0 value at the end. Your array does...
Forum: PHP Feb 16th, 2009
Replies: 7
Views: 482
Posted By death_oclock
Are you familiar with databases? Databases contain tables, tables contain records, or "rows". Each row has multiple "columns" of data. I am saying that each record should have information stored for...
Forum: PHP Feb 16th, 2009
Replies: 7
Views: 482
Posted By death_oclock
Each mysql record is one message, contains the message body, title, time etc. and the users it is to and from. The user fields would optimally be references to the ids inside a user table. You can...
Forum: PHP Feb 16th, 2009
Replies: 2
Views: 583
Posted By death_oclock
I learned so much from this (http://hudzilla.org/phpwiki/index.php?title=Main_Page) tutorial.
Forum: C Feb 14th, 2009
Replies: 6
Views: 454
Posted By death_oclock
He meant for you to look at your notes. Doesn't using the resources you have make sense?
Forum: PHP Feb 13th, 2009
Replies: 4
Solved: Help please!
Views: 316
Posted By death_oclock
No hard feelings. You should mark this as solved, however. It makes a difference.
Forum: PHP Feb 13th, 2009
Replies: 4
Solved: Help please!
Views: 316
Posted By death_oclock
I hope you mean "can't save .php files"! And I hope you're lying, because you can save a file with any file type you want :\
Forum: PHP Feb 13th, 2009
Replies: 4
Views: 429
Posted By death_oclock
Alignment like notepad, add styles? Your question is way too vague for anyone to know how to help you. Some details would be quite useful!
Forum: C Feb 12th, 2009
Replies: 6
Views: 1,007
Posted By death_oclock
A semicolon can be useful in some preprocessor commands (probably some bizarre scenario), for example its perfectly valid in a #define statement. In this case we do need to know the compiler and its...
Forum: PHP Feb 12th, 2009
Replies: 9
Views: 457
Posted By death_oclock
If you go back to the origional code you posted, a quick fix would be to quit program execution after outputting that message. So you could change that section to:
//Let the user know everything...
Forum: PHP Feb 11th, 2009
Replies: 24
Views: 969
Posted By death_oclock
<td width=""><p><?php echo wordwrap($message, 75, "<br />", true); ?></p></td> Change 75 to whatever width you want.
Forum: C++ Feb 9th, 2009
Replies: 12
Views: 631
Posted By death_oclock
No, the copy constructor is used only when called explicitly or when an object is being initialized. You could, however, have the assignment operator call your copy constructor.
Forum: C++ Feb 8th, 2009
Replies: 11
Views: 844
Posted By death_oclock
int fileSize = strtoul(parts[5].data(), NULL, 0);
strtoul is defined in cstdlib
Forum: C++ Feb 8th, 2009
Replies: 12
Views: 631
Posted By death_oclock
It will not modify and addresses but it will set all of the values of shoe_copy to the values of shoe1. It wont call a copy constructor. I have seen this called a "shallow copy" (here...
Forum: C Feb 8th, 2009
Replies: 22
Solved: A Diamond
Views: 1,288
Posted By death_oclock
My problem was not with your skill level because yes, I have been there. My problem was with your attitude.
Forum: C Feb 8th, 2009
Replies: 22
Solved: A Diamond
Views: 1,288
Posted By death_oclock
Maybe you should. Programming can be confusing and frustrating. If you can't deal with that even from a simple problem like this, maybe programming isn't for you.
Forum: PHP Feb 8th, 2009
Replies: 15
Views: 901
Posted By death_oclock
TommyBs is right. You don't need 's around your field names, and definitely don't use `. Is there in fact a field named status? And try doing this query directly in MySQL (via phpMyAdmin if you have...
Forum: PHP Feb 8th, 2009
Replies: 3
Views: 470
Posted By death_oclock
Hmmm, so you look for records with the user's selected year in it, thats where I would have started. But if we don't find any such rows, then it must already exist? I think not. Try $total > 0.
Forum: PHP Feb 8th, 2009
Replies: 15
Views: 901
Posted By death_oclock
Backticks are not the same as single quotes. read (http://us.php.net/language.operators.execution)
Forum: C Feb 8th, 2009
Replies: 22
Solved: A Diamond
Views: 1,288
Posted By death_oclock
printf ("*",i);
What is that supposed to do? Read up on printf. Just a hint, it doesn't print "*" i times. And adding a tab before every *? I don't think thats what you want.
Forum: C Feb 8th, 2009
Replies: 22
Solved: A Diamond
Views: 1,288
Posted By death_oclock
It may seem strange at first, but try making the diamond yourself. Go through it slowly and see exactly what your thinking is on how to do it. Unless you can understand it yourself, you won't be able...
Forum: C Feb 8th, 2009
Replies: 22
Solved: A Diamond
Views: 1,288
Posted By death_oclock
I don't see you putting any spaces to the left of your rows. C won't automatically middle align it for you...
Forum: C++ Feb 8th, 2009
Replies: 11
Views: 844
Posted By death_oclock
I have never seen this sort of thing and its hard to imagine C++ would include such a feature. Just for curiousity's sake, could you provide a link to where you found this example? And AncientDragon...
Forum: PHP Feb 6th, 2009
Replies: 24
Views: 969
Posted By death_oclock
Does the text overflow the width of the paragraph? Let me know if there is any CSS that would affect the <td> or the <p>.
Forum: PHP Feb 6th, 2009
Replies: 24
Views: 969
Posted By death_oclock
Have you tried setting the width of <td> to an actual value? <p> tags should word wrap automatically if the width is specified.
Forum: PHP Feb 6th, 2009
Replies: 24
Views: 969
Posted By death_oclock
In here:
<td width=""><p><?php echo nl2br($message); ?></p></td>
Forum: C Feb 6th, 2009
Replies: 4
Solved: getString
Views: 980
Posted By death_oclock
Scanf can look simple, but it actually does a lot of work under the hood which obviously will slow down your code. Also, it can cause lots of problems if you don't know exactly how it is matching...
Showing results 1 to 40 of 60

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC