11,530 Posted Topics
Re: In PHP, the time() function gets the current system time. Perhaps there is a Python equivalent that fetches the current year according to the system time? It would be a nice next step as you learn and improve your Python. | |
[LEFT]This is a program I wrote for my x86 assembly class which revolves a "roulette wheel" around. Wait about a minute and it will eventually slow down to a stop. It uses Irvine32.inc which came with the textbook.[/LEFT] | |
This is a program I wrote for my x86 assembly class which bounces an ASCII ball across the screen. It uses Irvine32.inc which came with the textbook. | |
![]() | Re: If you're goal is to deal with output, you may find that using ob_ is more flexible, as it lets you retrieve the output from external files and store them in variables for later use. The syntax would be: [code=php]<?php ob_start(); $output = ob_get_contents(); ob_end_clean(); ?>[/code] There are also a … |
Re: Thanks :) And for a more complete cat, check out: [url]http://www.daniweb.com/code/snippet216.html[/url] | |
Re: Thank you ... and thank Buff. Who is Buff ;) | |
Re: Why are you setting the width and height of the image to 65x38 pixels in size? | |
Re: Of course, there will also need to be a submit button of some kind, to handle the data input. | |
Re: I am still working on perfecting the engine which powers these code snippets. Not all languages are full supported, but I can assure you that I am working on it! | |
Re: Cool. :) I've heard of the language but never had experience with it. Is it a proprietary language? Where could one get access to a compiler? | |
Re: Thank you for submitting DaniWeb's first pascal code snippet :) | |
Re: I'm new to Java. This has actually been the first time I've seen a constructor method for main. Looks good, and it's a good way to explain recursion. | |
Re: I thought I had De Ja Vu for a second with the same snippet posted twice ... but then I read and saw it's slightly different. I've no experience with Pascal. Where could I pick myself up a Pascal compiler to test this out? | |
Re: Thank you for this! | |
Re: Thanks for giving us DaniWeb's most popular code snippet :) I'm sorry to see you haven't stuck around very long at all ... come visit us, Dan! :) | |
A simplistic program to compute the volume of a cylinder when its radius and length are input via MyInput.class | |
A simple demonstration of how MyInput.class can be used to input data from the keyboard. Computation is then done to compute the interest rate on a mortage. | |
A short example of passing variables between methods (functions). | |
An example of method overloading. The program calls a function to get the square root of a number. The appropriate function (integer or double version) is executed. | |
The JOptionPane class is used to give the CompMortgage.java program a front-end GUI interface. The class is divided into numerous functions. | |
A program similar to ComputeMortgage.java utilizing a mathematical formula and multiple methods to calculate a loan payment. | |
A single class consisting of multiple methods is used to demonstrate the robustness of keyboard input in Java. A try-catch block is used. The program graphically prints out a square root table by using JTextArea, JScrollPane and JOptionPane. | |
A demonstration of introductory object oriented programming. A class to define a circle object with radius, area, and perimeter parameters. | |
This program consists of two functions in one class. It is the driver program for the CircleClass.java file. | |
A program similar to CircleClass.java which defines a rectangle object. ClientProgram.java is the driver program for the Rectangle.java file. | |
Two classes which aim to demonstrate private and public members of a class. A static variable is used as an accumulator to keep track of the number of class objects which are created. | |
A program combining a switch statement with static variables in a class. Based on the switch statement, a class object is dynamically created. | |
Re: Quote in the end commented out :) | |
Re: This program consists of one function in one class. It uses MyInput.java to demonstrate how primitive data types are implemented in Java. | |
This program consists of two functions in one class. It demonstrates a recursive function to calculate the factorial of a number. | |
Re: I tried compiling it but got an error that it couldn't include graphics.h because the file doesn't exist. Or something like that. I'm probably doing it wrong. I tried using MS Visual Studio.NET. | |
Re: Whoa! Pretty daunting task if you ask me. I have a hard enough time trying to learn a language nevermind think of all of the aspects to a language. Take a look at scheme, for example ;) I'll leave this one up to the experts. You're being forewarned though - … | |
Re: The way that I understand it is, you have full control over who you link to. Therefore, if casino and other bad sites link to you, no harm done because you have no control over what sites link to you. But you do have control over who you choose to … | |
Re: Danny Garon runs this? I've gotta yell at him later tonite for not telling me about it :) | |
Re: I do try to run these surveys once a year. The reason I send them via PM is because if I were to petition for feedback here, I'd get 10, maybe 20 responses. However, the survey let me easily assemble thousands upon thousands of responses in one place and completely … | |
Re: Google is also pretty good at personally responding to all emails they receive. Even if it's a form letter reply (which it typically is) it's usually relevant / accurate info. | |
Re: Also, if an offending post is completely removed from the database, we have no way of keeping track of it. The very essence of our infraction system is designed around knowing whether it's someone's first offense or if they keep making the same mistake over and over again despite multiple … | |
Re: Not really any more eye candy ... at least for now, the site will have the same look and feel. This upgrade is much more behind the scenes ... the biggest changes will be more stability and long time bugs finally being fixed, as sos said. The biggest additional feature … | |
Re: The DaniWeb Directory no longer exists. | |
Re: We've been talking here in the office about starting a twitter feed, but hit a roadblock when the DaniWeb name was already taken. | |
Re: AD, I already PM'ed you yesterday so you know how I feel, but I figured a public statement of some sort was in order anyways. I wish you the very best of luck and good health in the future! |
The End.