Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
void**
- Page 1
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
5 Days Ago
by jprog1000
Got it. Thank you so much!
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
5 Days 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
4 Days 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
4 Days Ago
by Digital_39
Hi, Its helpful for me. I got my answer.
Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
2 Weeks Ago
by jprog1000
…= false; this.xDx = 1; this.yDy = 1; } public
void
move(){ if ( y <= 0 ) { yUp = true;…xUp = true; b.yUp = false; } } public
void
setY(int y ){ this.y = y; } public …
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
2 Weeks Ago
by toneewa
… false; this.xDx = 1; this.yDy = 1; } public
void
move(){ if ( y <= 0 ) { yUp = true… false; return true; } return false; } public
void
setY(int y ){ this.y = y; }…
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
1 Week Ago
by toneewa
…this.y = y; this.radius = radius; this.xUp = false; } public
void
move(){ if ( y <= 0 ) { yUp = true; yDy =…javax.swing.JFrame; public class Frame { public static
void
main(String[] args) { JFrame frame = new …
Create And Install Windows Service Step By Step In C#
Programming
Web Development
1 Week Ago
by Rabiya_1
…LogService(process); count++; } protected override
void
OnStart(string[] args) { LogService("….Enabled = true; } protected override
void
OnStop() { LogService("Service Stoped&…
How to Optimize RecyclerView performance by implementing the ViewHolder
Programming
Mobile Development
2 Weeks Ago
by Mikekelvin
….layout.item_layout, parent, false); return new ViewHolder(view); } @Override public
void
onBindViewHolder(ViewHolder holder, int position) { holder.textView.setText("Item…
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
1 Week 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
1 Week Ago
by Dani
I’ll mark this question solved :)
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
1 Week 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
1 Week 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
1 Week 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: Create And Install Windows Service Step By Step In C#
Programming
Web Development
1 Week 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: Trying to animate sprite using DirectX9
Programming
Software Development
3 Weeks Ago
by Pavel_11
Hello, it is unneccessarily to use right movex or leftmovex , because it is to much variables. You should to use one variable movex to make it with minus or plus sign in your update function; by pressing left or right keys; because the one thing which is changable is a picture; I mean in global sense; variables like leftx, right x should be one…
GCC Fails to Recognize Parameters
Programming
1 Month Ago
by snah19
…/** @name Logging context. */ /*@{*/ static const char *urlcontext_to_name(
void
*ptr) { URLContext *h = (URLContext *)ptr; if …name; else return "NULL"; } static
void
*urlcontext_child_next(
void
*obj,
void
*prev) { URLContext *h = obj; if…
Help with functions - basics
Programming
1 Month Ago
by verrandhack
… i still don't understand commands like str, file, value,
void
, readName, and so forth but i know i need to…
Re: GCC Fails to Recognize Parameters
Programming
1 Month Ago
by Reverend Jim
I can't offer any suggestions other than to just download the compiled app for your system instead of building it yourself.
Re: GCC Fails to Recognize Parameters
Programming
1 Month Ago
by rproffitt
Here's another problem. When we change the OS not only must we setup the compiler, environment and such but sometimes an OS API could be deprecated or removed. You made mention of a possible OS change so that's a possibility. You obtained this code from somewhere. Go back there and see if they updated it for your new OS.
Re: GCC Fails to Recognize Parameters
Programming
1 Month Ago
by toneewa
While I haven't used DJGPP for a couple decades, I decided to install the ffmpeg library and do a test program another way. For me, the declarations worked changing: #include "os_support.h" #include "avformat.h" #include "internal.h" #if CONFIG_NETWORK #include "network.h" #…
Re: Help with functions - basics
Programming
1 Month Ago
by rproffitt
Rather than dive into c++ like that, try tutorials like we see at https://www.w3schools.com/cpp/cpp_functions.asp
Re: Help with functions - basics
Programming
1 Month Ago
by jkon
It seems that the issue has nothing to do with C++ or with functions. If you are new to programming why not try some tutorials in an easy accessible language (like JavaScript for example) and when you understand a few basics ( like null , functions , variables , loops , conditions ) move to a C++ tutorial for beginners ?
Re: Help with functions - basics
Programming
1 Month Ago
by learnerya
Starting from the basics, I have just started learning
Re: c++ OOP Mortgage Calculator
Programming
Software Development
14 Years Ago
by Salem
void
Re: Void
Programming
Software Development
8 Years Ago
by 21310051
Void
in java means that no value will be returned. If your method is of type int, that method will return an integer value... if your method is of type string, that method will return a string value... but a
void
method will return nothing.
Re: Void Function
Programming
Software Development
11 Years Ago
by deceptikon
… a function without return type.... `
void
` *is* the return type. You just can't do much … to add, it is not considered good programming to write
void
functions That's not true at all. Please don't… returning a status code for the sake of not returning
void
is the opposite of a good practice.
Re: void functions 2
Programming
Software Development
19 Years Ago
by Narue
…, you [b]must[/b] name each of the parameters: [code]
void
printAttitude ( int [B]name[/B] ) { [/code] >if (int == 1…
Re: Void Function
Programming
Software Development
11 Years Ago
by vikas221
void
permit a function without return type....
Assigning a byearray to a void pointer
Programming
Software Development
9 Years Ago
by nitin1
void
func(
void
* ptr) { bytearray temp(10); *((bytearray*) ptr ) = temp; } This code is … third line while executing while this coding is working fine.
void
func(
void
* ptr) { const char * temp = "decept"; *((char*)ptr…
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
Meet People
Forums
Top Members
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