Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
c%2b%2b
- Page 1
Re: Calling an object from another in PHP using construct
Programming
Web Development
8 Hours Ago
by FarrisFahad
…__construct() { $this->obj = new
C
(); } } class
C
{ private $obj; public function __construct() …$this->
C
= new
C
(); } } class
C
{ private $A; private $B; private $
C
; public function …
Re: Which programming language is best Ludo game development?
Programming
Game Development
6 Days Ago
by m2host
I will choose Python or JavaScript
Re: Calling an object from another in PHP using construct
Programming
Web Development
5 Days Ago
by jkon
… B { private $obj; public function __construct() { $this->obj = new
C
(); } } class
C
{ private $obj; public function __construct() { $this->obj = new…
Create And Install Windows Service Step By Step In C#
Programming
Web Development
3 Weeks Ago
by Rabiya_1
I'm New In
c
# and want to create a windows service here what I'…
Re: Create And Install Windows Service Step By Step In C#
Programming
Web Development
3 Weeks Ago
by rproffitt
Since the answer would be many pages long, read https://learn.microsoft.com/en-us/dotnet/framework/windows-services/walkthrough-creating-a-windows-service-application-in-the-component-designer and consider the two other pages noted there.
Re: Which programming language is best Ludo game development?
Programming
Game Development
2 Weeks Ago
by kishanrg
… commonly used languages for game development, including Ludo games, are
C
++,
C
#, Java, JavaScript, and Python. Ultimately, the "best" programming…
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
4 Weeks Ago
by toneewa
Some minor syntax fixes. Some things to consider are the collision and distance of drawing the next ball. A ball inside a ball's radius will cause numerous collisions. Even the starting ball locations can be already causing collisions. I added a collision counter display. Increased the maximum balls to make to 50. The timer delay can also impact …
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
4 Weeks Ago
by toneewa
I cleaned up the code some more. Removed some things that were not being used. I ran into a couple problems which caused the freeze you mentioned. It was memory heap space and array allocating. E.g., if x or y becomes negative, and also infinite recursion. I added a x/y coordinate display for a ball, and tinkered with the placement of the …
Video is not the main content of the page
Digital Media
Digital Marketing
Search Engine Strategies
4 Weeks Ago
by Read a Book
… itemprop="uploadDate" content="<?php echo date('
c
', strtotime($upload_date)); ?>"> </div> </div…
Re: Which programming language is best Ludo game development?
Programming
Game Development
2 Weeks Ago
by polles
i would choose JavaScript
Re: how to create a simple elevator simulation?
Programming
Software Development
1 Week Ago
by trueframe
To make a basic elevator simulation, first, identify the floors and the elevator's capacity. Then, use loops and conditionals in programming to mimic its movement. Include buttons for users to call the elevator and select floors. Test thoroughly for accuracy.
Re: Improve HAVING BY performance
Programming
Databases
4 Weeks Ago
by toneewa
… the two, it as folllows: Query Duration / Fetch
C
++: 0.30402 sec MWB: 0.000 sec / 0.…297 sec WHERE:
C
++: 0.018953 sec MWB: 0.000 sec / 0….000 sec HAVING:
C
++: 0.0626546 sec MWB: 0.062 sec / 0…
Re: This is me venting
Community Center
Meta DaniWeb
2 Weeks Ago
by jkon
… answer and not more reasoning (example my
C
++ threads). Even if you don't know
C
++ , learn or ask someone that knows…
Re: What's the most unexpected hobby or interest you have outside of coding?
Community Center
Geeks' Lounge
2 Weeks Ago
by toneewa
… function. Vitamin A: It can help enhance collagen development. Vitamin
C
: It may help collagen structure and ligament function. Vitamin…
C
is also important because it helps increase collagen production. Vitamin …
Re: Microsoft Copilot is missing!
Hardware and Software
Microsoft Windows
3 Weeks Ago
by Reverend Jim
Right click on taskbar and select taskbar settings. If you want the icon to show then turn copilot preview on. Or you can use the hotkey WINDOWS+
C
. Copilot should appear docked to the right of the screen..
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
4 Weeks Ago
by jprog1000
Thank you so much for your reply and additions! It is certainly working as I wanted. I will read through the code you have added and ask you any questions I might have. I hope you don't mind. Regards
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
4 Weeks Ago
by Dani
I’ll mark this question solved :)
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
4 Weeks Ago
by Dani
… oh, sorry, missed the bit about you still needing clarifications. Feel feee to ask :) I’ll now unmark this topic as solved. /facepalm
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
3 Weeks Ago
by jprog1000
Hello, Thank you again so much! All your additions are clear, but it seems like whenever two balls collide, more than one ball is added to the arraylist and painted. Any way to have just one ball added to the panel for every collision? Have some kind of a toggle flag in paintcomponent? Regards
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
3 Weeks Ago
by toneewa
Yes, this is true. Overlapping ball spawns can do that causing a chain reaction. Something like that could be done. How you handle the spawning of the new ball is what I played with a bit before. You will see better collision detection changing to: g.fillOval(ball.getX(), ball.getY(), 1 * ball.getRadius(), 1 * ball.getRadius());
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
3 Weeks Ago
by jprog1000
Got it. Thank you so much!
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
2 Weeks Ago
by vortex_1
In my opinion, implementing a feature in a bouncing balls simulation where a new ball is created when two balls collide can add an interesting and dynamic element to the simulation. This feature can introduce a sense of complexity and unpredictability, making the simulation more engaging and challenging for users. It could also provide an …
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
2 Weeks Ago
by jprog1000
Great reply, vortex! Agree with all your points.
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
2 Weeks Ago
by aishamushtaq
Hi, Its helpful for me. I got my answer.
Re: Printing multiple integers EASY SOLUTION
Programming
Software Development
1 Week Ago
by Bunker
A straightforward solution to printing multiple integers is to use a loop. For example, in Python, you could use a "for" loop to iterate through a list of integers and print each one. This method is simple and effective.
Re: Word Association Game
Community Center
Geeks' Lounge
4 Weeks Ago
by Salem
category -> pigeonhole
Re: Word Association Game
Community Center
Geeks' Lounge
4 Weeks Ago
by Reverend Jim
pigeonhole --> stereotype
Re: Word Association Game
Community Center
Geeks' Lounge
3 Weeks Ago
by Salem
stereotype -> similar
Re: ASUS Laptops - my experience
Hardware and Software
4 Weeks Ago
by Reverend Jim
I called Best Buy Friday morning to ask about the status of my laptop. I was told the average wait time was one minute. Fifteen minutes later I was told there were eight calls ahead of me and would I like to leave my number for a callback. I did so and after two more hours of waiting I called the local Best Buy direct. I was told my laptop would be…
Re: ASUS Laptops - my experience
Hardware and Software
4 Weeks Ago
by toneewa
Sounds like you got it all squared away. One reason I don't want to ever do a Windows reinstall is the compilers, libraries, and other software configurations. I've done 1 since 2015 for myself, with Windows 10. I also expect since, NAND flash SSDs wear out, it'll happen sooner or later. Only 37% life of drive remaining. Best of luck!
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC