Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
main
- Page 1
Re: What is your latest SEO strategy?
Digital Media
Digital Marketing
1 Day Ago
by Dani
Thanks for posting your tips. I think that some of the things you mention, such as giving website visitors instant gratification, unfortunately often get overlooked. That being said, I get that you say how important it is to sound like a human, but are your tips AI generated? (According to some AI detectors, they are!)
What is your latest SEO strategy?
Digital Media
Digital Marketing
1 Week Ago
by devout-growth
… there are many other strategies out there, these are the
main
ones we focus on for the best results. Basically: Be…
Re: How Does Flutter Handle State Management Internally?
Programming
Software Development
2 Weeks Ago
by kearawill
… business logic. Bloc is strongly typed and highly testable. The
main
drawback is that it can feel verbose and boilerplate-heavy…
Re: Anti-Hotlinking Script for WP on Apache (.htaccess) - Linkspam Prevention
Programming
Web Development
3 Weeks Ago
by Dani
CDNs such as Cloudflare offer hotlink protection via a toggle switch you could enable. But, yeah, the primary benefit of hotlink protection is that a website doesn't upload images to *your* site, and then include them in their own site without having to pay for the bandwidth of hosting the images. Just make sure that if you turn on hotlink …
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.
Evaluating OpenAI GPT 4.1 for Text Summarization and Classification Tasks
Programming
Computer Science
1 Month Ago
by usmanmalik57
… the [News Article Summary](https://github.com/reddzzz/DataScience_FP/blob/
main
/dataset.xlsx) dataset. The following script imports the dataset into… first five rows. ```python # https://github.com/reddzzz/DataScience_FP/blob/
main
/dataset.xlsx dataset = pd.read_excel(r"/content/summary_dataset.xlsx…
ArkTS - McCharts
Programming
Software Development
2 Months Ago
by 杨_659
…. It’s been a while since my last update. The
main
reason is my busy schedule with my full-time job…
Null Pointer Exception in Java Application – Need Fixing
Programming
Software Development
2 Months Ago
by YashSmith
…'s the problematic code: public class Test { public static void
main
(String[] args) { String text = null; System.out.println(text.length…
Segmentation Fault in C++ Program – Need Debugging
Programming
Software Development
2 Months Ago
by YashSmith
… my code: #include <iostream> using namespace std; int
main
() { int arr[5]; cout << arr[10]; // Accessing out…
Re: Cannot run exe from asp.net
Programming
Web Development
1 Month Ago
by lennyli
… control. ```python # server.py import socket import pyautogui def
main
(): server_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) server_socket.bind… the other one. ```python # client.py import socket def
main
(): client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) client_socket.connect…
Re: Cannot run exe from asp.net
Programming
Web Development
1 Month Ago
by Salem
…("Waiting for a connection...")` ? Consider making your server
main
like this. if __name__ == "__main__": print('Server Begin…('Server End') You can add more prints in the `
main
()` function itself to try and diagnose the point of failure. …
Re: Cannot run exe from asp.net
Programming
Web Development
1 Month Ago
by lennyli
…connection...")` ? > > Consider making your server
main
like this. > > if __name__ == "…__main__": > print('Server Begin') >
main
() > print('Server End') > > You can… add more prints in the `
main
()` function itself to try and diagnose the point …
Re: Show computer name on a label
Programming
Software Development
2 Months Ago
by toneewa
…> #include "mr_m.h" [STAThread] void
Main
() { Application::EnableVisualStyles(); Application::SetCompatibleTextRenderingDefault(false); Application::Run(gcnew Mr_M…Properties->Linker->Advanced->Entry Point->
Main
Edit project file mr_m.vcxproj, under <ItemGroup…
Re: Show computer name on a label
Programming
Software Development
2 Months Ago
by toneewa
… Name: " << ComputerName << std::endl; } } } int
main
() { DisplayComputerName(); String^ managedString = gcnew String(L"Hello DaniWeb from…
Re: Coin Flip (Python Newbie)
Programming
Software Development
1 Month Ago
by jassonadder
… almost there, just a couple of small fixes needed. The
main
issue is that you're using the variable timesflipped in…
Re: Java Coin Flip Program
Programming
Software Development
1 Month Ago
by jassonadder
…:", self.heads) print("Total Tails:", self.tails) #
Main
program try: flips = int(input("How many times would…
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.
Main Page Description Change, how often does Google update its search engine.
Digital Media
Digital Marketing
Search Engine Strategies
18 Years Ago
by cmelb
Main
Page Description Change, how often does Google update its search engine. I just changed the
Main
Page Description of my website and I'm wondering how long until I see the change when I search in Google. The name change was from jewellery to jewelry.
Re: main()
Programming
Software Development
18 Years Ago
by sneekula
…to write cleaner code. Here is my argument, with no
main
() you create automatically global variables: [code]def show_x(): &…() show_x() # 6 [/code]Wrapping the last few lines into
main
() makes x now local: [code]def show_x(x): "&… x = 3 x = double_x(x) show_x(x) # 6
main
() [/code]It also organizes your code a little, so you…
Re: Main()
Programming
Software Development
12 Years Ago
by Ancient Dragon
… most likely named "
main
" because it is the first function that you write … is executed first, then when it's done it calls
main
(). If
main
() were not a required function then the startup code…
Main()
Programming
Software Development
12 Years Ago
by mallikaalokam
**I Know
Main
is a primary funtcion in C...But Is there other reason ..like why they named it as
main
only and not other??? ..and why we have to write
main
() compulsory in prgoram...Any histroy behind it??** Help ME Please.......
Re: Main()
Programming
Software Development
12 Years Ago
by deceptikon
> like why they named it as
main
only and not other??? That's an easy one. C … point from B. > and why we have to write
main
() compulsory in prgoram A program must have a starting point…
main()
Programming
Software Development
18 Years Ago
by Mouche
I searched the forum and couldn't find anything on this, so I guses I'll give this tiny topic its own thread. What's the point of creating a
main
() function and calling it at the end of your program? Are there advantages to this method in comparison to just writing the code straight out in no function?
Re: main()
Programming
Software Development
18 Years Ago
by vegaseat
Something like
main
() makes for cleaner code, a little extra work. I should use it more often.
"main"
Programming
Software Development
16 Years Ago
by cool_aj
… the end.My question is where can I have the
main
method in this program ? Please help !
Re: "main"
Programming
Software Development
16 Years Ago
by cool_aj
Can a program run without "
main
" ? Also how can I have 2 public classes in the program to run ? Iam using Textpad .
Re: "main"
Programming
Software Development
16 Years Ago
by masijade
Question 1. [i]Some[/i] class has to have a
main
, unless it's an Applet, Midlet, Portlet, Servlet, etc. Question 2. By having one class reference the other.
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