345 Posted Topics
Re: If I were you, I would have started out with Blender before using 3DSmax, seeing as max costs so much. Being a blender user, I would say blender, but that's a biased opinion. Tell you what: set yourself a task, like modeling a gun. Try to not to use a … | |
Re: 1. Stay here at DaniWeb! As you can see, we have a huge amount of dedicated members who love to contribute. 2. Have a look at sourceforge 3. You should have a decent understanding of Python and should be able to complete the task you sign up for. It really … | |
Re: Flush the input stream: [url]http://www.daniweb.com/forums/thread90228.html[/url] Would you be able to use a DOS command to restart the program? | |
Re: I guess that these programs would offer up support eventually. Find a brand-new GUI or graphics module that is supported in 3.x This gives you the opportunity to learn how to use that module without wasting time. | |
Re: Well start by allowing the user to input how much time they want to count down. Convert each section (hours, mins etc.) into an int so that you can count it down. Count down by 0.1 seconds (use ifs to find if one column equals 0, in which case it … | |
Re: By this, it would suggest that either the variable has not yet been defined, or has not been defined in the same scope as where you are trying to call it (global scope, function scope etc.). Could you post the error and tell us the line which gives the error? | |
Re: Nobody will just give you the code. This is an assignment. You are obviously meant to learn. Learning does not entail getting us to give you the code. You will learn nothing from it. Not only does it not benefit us, but it won't benefit you either. You will have … | |
Re: [url]http://www.daniweb.com/forums/thread90228.html[/url] | |
| |
Re: [CODE]cout << "Sorted list is " << endl; SortedList(data); //HERE[/CODE] You need to cout this. | |
Re: Have you checked that the service is enabled to run automatically on startup and that the process is allowed to run? Go to services and features and make sure "Windows Search" is enabled. Also go to "Windows Features" and make sure that it is allowed. (I am using Windows 7 … | |
Re: Not sure if you are getting the error (still getting back into C++ from a long spell in Python), but I think you need to define your "get_input" and "CheckLeapYear" functions before the main. Otherwise, you are calling something from the main that is not yet initialized. It also helps … | |
Re: Can you do AV scans in safe mode? Do you have an ATI chipset? My Mum has one and it causes the laptop to freeze alot. | |
Re: You would want to read the string into an array. Split the string at each space, so you have individual words, and feed it into an array. Then use the "random" module to generate a number from 0 to the length of your array. Then, that integer it gives can … | |
Re: All you need to do is look through your if statements, and try to find a pattern or formula that can relate to all the values. When sum is 2, the array position is 0, and we input 2. When sum is 8, the array position is 6, and we … | |
Re: You need to provide us with more details so we know the specification of the question. Plus, we won't write the code for you, we will only help. | |
What are the post count ranks?! Can someone give me a complete list? | |
Re: I would agree that W3 have a great CSS tutorial. It helped me out when I was creating CSS styles for Windows 7 Sidebar gadgets. Not sure about their HTML tutorial but they seem like a pretty good site. | |
Re: I think what you need is structs. Here is an example: [CODE]//usual intro stuff #include <cstdlib> #include <iostream> using namespace std; //create a struct for our account type struct account{ //this is where initialize the data variables for an account //acount number int number; //balance float amount; } ; //usual … | |
Re: File in/out: http://www.cplusplus.com/doc/tutorial/files/ Strings: http://www.cprogramming.com/tutorial/string.html Arrays: http://www.cplusplus.com/doc/tutorial/arrays/ Open/close/read/write with file io. Read to strings, manipulate, write strings to file. Write data into an array so you can use a loop for manipulation and writing to file. | |
Re: [CODE]print 'Input n' n = int(raw_input()) data = [] i = 1 while i <= n: data.append(i) i+=2 print data[/CODE] | |
Re: 1.) This is not the python forum...how are python specialists going to find this? 2.) Show effort 3.) We don't know enough about your question to answer. | |
Re: With the code you have there (which you need to put in code tags next time :) ), is a good example of classes. [CODE]class Critter(object): def __init__(self): #you were missing a close bracket print "A new critter is born!" def talk(self): print "\nHi. I am an instance of class … | |
Re: The top line will confuse python. You should have (I think, from seeing another dictionary related post :/): [CODE]z = {'a':[1, 2, 3], 'b': 4, 'c': 5)[/CODE] Not sure as I have barely used dictionaries, but I believe that one of the problems lies in line 4. You want it … | |
Re: Please use code tags. Could you post the errors your are getting, and edit your first post using code tags. Then we can work through the errors. Once the program works, we can determine whether the logic is correct. | |
Hi. Not had any problems up until this point. I changed some settings on services earlier, and then I noticed this problem: whenever I try to open a 3D game, the program will freeze. I have opened 3D programs like Blender3D and Quick3D fine, but games don't work. Assuming it … | |
Re: [B]READ THE RULES!!! NO HELP UNLESS YOU SHOW EFFORt!!![/B] Besides which, we can't help you anyway, as we don't know your question specification, or what code you have already got, which we would need. | |
Re: I was just taking a look at compacting your code slightly, and I noticed something. self.n = len(datalist) data = datalist length = len(datalist) ... n = float(self.n) Therefore n = length And then: ...(length/n) This would be 1. You can also change the function 'cdf_data' (including the above thing … | |
Re: I believe that absolute position is the actual position of an object, whereas relative would mean the position relative to another object. | |
Re: Just as an after-thought: type "lol limewire" into google and hit "I'm feeling lucky"... :L | |
Hi all. There have been several threads where people are asking, [B]"is there any way we can develop iPhone Apps on Windows, or without using Objective-C?" [/B]The main reason people ask this is because [I]they either cannot afford a Mac, or cannot afford all the additional costs one has to … | |
| |
Re: No it's not a specific problem. You should use: [CODE] root.minsize(min_x, min_y) root.maxsize(max_x, max_y) [/CODE] Also, use code tags. If you want the window to be a fixed size, I just set the minimum and maximum as the same. I've got a youtube video explaining stuff about Tkinter windows. Infact, … | |
Re: Check out my post here for how you could expand on your program. [url]http://www.daniweb.com/forums/thread32007-24.html[/url] | |
I know that it's not really related to programming and hardware (which is what the rest of the site seems to be), but I think it would be great if we could create a 3D modeling or visual effects forum. Maybe even just one forum for all 3D modeling programs? … | |
Re: Hello! Welcome to Daniweb! You'll love it here because the C++ forum is one of the biggest forums on this site, and is certainly the best C++ forum on the internet. And Java is close behind it! I guess we'll be seeing eachother around in the C++ forum a little … | |
Re: For things such as darker clothes, you could just use a new texture for the clothes. If you could keep the clothes as a seperate object from the body, then you could easily just make progressively darker textures, and load each one. You would only need a few to go … | |
Re: A simple google search turned up this link: [url]http://code.google.com/p/jbullet-jme/wiki/InstallingBuilding[/url] | |
| |
Re: Here's a little program I wrote for you using stringstream. This will split your long string into 20 parts, into an array (type string), named "data". [CODE]//includes...need sstream (stringstream) #include <string> #include <sstream> #include <iostream> //don't forget your namespaces using namespace std; /main int main() { //your string string str … | |
Re: Oh yes it's perfectly possible! Make sure your external script is in the same folder as your main file, then just use "import example.py" (if that doesn't work remove the ".py"). Just make sure your variables can interact between the two scripts. | |
Re: Firstly, you have you have this line wrong: [CODE]while (quantity >50);[/CODE] Surely it should be '<' instead? Reply, but paste in: Any program errors. Your inputs. Expected outputs. Actual outputs. | |
Re: If you want some ideas, look at this thread: [url]http://www.daniweb.com/forums/thread32007.html[/url] Otherwise, search sourceforge.net! You can look for programs using YOUR programming language, YOUR os and YOUR type (games, software etc.). If you don't find anything you like, start a new project! PM me if you find a project to join/start … | |
Re: Firstly: Thanks for the effort you've put in. Secondly: I've made you a little program to demonstrate rounding, using floor() and ceil() [needs cmath, but you already have that]. Here's the code: [CODE]//Usual intro :P #include <cstdlib> #include <iostream> #include <cmath> using namespace std; //Usual main... int main(int argc, char … | |
Hi there. My Mum's laptop is practically unusable. It will work for anywhere between 20 and 80 minutes, and then one (or even a combination) of the following will happen. a.) Blue-screen of death (BSoD): Physical dump of memory b.) ATI graphics card driver will crash, screen resolution drops to … | |
Re: Each program needs to have a main function. You do have one, but this happened to me before. Not sure how I dealt with it :/ Try capitalizing the 'm' on main so it becomes 'Main'. Apart from that, have a look on google. It's quite a common problem. BTW: … | |
Re: Firstly, you need to check your loop in the main function. Look where you write CalcAverage(). This needs to be inside a loop, so that you can run it for all students. Currently, it's just doing the calculations for one. Secondly, yes you would could use a loop like that … | |
Re: what code have you got already? None? Shame...we won't help. |
The End.