5,331 Posted Topics
Re: You need to implement the order() function (and others) outside of main(). Java let's you implement functions inside others, but not in C or C++. Also, please don't ask us to analyize 400+ lines of code. That is just disrepectful of our time and efforts. | |
Re: Each case statement needs a 'break;' command at the end, otherwise it will fall through to the next, resulting in your experienced output. Also, I would suggest that you to a case-conversion for weight in the switch() statement so you don't need stuff like `case 'S': case 's':` constructs. | |
Re: The size seen is the file system size, which was set to 250GB originally as that was the size of the smaller drive. You need to go into the disc manager tool and expand the file system. On linux you would do this with the command resize2fs for ext2/3/4 file … | |
Re: From your post I assume you mean that your printer has a usb or SD card port? This is a matter of software. The Lexmark applications and drivers should provide you the means to do this. That is about as much help as I, personally, can provide. | |
Re: We aren't your code slaves. You code it, post it here, and then we critique it or help you fix errors and/or problems. | |
Re: You need to learn how to parse text data. 1. Get field up to delimiter 2. Go to #1 until you reach the end of the line. Each field goes into a variable. Once you have reached the end of the line, you can store that data as appropriate for … | |
Re: Never having used BlueJ I cannot answer #3. As for #1, if two objects of the same class have the same state, then at that time, they are identical, in that A == B. That said, you can change the state of one, and then they will no longer be … | |
Re: Please don't ask us to do your homework for you. Write the code and then post it with your errors or problems here and then we can help. | |
Re: You can use a series of if/else branches, or you can create a set of functions for each operator and create a 2d array or 2d vector of operators and the associated function. In the latter method, you look up the operator, and call the associated function with the provided … | |
Re: Good question nitin1. I use cmake for appropriately constructed projects, but have never built a project for it. I will have to do some research and get back to you. In the meantime, perhaps another user here can provide some clarity on the subject. | |
Re: And your question is? We can't tell you what topics to do your research in. Always, choose something that is of personal interest to you, if possible. The domains you mention are all very different, require different approaches, different tools, and different mindsets. | |
Re: Try these search terms in Google or DuckDuckGo: "netbeans on tomcat configuration". You will get quite of number of good articles on how to do it. Examples: 1. http://wiki.netbeans.org/AddExternalTomcat 2. https://technology.amis.nl/2012/01/02/installing-tomcat-7-and-configuring-as-server-in-netbeans/ 3. http://stackoverflow.com/questions/9131764/how-to-setup-tomcat-server-in-netbeans | |
Re: You have typedef'd PTR_VALUE, but in this function: int initialize(PTR_VALUE value_array) { value_array = (PTR_VALUE)malloc(sizeof(PTR_VALUE) * 94); return 0; } You initialized the value_array parameter, but it is never returned to the calling function, or set as a global or static variable. IE, it has taken up memory, but it … | |
Re: Try `const double pi=3.14;` `const double e=2.718281828;` instead. That's what ddanbe was trying to tell you. | |
Re: You are not providing enough information. What exactly are you trying to do? Build your own web server with C++ using winsock API's to handle the network interfaces? Something else? What? | |
Re: We get a lot of beginners and students here. Post your questions, code, error messages, problems and we will help if possible. | |
Re: What have you done so far? I have developed PHP/MySQL applications (for internal purposes at Nokia). Making it an application? What does it do? Does it serve a rational purpose? Please describe what it does, and how it does it. | |
Re: To add to what JorgeM said, what OS are you running and which version of Skype? | |
Re: The code says you need at least 1 argument, the number of processes to run. IE, you need to execute it as `./chainofn N` where N is the number of processes. You are not specifying that argument, hence the error. | |
Re: Did you just turn it off, or did you shut it down? If it is running and you shut it off (power down without shutting down) you can do a lot of damage, mostly to the disc drive. Can you get into the BIOS? | |
Re: What Nathan is saying (nicer than I would) is that we don't do your homework for you! | |
Re: Just remember, we don't do your work/homework for you. Make an effort, post the code and errors or problems you are having, and then we can help. FWIW, this can be coded in about 2 lines in most programming languages, including C, aside from the required includes, main(), variable declarations, … | |
Re: Find a subject that interests you, and then figure out how to program an application that fits it. For example, let's say you like weight lifting and you want to track your progress in pressing more and more weight over time. You could write an application that lets you input … | |
Re: Shutting down the system when the CPU overheats before damage is done is not usually a default setting of many systems, though most can be configured to do that. My Linux 8-core system is so configured. It will map out overheating memory, and gracefully shut down the system if the … | |
Re: Most (all) relational databases have native C/C++ api's that you can use, and most of them also support ODBC as well. For small-medium size databases, MySQL is a good choice. For enterprise size systems, then PostgreSQL or Oracle work well. If you are running on a Microsoft operating system, then … | |
Re: @rch1231 The article is not too bad, but there are a lot of mistakes and the author's English leaves something to be desired. @zzmrmartinzz Read more than just this article to get an appreciation for the differences, strengths, and weaknesses of RedHat based distributions vs. Debian ones. In my opinion, … | |
Re: What do you mean? What are the steps the computer goes through to boot Windows (or any other operating system), or how does a user boot Windows? Please be specific. | |
Re: Alternatively you can use a 3 member array and set each as used, of course after you have initialized the members to false! IE: `bool lifeline[3] = {false, false, false};`. Either method (mine or ddanbe) will work for you. So, if selection is 1, then `lifeline[0] = true;`, etc. | |
Re: While the first construct is still allowed in most C compilers, current C++ compilers will issue a warning about assignment of a string constant to a non-const char*. | |
Re: If it is on a Windows share, it can be configured to require authentication, or be open. I would guess that it was configured for secure access, requiring a Windows AD / LDAP id and password. | |
Re: I think you are correct. The assembly code as written is doing basically this: d += c; if (d >= b) then goto .L4; So, to quote Richard Pryor in Brewster's Millions, the answer is "Vote for None of the Above"... :-) | |
Re: Also, asking people to analyze 1500 lines of code is just simply unreasonable! | |
Re: Are you sure this computer supports more than 4GB of RAM? Have you checked the BIOS settings to see if you can alter that? The Nanya simms are DDR3 devices so that should not be the issue. | |
Re: This sounds like a variant of the "traveling salesman" problem. ![]() | |
Re: This should not be a problem at all with VBox. How have you configured the virtual network adapter for your VM? Is it nat'd or bridged? If bridged, are you using a static or dhcp address? I have run VM's on dozens of VBox installations in both Windows and Linux … | |
Re: Here is a list of Linux POS software systems, most of which are open source: http://www.linux.com/community/forums/desktop/top-10-point-of-sale-pos-software-in-linux I worked with OpenBravo in the past. It is a decent system that might work for you. | |
Re: There is no solution to this problem. Occasionally, RF connections drop packets, and such "freezes" happens. You need to copy the data to your local drive for reliable viewing. Consider the shared drive a repository and copy stuff back and forth as needed, not use it as a "live" image. | |
Re: Instead of "ping", use "nslookup" instead. That will provide 1 or more IP addresses for the domain name, any one of which may, or may not, be available. | |
Re: Access to / (root of the apache directory tree - not the system root folder) is very dangerous! You should set it up to require a userid and password to access, as in: https://host.domain.com/?user=foo&password=bar - so, index.html in / should validate these GET variables. | |
Re: So, where are you getting free-store from the operating system? Usually one uses sbrk() for that. That provides you with heap store that you can allocate with calloc/malloc et al. And you use that store to provide memory to applications when requested. It doesn't come magically... you have to first … | |
Re: Software engineering is mostly thinking about data and how it should behave and interact with other data. This gives rise to the expression "data driven architecture". Here, the term "architecture" is key. Look at applications as designing and building buildings... (sic). These days, I recommend starting with some modelling tools, … | |
Re: When this happens, the function should also set errno to a known value to indicate the error that occurred. | |
Re: Do you want to run Windows, or Linux? With Linux, most software is free, which in a Windows system is often not the case, especially for video editing software. So, your budget is only for hardware? | |
Re: What nutster is trying to say is that we don't do your homework for you. Write your code and post it here and we may decide to help you... | |
Re: Are you sure these are local documents? This behavior sounds like shared documents when there is a glitch in the connection between systems. | |
Re: Have you tried Linux? I agree that XP is probably the best Windows OS released, but now out-of-date. Windows 7 is pretty good - kind of an updated XP in my opinion. Windows 8.x? Gah! Windows 10 is still not mainstream and widely available (beta still). I have had to … | |
Re: Unix/Linux passwords are hashed and "salted" with a unique value that will be placed as the first 2 characters of the password in the password file. So, when you want to verify the password, you use the salt value and use that to hash the input value to create a … | |
Re: We don't do your homework for you. Make an effort and we will perhaps help you. |
The End.