345 Posted Topics
Re: Write some scripts that hammer the site and all the underlying services involved with work to do. At some point there will be something in the chain that can't keep up. A denial of service attack on your own site. Hopefully you can find that breaking point and figure out … | |
Re: Well I see the keyword "string", so you are using C++. So don't limit yourself to C, which you are doing. Stringstreams, containers, and algorithms are available in C++. If this a bunch of numbers separated by commas, go through your string and replace the commas with spaces, create a … | |
Re: If you know what you're doing (which I don't), you can integrate MS Excel with MS Access and MS SQL Server, Visual Studio, etc. etc. and get the best of both worlds (spreadsheet that connects to databases). Again, I don't know how to do that, but I've seen folks that … | |
Re: > As when it comes to the topic, designers are paid to make website beautiful not visible for everybody. When I'm looking at faraway board, I can't really complain at my myopia (near-sightedness), people tell me to get glasses. I guess we live in the world where we need to … | |
Re: > what a pity, I can really need some help. Not a good way to get help. > I guess you didn't get the hint Ray. So here it is, no offense intended. Post your question as a new post. If you are looking for testers, go ahead and say … | |
![]() | Re: Seems like a job for getline using a comma as the delimiter. http://www.cplusplus.com/reference/string/string/getline/ Another way to do it is to read a line at a time, then use the one of the find functions in the string library along with the substr function and split the line into strings delimited … |
Re: > Why not use loops? Is there something you haven't told the forum such as this is a homework assignment or a code challenge? Has to be. Lots of teachers intentionally start off by making students do things a ridiculously difficult way by adding needless constraints like "no loops". Then … | |
Re: > C:|User\Joan's Computer\new\new\jaAKSp This is certainly an odd path for Java or anything else. Agree with the others regarding you need to provide more details, one of which is whether this path actually exists on your computer or your registry. If it does, you should probably delete it. I can't … | |
Re: > watching from over the pond it looks like there are going to be some very short fingernails by tomorrow... Bizarrely enough it feels to me that non-Americans are more stressed out over our election than we are, our normally unflappable friends to the north in particular. My Canadian friend … | |
Re: Regarding the due at midnight part of your post, I won't give you the "You should have started sooner" lecture. We've all been there. That said, forums usually don't work in a way that allows that. People respond in their own time and it may not be before midnight. For … | |
Re: You'll probably need to refine your question. You have it tagged with two different languages. You don't "read a file to get its bits". You "read a file to get its bytes". So to "read a file to get a bit", you do a few things in order... 1. Figure … | |
Re: > Or, you could write a similar walker but for arbitrarily nested Collections Is there a difference between your "walker" and an "iterator"? "Walk", "traverse", "iterate", these seem like synonyms. Just thinking about naming conventions and a standard way of doing things. I note that you are not using/extending any … | |
Re: > @OP. Reinstalling browsers and most apps keep settings. This means a reinstall is not a reset in the case of say Chrome, Firefox and other apps. Yup. However, the good news is that you can go into the settings and clear the cache, cookies, saved passwords, and there's often … | |
Re: > heh heh - you can almost write the script by now :) Yep, this thread definitely pinged my Troll Detector. Note "Troll Detector", not "Spammer Detector". A pure spammer wouldn't bother to make that intro, then do the exact opposite, specifically targetting and praising the very people (Admins) who … | |
Re: > I don't want to do anything with him. He is just very close to rest of my family. So I just want to make an excuse and I thought legal issues will be a good excuse. Like they say, you can choose your job, but you can't choose your … ![]() | |
Re: > it doesn't care about social engineering If you're in the security business, you had better care about social engineering. That goes for all Operating Systems, all hardware, all applications, all programming languages. Computer security, like all security, takes time, effort, and commitment. Whenever you get a lazy or greedy … | |
Re: Verbatim copy/paste of homework doesn't fly here. Post a precise question when you're actually stuck."Stuck" means you've done everything you can do so far, which you'll post along with the question to show you've put in effort. No one gets an assignment like this off the bat, so you should … | |
Re: I'm thinking your problem has little to do with enumerated types versus integers and converting between the two. Instead it probably has to do with using pointers incorrectly. Assuming `VoidPtr` is typedefed as `void*`, `VoidPtr*` would be `void**` and thus `animalArray[i]` would be a `void*`. Thus your comparison of whether … | |
Re: > If this theory is true, how can a brand new website over rank an established one? Since the established one is ranked on 1st place and gets a lot of visitors, how can the brand new site beat the established one? Can some one explain, or confirm theory? I'm … | |
Re: > No one uses Pascal any more I was thinking about that when I saw Jim's post about homework. It appears to be homework to me too. I can see PASCAL potentially being used occasionally to handle some legacy code written in PASCAL, but even that seems far-fetched by now. … | |
Re: > Looking for ones that are optimized for **this sorta thing**, and will easily accept some large font writing on them **while still being readable**. What exactly is "this sorta thing"? I ask this in all seriousness as I'm generally out of the loop when it comes to design issue. … ![]() | |
Re: > Could some of you give me your opinion on the site and what I should change/add? > I make money off of ad revenue Why would I pay you money to advertise on your site? Note, this is not intended as combative, it's the question that I would ask … | |
Re: > What language is this being coded in? Tagged as C++. > How do I make a line of code that would go back to a part of a program without making it a loop? C++ has the goto statement. I know it's blasphemy to many to use goto, but … | |
Re: Prints fine for me. You have the print lines commented out though. Why? | |
Re: You are no longer in the world of pseudocode with this question. Converting/displaying is going to be software-specific. I actually took the time to install this Flowgorithm software. If there is an option to directly copy/paste the code you posted and run it, I don't see it. Looks like you … | |
Re: If flipCoin == tails Then Set flipCoin = tails Look at this code. Does it do anything? If not, take it out. Look at all your code. You need to stick some comments in there. Figure out how you would do it without a computer. Then code. What do you … | |
Re: A few things jump out at me. "Access denied" might not mean this is a corrupted file. Try this... DOWNLOAD the file (download, don't open) to somewhere you definitely have full permissions (ie Desktop or Documents folder). Scan with antivirus. Check file permissions on file. Change if needed. You might … | |
Re: > 1. Easiest possible use for a complete Java novice (e.g. require no knowledge of error handling). > 2. As bombproof as possible (e.g. deal sensibly with malformed input, unexpected eof). > 3. Unrecoverable errors fail hard and fast with a good explanation (e.g. throw an unchecked exception with an … | |
Re: Ditto the question regarding "changes on the fly". That could mean a lot of things. It could mean [this](http://stackoverflow.com/questions/6211429/callback-on-memory-access) or something else. You might need to provide an example. For example, what is supposed to happen when I do this? s1 instance; instance.Val3 = 7; I just changed Val3. If … | |
Re: > I would expect the : Exit from function to be executed only one time See Jim's post. > There is only one way to exit from the function and that is by falling through to the end. void message(int numbers) { cout << "Entry to function #" << numbers … | |
Just submitted a reply to https://www.daniweb.com/programming/threads/506291/recursion-call-on-exit at roughly 3 pm California time (15 minutes ago) using Windows 10 Chrome. It's either lost or there is an extremely long delay. I was watching carefully. I know I pressed the right button ("Submit Your Reply"), I know there was no error message … | |
Re: Year 0 tuition = 6000 Year 1 tuition = Year 0 tuition times 1.02 Year 2 tuition = Year 1 tuition times 1.02 Year 3 tuition = Year 2 tuition times 1.02 Year 4 tuition = Year 3 tuition times 1.02 Year 5 tuition = Year 4 tuition times 1.02 … | |
Re: > They"unlicence" covers my personal position perfectly. Mine too. I understand the need to cover our bases with something like this with this boilerplate. In this particular case, I wouldn't imagine there's anything to worry about. It's a couple of levels above "Hello World" and intended to be. Thus there's … | |
Re: On my mobile, somehow I keep losing my post... Concur with RProffitt. You need to make it clear that you're expecting to do the bulk of the effort yourself. Learning to program involves banging your head against a wall trying and failing over and over again, to a point. Banging … | |
Re: > defeat ad blockers and load anyways? Wouldn't this be a textbook definition of malware/spyware? If somewebsite.com is getting paid by someads.com to deliver ads to me when I browse somewebsite.com and they want to know how/when/where I am using somewebsite.com in order to optimize the ads delivered to me, … | |
Re: You first have `next` defined as a `Point*`. 11 is not a `Point*`. Then you redefined it as an `int*`. 11 is not an integer, not a pointer to an integer. So you have next defined as a pointer, not an integer, in both definitions. That is your error. I … | |
Re: > You are never calling the member a() and b() functions to initialize the variables, so they contain random data. a() and b() are the default constructors. They are called when the objects are created on lines 26 and 27. var is initializized to 0 and 12 in those default … | |
Re: public static void Main(String[] args) "main" is case-sensitive. You have "Main". It's looking for "main". Change "Main" to lower-case ("main"), recompile, and give it a try. | |
See this thread. https://www.daniweb.com/programming/software-development/threads/506236/may-i-please-have-help-with-a-cannot-find-symbol-error The first line of my response is code and I did not forget to indent. I also used the `</> Code` button. It turned green like it should, so it looked fine. Then I hit submit and the code was in regular text. Edited it a … | |
Re: You're close. Using ! as factorial as is used in mathematics and assuming i is the number of iterations here, if i is 5, e is approximated to 1 + 1/1! + 1/2! + 1/3! + 1/4! + 1/5! (so the ith term is 1/i!). e is the sum of … | |
Re: Your post is a little vague. You say you are a beginner and attempting to solve this problem using arrays and if-else statements and having difficulty. However, you do not specify what in particular you understand and what you are having difficulty with. In addition, there are overall approach to … | |
Re: > here is an offline version I made it using c# I see exe files, but no code. This is a programming forum. Are you going to share the code? | |
Re: I'm seeing this for the getline spec. istream& getline (char* s, streamsize n ); http://www.cplusplus.com/reference/istream/istream/getline/ So you are providing an argument of type Title and the function expects a `char*`. Seems to me you need to declare a character buffer, then write a function that takes a `char*` and returns … | |
Re: > I looked up https://www.google.com/search?q=ikd and can't tell what you meant there. Wow, one of those cases where your mind subliminally reorders the letters. Didn't even notice "ikd". I read it as "idk" / "I don't know". > Ikd what the error is telling me as when it compiles, no … | |
Re: I'm seeing an fstream object defined on line 31 without a filename or any parameters specifying how to open it, then used on lines 33 and 34, and I'm seeing an ofstream object defined on line 32 with a filename and opening parameters specified, but used nowhere. I'm guessing that's … | |
I've always been bad with regular expressions syntax. I am converting text into Bezier curves, polygons, etc. Part of that is identifying points in the form `(x,y)` where x and y are coordinates in a graph. I am extracting x and y as doubles and creating Point objects with those … | |
Re: > Your follow up gives me the feeling you are afraid to try things. Not necessarily a bad thing if one is not confident in one's ability to make controlled experiments that one can fix if those experiments don't work. When my brother's internet went down, he was not comfortable … | |
Re: It's not obvious to me what you intend for this code to do. On lines 10 and 18, your comment suggests you intend to remove multiple elements on these lines. However, I see ONE argument given to the erase function. According the the spec, supplying ONE argument will remove ONE … | |
Re: > 5 years ago! Two months ago as far as I can tell from the link you posted (July 20, 2016) and two months ago the same thread is started here (actual date unknown, any way to view the actual date/time stamp on posts? "Two months ago" is a bit … ![]() | |
I am developing a Graphics package in Java that allows the user to draw triangles, squares, circles, etc. and group/move/manipulate them in order to make animated stick-figure movies. I have an interface that allows users to add figures with GUI buttons, drop-downs, mouse-clicks and the like, and also a text … |
The End.