Forum: C++ Mar 1st, 2009 |
| Replies: 12 Views: 638 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: 638 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: 638 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: 638 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: C++ Feb 21st, 2009 |
| Replies: 14 Views: 859 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: 795 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: 429 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: C++ Feb 9th, 2009 |
| Replies: 12 Views: 624 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: 826 int fileSize = strtoul(parts[5].data(), NULL, 0);
strtoul is defined in cstdlib |
Forum: C++ Feb 8th, 2009 |
| Replies: 12 Views: 624 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: 11 Views: 826 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: C++ Jan 24th, 2009 |
| Replies: 5 Views: 378 Good point. With both under your belt, not only will it strengthen your overall programming knowledge, the flexibility it would give you would be more impressive on a resume. |
Forum: C++ Dec 31st, 2008 |
| Replies: 5 Views: 474 There's a good reason why you're not supposed to feed the bears. If you give them something for free, they'll expect that all the time and won't figure out how to feed themselves. It would seem that... |
Forum: C++ Apr 18th, 2008 |
| Replies: 11 Views: 1,512 You could use the WinAPI file functions (http://msdn2.microsoft.com/en-us/library/aa364232(VS.85).aspx) which allow you to set sharing permissions (as well as other flags and such for the sort of... |
Forum: C++ Apr 18th, 2008 |
| Replies: 10 Views: 1,049 He didn't mean you should change it to 0, he meant thats what your code equated to. He meant you should either set or prompt for a product number. The first product in the display is still zero... |