Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
arguments
- Page 1
How to Optimize Minecraft Server for Low-End PC?
Programming
Game Development
2 Months Ago
by Hassan_62
I'm hosting a Minecraft server on a PC with 4GB RAM and an Intel Core i3, but it's lagging with 3+ players. How can I optimize it? Should I adjust Java
arguments
, tweak server.properties, or switch to PaperMC? Any tips to reduce mob/entity lag?
Re: How to Optimize Minecraft Server for Low-End PC?
Programming
Game Development
2 Months Ago
by rproffitt
Such optimizing tips are on the web ready for those that look. And I've heard such even with high end hardware like the i9, 64GB RAM and SSDs so lag will always be with you. As to your server, it is what it is. Enjoy it till you can get a better one. Also consider trying a lightweight Linux OS.
Re: arguments
Programming
Software Development
10 Years Ago
by vegaseat
… it when you don't know the exact number of
arguments
. Simple example ... def average3(*args): """ don't… know the exact number of numeric
arguments
passed prefix * indicates a tuple of variable number of args…
arguments
Programming
Software Development
10 Years Ago
by EDWIN_4
Hello, in which senario do we normaly use this (*args,**kwargs)type of
arguments
in python.
Arguments of a function
Programming
Web Development
19 Years Ago
by red_evolve
…call a Javascript function and pass in some
arguments
- the
arguments
are gotten from some Coldfusion variables. I …;script> function sortTable(arg1){ if(sortTable.
arguments
.length > 1) alert(sortTable.
arguments
[1]); } </script> [/code]…. That snippet works. But, if I pass in
arguments
[1] as 'this is hm's program' then…
Re: Arguments of a function
Programming
Web Development
19 Years Ago
by alpha_foobar
you can also escape the character using a backslash... this way you can be sure that your
arguments
will be interpreted correctly... especially true if your page is being generated. [CODE]"this is hm\'s program"[/CODE] the reason i like escaping these characters is i then know thatit will be safe using any javascript string syntax.
Re: Arguments and strings
Programming
Software Development
16 Years Ago
by iamthwee
…( int argc, char argv[] ) { vector <string>
arguments
( argc ); for ( int i = 0; i < argc; …( int argc, char** argv ) { vector <string>
arguments
( argc ); for ( int i = 0; i < argc;… ++i ) {
arguments
[i] = argv[i]; cout <<
arguments
[i]<<endl; } return 0; } [/code…
arguments to main function
Programming
Software Development
14 Years Ago
by DJSAN10
If the main() takes 3
arguments
i.e. int argc,char * argv[],char *env[] and SINCE C DOES NOT SUPPORT FUNCTION OVERLOADING ,y does the c compiler does not give error for simply void main() //that is no
arguments
at all OR void main(int argc,char *argv[]) //2
arguments
Re: arguments to main function
Programming
Software Development
14 Years Ago
by Trentacle
[QUOTE=DJSAN10;1427307]If the main() takes 3
arguments
i.e. int argc,char * argv[],char *env[]…give error for simply void main() //that is no
arguments
at all OR void main(int argc,char *argv[]) …//2
arguments
[/QUOTE] There are two things wrong with your question.…
arguments with non latin character
Programming
Software Development
8 Years Ago
by giancan
…script wich is supposed to process two images passed as
arguments
in commandline, but I don't know how to …handle these
arguments
when they are with non latin characters. Here is …image1.png" "οισξφσιο.png" If I isolate the
arguments
as follows import sys, getopt opts, args = getopt.getopt(…
Re: arguments with non latin character
Programming
Software Development
8 Years Ago
by Gribouillis
…://stackoverflow.com/questions/846850/read-unicode-characters-from-command-line-
arguments
-in-python-2-x-on-windows) for example. The best… getopt module is a tedious way to handle command line
arguments
, choose argparse instead (my favorite module for this is argh…
ARGUMENTS AND IDENTIFIER ISSUES
Programming
Software Development
12 Years Ago
by marreameathue
….cpp(19) : error C2660: 'atotal' : function does not take 1
arguments
1>c:\users\kysinden\documents\visual studio 2008\projects….cpp(23) : error C2660: 'atotal' : function does not take 1
arguments
here is my code #include <set> #include <…
Re: Arguments and strings
Programming
Software Development
16 Years Ago
by William Hemsworth
How about using [B]std::valarray[/B]. [CODE=CPLUSPLUS]#include <iostream> #include <valarray> int main(int argc, char **argv) { std::valarray<std::string>
arguments
(argc); for (int i = 0; i < argc; ++i)
arguments
[i] = argv[i]; return 0; }[/CODE]
arguments in function
Programming
Software Development
19 Years Ago
by osean
….. but im guessing its used to pass over variables as
arguments
to a function, ive only seen it in functions with…
Re: arguments in function
Programming
Software Development
19 Years Ago
by Bench
….. but im guessing its used to pass over variables as
arguments
to a function, ive only seen it in functions with…
Arguments and strings
Programming
Software Development
16 Years Ago
by iamthwee
OK I was wondering what is the easiest way to do this? Let's say I have some
arguments
int main(int argc, char* argv[]) and argv[1] equals a c-style string. I want to change this to a std::string because I want to do stuff with it and I prefer working with std::strings. What is the easiest way to do this?
Re: Arguments and strings
Programming
Software Development
16 Years Ago
by vijayan121
a little less verbose, and a little more efficient: [CODE=C++]#include <vector> #include <string> int main ( int argc, char** argv ) { std::vector< std::string >
arguments
( argv, argv+argc ) ; } [/CODE]
Arguments to a simple function via the command line?
Programming
Software Development
15 Years Ago
by mahela007
How do I send
arguments
to a function by using windows command prompt?
Re: Arguments to a simple function via the command line?
Programming
Software Development
15 Years Ago
by vegaseat
You can play with this ... [code]# test Python command line
arguments
import sys if (len(sys.argv) >= 2): # skip sys.…
Re: Arguments to a simple function via the command line?
Programming
Software Development
15 Years Ago
by jlm699
…), then the name of your script, then the command line
arguments
... here's an example: [quote]Microsoft Windows XP [Version 5…
Arguments Invalid
Programming
Software Development
14 Years Ago
by abelingaw
Im getting this error: [ICODE]
Arguments
are of the wrong type, out of range or are …
Arguments to main and double pointers
Programming
Software Development
14 Years Ago
by hariharan89
… , I am new to C programming . I understood the above
arguments
to main are for command line purposes . But the next…
Re: Arguments to main and double pointers
Programming
Software Development
14 Years Ago
by gerard4143
… what the caller of the program sends as command line
arguments
.
Re: how arguments are to be passed from a bat file
Programming
Software Development
13 Years Ago
by thines01
Arguments
in batch files are passed on the command-line. Inside the batch, you use %1, %2, %3, etc. to receive each argument.
Re: arguments
Programming
Software Development
10 Years Ago
by snippsat
Look at this [post](https://www.daniweb.com/software-development/python/threads/481966/optional-funtions#post2107767)
Re: arguments in functions
Programming
Software Development
16 Years Ago
by LouPascalou
…, char **argv) { myfunction(argc,argv); }[/CODE] That means that the
arguments
to your program are passed directly to your function. The…
function takes 0 arguments error - probably a dumb question
Programming
Software Development
18 Years Ago
by hoosier23
…::getLength' : function does not take 0
arguments
Error 4 error C2660: 'rectangle::getWidth' …rectangle::setWidth' : function does not take 0
arguments
Error 9 error C2660: 'rectangle::calcPerimeter' …: function does not take 0
arguments
Error 10 error C2660: 'rectangle::calcArea' …
Re: Command line arguments
Programming
Software Development
13 Years Ago
by jamd200
…]); int d = Integer.parseInt(args[3]);
arguments
[0] = a;
arguments
[1] = b;
arguments
[2] = c;
arguments
[3] = d; int sum = a …= getMax(
arguments
); int minimum = getMin(
arguments
); double mean = sum/(
arguments
.length); int mode = getMode(
arguments
); double median = getMedian(
arguments
); System.out…
Re: Command line arguments
Programming
Software Development
13 Years Ago
by jamd200
… maximum = getMax(
arguments
); double minimum = getMin(
arguments
); double mean = sum/(
arguments
.length); double mode = getMode(
arguments
); double median = getMedian(
arguments
); double stdDev = getStdev(
arguments
); System.out…
file types and main arguments
Programming
Software Development
18 Years Ago
by LieAfterLie
… spaces at the end.) Output: nNumberofArgs = 2 The
arguments
are: 0-C:\Program Files\Text Compress\TextCompress.exe- … path and counts it as 3 seperate
arguments
. Output: nNumberofArgs = 4 The
arguments
are: 0-C:\Program Files\Text Compress… I get the /c, but I still get seperate
arguments
from spaces in the nct path. Output: nNumberofArgs = 5…
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