439 Posted Topics
Re: What, exactly, are you looking for? An explanation of an algorithm for doing the inversion? Help writing code for an algorithm you have? Or perhaps you don't need the program (source code) itself, you just need a tool that does the inversion? In this case, most scientific calculators have that … | |
Re: Hello, Matthew. Welcome to the DaniWeb forums. We are glad you joined us. These forums are an excellent resource: lots of good information and many knowledgeable members here. It is a great place for the sharing of ideas. I am sure you will learn a lot here. See you around … | |
Re: Hello, Lisa. Welcome to the DaniWeb forums. We are glad you joined us. These forums are an excellent resource: lots of good information and many knowledgeable members here. > Alias: N1NJ4 C4T :) What is the alias for? In any case, welcome. See you around Daniweb. | |
Re: Hello, Ezekiel. Welcome to the DaniWeb forums. Maligayang pagdating. We are glad you joined us. These forums are an excellent resource: lots of good information and many knowledgeable members here. It is a great place for the sharing of ideas. I am sure you will learn a lot here. See … | |
Re: Right after the input line in the loop (line # 21), you should output the **repeat** variable, just to make sure the program thinks it is what you think it is. | |
Re: What kind of output *are* you getting? Are you at least getting the numbers input to the array correctly? | |
Re: I *come* to Daniweb because it is a useful resource, although I might not *post* frequently. It is a huge collection of information and many knowledgeable members so, when I need help coding or something, looking for it on Daniweb is a good place to start. If I cannot find … | |
Re: Hi, Collin. The variables *d and *e are never passed passed into the function QuadFormula. The main program calls the subroutine, and assigns *d and *e to result1 and result2, without ever passing them in to the routine. Also, I would recommend initializing variables before using them. That way you … | |
Re: My pet peeve is Axe body spray. It is everywhere I go: in public transit, the malls, etc. I think it smells terrible, and some young guys seem to bathe in it. I can't believe people are paying good money to make themselves smell like *that*. I prefer the smell … | |
Re: Sounds like a puzzling requirement. After all, why would the client care what happens inside the program as long as the program works properly? One suggestion I can make: if you are *inputting* integers padded with leading 0s, make sure to specify the radix parameter, otherwise the numbers might be … | |
Re: The Sieve of Eratosthenes is popular. You might want to start there. | |
Re: You mean Visual Studio 2012? I was planning to. I recently purchased a brand new computer and was going to install the latest version of Visual C++ Express on it. However, then I read that this version of compiler will build Metro applications only. I want to stick with Windows … | |
Re: It is one more site on which you can promote your business. If your corporate profile includes the keywords that other LinkedIn users search for, your site will come up in those searches (assuming your Profile page is public). I don't think it results in massive traffic, but it will … | |
Re: Depending how much information you want to transfer out of the **switch** statement, you might have to use several temporary variables. For example, say the integer variable *TestVar* equals 6 and caused Case 3 to be true. If you went straight to a **break** from there, you would know that … | |
Re: I would recommend *against* using a **switch** statement in this situation. A **switch** statement is meant to look at an integer value, compare it against several options, and execute simple actions based on that comparison. It should not be used to branch into compound statements. Especially not if the initial … | |
Re: What exactly are you seeking? A platform on which to have a blog? "kingsweb" made a couple good suggestions. Blogger is a hosted solution that is popular. WordPress offers a hosted solution too, or many templates for self-hosted blogs. Or there is TypePad. Or many others. Some hosted blogging solutions … | |
Re: The built-in **help** function offers a lot of information about how to use the **history** command too. Here is what I got when I ran the **help** command on **history**: help history history: history [-c] [-d offset] [n] or history -anrw [filename] or history -ps arg [arg...] Display or manipulate … | |
Re: Hmmnnn . . . No restrictions as to whether the code is old or new? Looks like an opportunity to dig up some old code and share it. It is well-tested and I know it works, but it is pretty specialized, so might not have broad appeal. (Can you guess … | |
Re: Hello, Dan. Welcome to the DaniWeb forums. We are glad you joined us. These forums are an excellent resource: lots of good information and many knowledgeable members here. It is a great place for the sharing of ideas. I am sure you will learn a lot here. See you around … | |
Hi, folks. I have written some pretty complicated programs in Javascript (in terms of the code itself), but I haven’t experimented much with the nuts-and-bolts of Javascript. In particular, I have written all my programs as single blocks of code. For example, I have written several programs to solve for … | |
Re: There is no definite time for when a site starts showing up in search results. And even if Google knows about a site, that site may show up so far down the list of results (say, page 14) that, effectively, it doesn't exist in Google's results. (I mean, does anybody … | |
Re: (This post should not be in the **Internet Marketing** forum, but I am willing to offer some advice.) Is it your own website? Do you think it has been hacked? Google's diagnostics tool might turn up *some* problems, but it might miss others. If it really has been hacked, you … | |
Re: Is your problem the algorithm? A particular part of your own code? Initially setting up the system? If it is the C++ coding part of the task, post what you have now and we'll try to help you debug it. | |
Re: As others have said, it depends upon your application. For most standard software applications, Windows offers the most options, although you could probably find comparable applications for Linux. It would be a little harder though. The difference would be the price: most software packages for Windows are commercial for-sale products, … | |
Re: I usually just copy from a PDF document and paste to a plaintext document. Do you really need a program to do that? | |
Re: I think one way would be to just provide an example, wouldn't it? For example, 2^2 + 3^2 = 4 + 9 = 13 13 is a positive integer, so you have proved that there is a positive integer that can be expressed as the sum of the squares of … | |
Re: **double** is usually used for floating point variables (i.e. - they require decimal points). The results of a factorial calculation are positive integers, so you were fine leaving it as **int**. To extend the range, you could use **unsigned int**. Like "WaltP asked: what is the point of the variable … | |
Re: What level of math? I know of several forums, but their levels vary. Are you a high school student? First-year undergraduate university student? etc.? | |
Re: I don't know if you can do this, using the existing format. You could probably divide names up by line breaks, but then dividing names into first, middle, and last names would be difficult. You would have to require users to input the names in a particular format. Otherwise, the … | |
Re: Do you need to save the numbers as they are entered? If not, you only need one input variable and one sum variable. Also, will you always take in only four variables, or an unknown number of variables? I would do something similar to the following: int a, isum = … | |
Re: I am curious: besides being an interesting programming exercise, do these numbers have any practical applications? From what applications or situations do these numbers arise? | |
Re: Like WaltP already suggested, go through your code and find all the places where division occurs. I see it on lines 25 and 43. Insert a line or two before the division statements that check to see if the denominator is 0: e.g. - `if (a[i][i] == 0) printf("\nAttempted division … | |
Re: Hello, Kareem. Welcome to the DaniWeb forums. We are glad you joined us. These forums are an excellent resource: lots of good information and many knowledgeable members here. It is a great place for the sharing of ideas. I am sure you will learn a lot here. See you around … | |
Re: I agree with what JorgeM said: get good at HTML and CSS before moving on to other things. Then maybe Javascript or PHP. Depends on your own goals. Do you have a specific plan in mind for your website? Perhaps you already have a few functionalities in mind (?). I'd … | |
The latest NASA rover to be sent to Mars, Curiosity, successfuly landed on Mars late yesterday evening. I think this is wonderful. Anybody else in Daniweb following the progress of this mission? | |
Re: > Visual C++ is also a good alternative but I couldnt find any command for compiling and running the code. It is there. If it wasn't, I doubt VC++ would be used much. In addition to going through the menus, you can also do it with hotkeys. For example, to … | |
I am putting together a wish list for a new computer. I would like it to be dual-boot: Windows 7 and Linux (probably Ubuntu because I am not proficient with Linux). Any advice, tips, or suggestions for factors I should take into consideration when selecting a new computer? Does type … | |
Re: I think "m4ster_r0shi" gave the best answer in his first post. There is no guarantee that the results will be nice, round, numbers. Even if the square root function were to return a whole number, the next step is to subtract it from (-b) and then divide that result by … | |
Digg and Delicious used to be two of my favorite sites; I would visit them daily. However, Delicious is making some significant changes lately. I found some of my favorite links from the Delicious front page; however, presently the Delicious front page has a couple images, which don't appear to … | |
Re: What's wrong with a well-known product like vBulletin (or inVision's IP.Board)? The fact that they *are* well-known means visitors don't have to re-learn features and capabilities. I'd recommend using vBulletin for a new forum. That way you can focus on building up your website, and traffic, instead of also having … | |
Hi, I am wondering if there is a way to include subscripts or superscripts in Daniweb? I just answered a question about polynomials and it would have been nice to have more math symbols available to discuss math-related topics when they come up. For example, instead of writing a polynomial … | |
Re: Hello, Andrei. Welcome to the DaniWeb forums. We are glad you joined us. These forums are an excellent resource: lots of good information and many knowledgeable members here. It is a great place for the sharing of ideas. I am sure you will learn a lot here. See you around … | |
Re: You are in the Javascript forum, but the title of your post refers to Java. Which language are you using, Javascript or Java? In what format is the data? Is the data already saved in a string? An array? Are the values always integer? Or will they be float? Double? | |
Re: This question would have been more appropriate in the "Software Development"->"Computer Science" section of these forums. What, exactly, don't you get? The algorithm itself? The C++ coding part of the problem? . . . Why don't you post what you have done so far, and we'll try to help you … | |
Re: Hello, "adylo". Welcome to the DaniWeb forums. We are glad you joined us. These forums are an excellent resource: lots of good information and many knowledgeable members here. It is a great place for the sharing of ideas. I am sure you will learn a lot here. See you around … | |
Re: Have you tried to write this function? Post what you have so far, and we'll try to help you with it. If you find a duplicate entry, and you remove it, what replaces it? | |
Re: > Anybody else excited about this? Not excited, my nose is too close to the grindstone right now to look up and pay attention to the greater world at large, but I do have an interest in scientific developments. Until it affects my day-to-day life, I don't know what to … | |
Re: Have you received an orientation package from the university? That might offer some suggestions as to what kind of technical specs they recommend when purchasing a computer for student use. Myself, I think any computer running Windows is okay (I don’t think you’ll need a dual-boot Linux machine). Programming, AutoCAD, … | |
Re: Hello, "Campus Report". Welcome to the DaniWeb forums. We are glad you joined us. These forums are an excellent resource: lots of good information and many knowledgeable members here. It is a great place for the sharing of ideas. I am sure you will learn a lot here. See you … | |
I had posted a photo of myself (jpg) on a Wiki (uses MediaWiki) and updated it recently. Now I am wondering how to delete the old photo. The link *to* the image has been deleted, but the image itself is still there, taking up space on the server. I didn't … |
The End.