Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
program
- Page 1
How do I make my code jump back to a previous line?
Programming
5 Days Ago
by trueriver
…;It looks like it's your first time using this
program
!") time.sleep(1.5) User = input("Please create…
Re: How do I make my code jump back to a previous line?
Programming
5 Days Ago
by trueriver
…;It looks like it's your first time using this
program
!") time.sleep(1.5) User = input("Please create…
Re: Need Coding Help With A Project
Programming
Software Development
6 Days Ago
by Enzo_3
I was working on a similar assignment where I had to compute the average of numbers from a text file using higher-order functions like map() and reduce(). I was really stuck on how to incorporate them meaningfully, but I finally figured it out. Here's how I approached it using Python: from functools import reduce with open('…
Re: Need Coding Help With A Project
Programming
Software Development
6 Days Ago
by Reverend Jim
I don't know why you would use `reduce` and `lambda` when you could just do sum(numbers) And the directive >You should make use of two higher-order functions (i.e., map and reduce, or something else) to simplify the design. is self-contradictory as using `map` and `reduce` instead of `sum` does not simplify the design. It …
Re: Need Coding Help With A Project
Programming
Software Development
6 Days Ago
by Reverend Jim
>Why put them down? Please explain to me how anything I said was a put down. If someone told me their methof of counting cows was "count the number of legs and divide by four", I would point out that it would be simpler just to count the number of cows. If I said "That's stupid, just count the cows", then that would be a …
Re: Need Coding Help With A Project
Programming
Software Development
6 Days Ago
by Dani
First of all, let me be blunt. I believe that Enzo only resurrected a 12 year old thread with the intent of spamming. You and I know that because, as moderators, we see in his profile his spamming attempts and his infractions. However, no one else coming across this thread sees that or knows that, so the other 2000 people reading this thread may …
Re: How do I make my code jump back to a previous line?
Programming
5 Days Ago
by woooee
if sysInfo.lower() in ["exit", "Exit", "EXIT"]: since sysinfo is now lower(), it will never be equal to "Exit" or "EXIT"
Re: How do I make my code jump back to a previous line?
Programming
1 Day Ago
by Dani
Organizing code into functions is always important for readability and also to be able to reuse parts of your code as your app gets bigger. Thank you for posting your updated code to share with others :)
Re: Justice Department Offers Grants Against Internet Predators
Digital Media
Digital Marketing
4 Weeks Ago
by JackRyan248
… (OJJDP), the Department of Justice said. The ICAC
program
supports a national network of 59 coordinated task forces, …that are currently receiving funds under the ICAC Task Force
Program
, and they needed to register by March 16. >…; > The
program
includes all forms of sexual exploitation of children (SEC) and…
Re: C++ College Prank
Programming
Software Development
1 Week Ago
by cirol
Pranks can be fun, but fake viruses might cause real worry and problems. It’s best to use your skills in ways that don’t upset or confuse others.
Re: Coin Flip (Python Newbie)
Programming
Software Development
1 Week Ago
by woooee
while timesflipped < 100: timesflipped += 1 Use a for loop instead. if coin_flips == 0: And no need to add the == 0. Just *if coin_flips* (i.e. not zero) is enough
Re: Coin Flip (Python Newbie)
Programming
Software Development
1 Week Ago
by Reverend Jim
When you want to do a loop a given number of times (e.g. 100) but the loop counter is not used you can do for _ in range(100): # rest of code here
Re: Java Coin Flip Program
Programming
Software Development
1 Month Ago
by jassonadder
…, input, and class methods in Python. Here’s a sample
program
that does exactly what you're asking. It defines a…;, self.heads) print("Total Tails:", self.tails) # Main
program
try: flips = int(input("How many times would you…
Segmentation Fault in C++ Program – Need Debugging
Programming
Software Development
2 Months Ago
by YashSmith
I’m getting a segmentation fault in my C++
program
when trying to access an array element. Here’s my …
Re: Segmentation Fault in C++ Program – Need Debugging
Programming
Software Development
2 Months Ago
by Reverend Jim
Don't try to access past the end of the array.
Re: Segmentation Fault in C++ Program – Need Debugging
Programming
Software Development
2 Months Ago
by rproffitt
Thanks for the MVE (minimum viable example). But it's just bad code. c, c++ and a lot of language won't stop you from going out of bounds.
Re: Segmentation Fault in C++ Program – Need Debugging
Programming
Software Development
2 Months Ago
by Dani
You’re creating an array of 5 integers and then trying to access the 11th integer in the array (assuming the indexes start at 0). You’re getting an out of bounds error because you’re trying to access an array element that doesn’t exist. You can access arr[0] up through arr[4].
Re: Segmentation Fault in C++ Program – Need Debugging
Programming
Software Development
2 Months Ago
by Salem
It should be obvious by now from their posting history that the OP is a troll.
Re: Java Coin Flip Program
Programming
Software Development
1 Month Ago
by Dani
Better late than never! Thanks for your post. It looks like it's really helped a few people already.
Re: Java Coin Flip Program
Programming
Software Development
1 Month Ago
by Salem
> It looks like it's really helped a few people already. Yeah, 4 new members with consecutive user ID's, smelling like sock-puppet accounts.
Re: Java Coin Flip Program
Programming
Software Development
1 Month Ago
by Dani
> Yeah, 4 new members with consecutive user ID's, smelling like sock-puppet accounts. I realized that after I posted. I’m on my phone on the sofa so it wasn’t as easy to tell. Although I still can’t see the motivation. Edit: Nevermind. Perhaps they were trying to improve their member reputation/quality score?? (Won’t work because you need…
Re: Cannot run exe from asp.net
Programming
Web Development
1 Month Ago
by john_111
… said, by explaining why. If a webpage could run a
program
installed on another computer, the entire world wide web would… the web page can let you download and install a
program
. But not take over your computer.
Re: Looking for Apple Developer enterprise account
Programming
Software Development
2 Months Ago
by Dani
…), but out of curiosity, why do you need it? The
program
is designed for specific use cases in which large organizations…
Re: Buggy career talk :-P
Programming
2 Months Ago
by Reverend Jim
… of someone who has just dropped their five hundred card
program
the night before the project is due is frightening.
Re: Problem with MS Office shortcut bar
Hardware and Software
Microsoft Windows
1 Month Ago
by themadrastiffin
The shortcut bar in MS Office may not appear, may not open or may run slowly if you restart, repair or reinstall the
program
.
Re: Cannot run exe from asp.net
Programming
Web Development
1 Month Ago
by lennyli
…, but i can at the same time, run a local
program
similar or same as the software on the remote notebook…
Re: Problem with MS Office shortcut bar
Hardware and Software
Microsoft Windows
1 Month Ago
by asadalikhan
… on the shortcut bar are likely opening with the wrong
program
(like a printer handler). Here’s a quick fix: 1…
Re: Cannot run exe from asp.net
Programming
Web Development
1 Month Ago
by lennyli
… WEB sockets. Sure, I understand, but for my above new
program
it has nothing to do with web. It is just…
Re: How Can I Hookup My Mobile Phones To My PC Monitor ?
Hardware and Software
Hardware
Mobile and Wearables
2 Months Ago
by Deborah_5
How Can I Hookup My Mobile Phones To My PC Monitor ?
Re: How Can I Hookup My Mobile Phones To My PC Monitor ?
Hardware and Software
Hardware
Mobile and Wearables
2 Months Ago
by Fitmovers
If you want to connect your Samsung Galaxy A9 to your Dell E1916HV monitor, you'll need a USB-C to HDMI adapter (if your phone supports HDMI output). Since your phone has only USB ports, check if it supports Samsung DeX or screen mirroring via an MHL adapter. If your monitor only has VGA input, you might also need an HDMI to VGA converter.
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
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
© 2025 DaniWeb® LLC