669 Posted Topics
Re: I agree. Free software has come a long way in the last 10 years or so! It is stunning what can be done with free tools nowadays. There are many free programs that can at least come close to their highly polished, proprietary cousins. There are probably also a few … | |
Re: So you want to go from OSX Mavericks to Ubuntu? And you don't want to use a CD drive or a VM..... The only solution I can think of is to try putting the .iso for the Ubuntu liveCD installer onto a USB thumb drive. NOTE: I'm not a Mac … | |
Re: The compiler is complaining because it cannot find ntstatus.h. Either you do not have it installed, or it has been put somewhere outside of the systems search path for header files. Also you should be aware that ntstatus.h is a windows-only header file. It is not available for Linux. You … | |
Re: Looks like you need to install libcurl-dev. Offhand, I'm not sure of the exact package names on Ubuntu. Your best bet would be to take a look for them in the software centre or to try opening a terminal and run the command `apt-cache search --names-only libcurl | grep -i … | |
Re: I don't know of any direct Swishmax clones/alternatives on Linux. The closest I can think of is Synfig - a 2D animation program which I believe can export animations as flash/.swf format (amongst many other formats). So synfig might be OK if you only want to create animations. Blender (although … | |
Re: As L7Sqr has said, your command structure should not contain the command history. The command history should be a separate entity and should maintain a list of commands entered by the user. WRT the implementation of the history: I think you'll need to implement a FIFO stack/queue (from now on … | |
![]() | Re: No, you don't need to reinstall the whole OS. You might just need to download some drivers. Rubberman was merely stating that there might be some pieces of hardware on your machine which require proprietary drivers and that proprietary drivers might not be installed when the Ubuntu operating system is … ![]() |
Re: According to [MSDN](http://msdn.microsoft.com/en-us/library/windows/desktop/dd144909%28v=vs.85%29.aspx) GetPixel returns the error value 0xFFFFFFFF / CLR_INVALID under 3 very specific conditions. 1. The pixel is outside the boundaries of the current clipping area 2. The device does not support GetPixel 3. There is no bitmap selected within the device context Best bet is to take … | |
Re: If you look at the braces in your program, The while loop declared at line 29 ends at line 94, which is commented as "End token loop". So you are stuck in an endless loop where you are just getting input from the user. The code in the 2nd half … | |
Re: Aside from the missing left brace on line 5, there are a few other problems I can see straight off the bat. For starters: In order to use setw, you'll need to `#include <iomanip>`. Then there's your '3D' array; which from your initialisers, looks more like a 4D array. So … | |
Re: The only thing I can imediately see is that there's a 'do' at line 25 with no opening brace and no corresponding while statement further down in the code. I imagine the cout at line 27 is where the error is being thrown. And this is almost certainly because of … | |
Re: I Have a Degree in Liberal Arts; Do You Want Fries With That? | |
Re: Keep a set of counter variables to count the number of A's, B's, C's etc. Initialise them to zero at the beginning of your program, increment the appropriate counter when a grade is assigned in your block of if..else if statements. e.g. Declare some counters with the rest of your … | |
Re: Well, take a look at the url from a search page on google. I went to google.com and did a search for daniweb.com and got this URL for the results page: https://www.google.co.uk/?gws_rd=cr&ei=f0UFU-y9CoeK1AW4joGgCw#q=daniweb.com Looking at that URL, the question mark "?" in the URL indicates the start of the variables that … | |
Re: Is the projector physically connected to the laptop before you boot your laptop? Or are you plugging it in after the laptop has booted? I often plug my Linux laptop into a projector at work. The only times I've ever had problems is when I plug the projector in after … | |
Re: I don't think you can initialise a std::map like that. You can initialise std::map in a similar way using `map_list_of` in the boost::assign library. Which would allow you to do something like this (if memory serves): void ArcherArmor::ArcherArmor_shop(){ soldier_armor = boost::assign::map_list_of<int, Armor> (1, Armor("Meito Ichimonji", 4, 150, 1)) (2, Armor("Shusui", … | |
Re: The compiler does not know where COLOR_BGR2HSV is defined. I suggest you take a look at the documentation for the OpenCV library and see if you can find the header file that COLOR_BGR2HSV is defined in and ensure it is #included in your source file. Second thoughts: From a quick … | |
Re: C++ is case sensitive. Change line 5 of your header file from `class salaried` to `class Salaried` (Note the uppercase S) and that problem should go away! Effectively you have declared a class called salaried in your header, yet your cpp file contains definitions for Salaried. So the compiler is … | |
Re: What about: `cp*[24680].enc` or `cp*[24680].*` ? So if the files are all in the current directory and you want to copy the even numbered ones to a sub-directory called "even" you could do the following: Using cp (or mv): `cp ./cp*[24680].enc ./even/` or `cp ./cp*[24680].* ./even/` or using the find … | |
Re: BUFSIZE is exactly what its name implies. It is the buffer size. The maximum amount of data to send/receive in bytes. Regarding the error message: This error is exactly the same error I encountered and fixed in your other thread. It is to do with the strings used in python3's … | |
Re: I assume that sub1 - sub6 are the sub-totals for each person. In which case, rather than having 6 separate sub-totals, would it make sense to put them into a single array? Also with the totals in an array, you could then use a loop to go through each persons … | |
Re: I recommend running a debug build of your program from your IDE. There should be an option somewhere to Debug, or start debugging, or some-such. I haven't used Dev-c++ for at least 8 years, so I really can't remember a lot about it. Anyway, switch your build profile to a … | |
Re: In answer to your questions: 1: I think the first socket in socket.socket is the package name and the second one refers to the socket class which resides in that package. 2: I don't know, but it does! Heh heh! No, seriously... It is possible for Python functions to return … | |
Re: I don't know of any built in pow function in Haskell (I'm still a novice with it myself), but off the top of my head, you should be able to create a simple pow function like this: pow :: Int -> Int -> Int pow x y = x^y Which … | |
Re: rmp file? As in a RealAudio media file? Have you tried installing a media player that can play them?? Or do you mean a .rpm file? If so, which Linux distro are you running? If it is a distro which uses the Red Hat package management system, it could be … | |
It's not often I start a new thread, but I've hit a bit of an unusual problem...Admittedly one of my own making... I have a laptop with a completely dead HD, which I've been using for a while with Ubuntu 9.10 installed on a bootable 8Gb USB stick with approx … | |
Re: Until I got to grips with vim, I used to use nano quite a lot for editing text files on the command line. It took a little while to get my head around using vim, but learning to use it properly was time well spent IMHO! Nowadays, I seem to … | |
Re: The modulus operator returns the remainder after the division operation. So 3%5 returns 3 because 3 divides by 5 zero times and the remainder is 3. | |
Re: Edit: Sorry, looks like my phone accidentally posted this midway through composing my response. Didn't notice until I'd posted the one below... I hate this phone sometimes. It has a mind of it's own! | |
Re: Seeing as you haven't posted the actual error message, I'm guessing you're getting an error or a warning about the call to scanf_s at line 6. Basically you don't need the & operator before name. scanf_s expects a char \* to be passed in as the 2nd parameter. And in … | |
Re: First ensure your package lists are up to date: `sudo apt-get update` Then install VLC: `sudo apt-get install vlc` | |
Re: I could be wrong, but it looks like you are missing some developer libraries/headers required to build tcpdump. You can probably ignore the ac_nonexistent.h error, I think that is just a test used in the configuration script to see how your build environment deals with non-existent headers. But the other … | |
Re: The reason you are seeing "scientific notation type numbers" in your output is because your program is storing and manipulating double values. And double is a floating point type which can represent a greater range of values than float and uses scientific notation to represent values. If you want your … | |
Re: Linux is my OS of choice for reasons already outlined by Mike, Rubberman and a few others. (So I won't repeat them!). The only place I use Windows nowadays is at work. And I don't have any choice over that. But I do use a lot of free and/or open-source … | |
Re: But the descriptions contain links to the source code, which is probably why Tony posted these vids. Take another look at the videos and follow the links in the description. Then you can download and examine the source code for the examples demonstrated in the vids. From taking a quick … | |
Re: Show us your code and we'll show you ours! :P Check out the [community rules](http://www.daniweb.com/community/rules), particularly this rule: > * Do provide evidence of having done some work yourself if posting questions from school or work assignments In your post, you have provided no evidence that you have done anything … | |
Re: From looking at your cout statements, e.g. line 58: `cout << name << age << sex << score << endl;` Your output is not being spaced because you aren't putting any spaces between any of the output values. You might want to consider inserting some whitespace between each variable you … | |
Re: I think this might be to do with the version of sed that you are using. I think the default version of sed which ships with recent versions of the Mac OSes is based on the FreeBSD version, which doesn't contain the GNU extended regex syntax. You could try using … | |
Re: I wouldn't have thought that there is any specific software for the Windows phone on Ubuntu or any other Linux distro. What is it that you want to do with it? If you just want to transfer files to/from your phone, have you tried plugging it in via USB? With … | |
Re: I have Notepad++ installed on my Windows PC at work and there are three plugins which I use for writing Python scripts: 1. Python Indent - This plugin is very handy. It will automatically indent your code as you type (but you need to enable it after installing it by … | |
Re: After you've deleted a record and pressed 'y' to go back to the menu, what happens if you select option "b) List Employee Records"? Does the list still contain the record you just deleted? (Your screenshot does not show this information) If so, then you are correct, you have a … | |
Re: I was just going to say, rather than writing an over-complicated script, would it be simpler to just use a one liner e.g.: `mv ~/Pictures/*.png ~/Pictures/ScreenShots` Or if the files all contain a particular structure to the name. e.g. `ScreenShot-dd-mm-yyyy.png` You could use: `mv ~/Pictures/ScreenShot*.png ~/Pictures/ScreenShots` But it sounds like … | |
Re: That's a boolean expression, so the value of F will be true or false dependent on the value of i. The ! (NOT) operator in the expression inverts the result of the i>10 comparison. So if the value of i is greater than 10, the result of the expression i>10 … | |
Re: With an IDE you have the convenience of having a lot of things taken care of for you. Any IDE worth its salt should be able to handle any project, regardless of how simple or complex it is. And CodeBlocks is a very good IDE. So IMHO, if you are … | |
Re: Although, if you use a typedef instead of a macro your original code would work: #include<stdio.h> typedef char* CH; int main() { CH a,b; printf("%d %d\n",sizeof(a),sizeof(b)); return 0; } Now we've defined a new type called CH, which is a char\*, so now a and b are both of type … | |
Re: Yup, as Moschops has said, it's because your constructor is not initialising anything. Which is what I said in my post in your other thread. You are taking in the four parameters, but you still aren't doing anything with them. You need to use the passed-in parameters to initialise the … | |
Re: This works, but I wouldn't recommend it! : `#define E MyClass::E` Which would cause the pre-processor to expand any instance of E in the cpp file to MyClass::E. So you could use: `E(1,2,3)` in your code and the pre-processor will expand the macro to `MyClass::E(1,2,3)` But the downside is, if … | |
Re: If you had posted the exact errors you were getting from the compiler we could pinpoint problems more quickly! As you haven't posted any error messages; other than what Moschops has spotted, I can see only one other thing that could cause the compiler to throw an error: At line … | |
Re: It's all down to the order in which things were being declared and used. Some things were being used in the code before they had been declared. The following compiles, but crashes at runtime. I'll leave you to debug it! All I did was move the declarations for the System … |
The End.