![]() | ![]() | ![]() |
| |||||||
| Chit-Chat Relax for a bit and have a general conversation (off topic is allowed!) with other members. Please be polite and respect your fellow members. |
![]() |
| | Tools |
| | #1 |
|
is this posible, looking on google turned up nothing.
__________________ when you post that reply, im just kidding. | |
| |
| | #2 |
| Code: main(int argc, char *argv[])
{
......
}
one, two, and three => four strings one,two, and three => three strings If you want number parameters you would convert the string into a number using atoi() atof() ... HTH Spiros | |
| |
| | #3 |
|
Can you explain your question a different way? It is just that argv[1] is already a char array. What is it that you wish to do? Can you give us an example of your problem? Mike.
__________________ www.drivesentinel.co.uk - Homebrew GPS Speed Camera Detectors | |
| |
| | #4 | |
| Quote:
f arguments passed and argv[0]...argv[n] contains the different arguments.and itself char*
| ||
| |
| | #5 |
|
well i wrote this fuction that needs a char array to work but just passing argv[2] doesnt work i wont compile i sayes it cannot convert it
__________________ when you post that reply, im just kidding. | |
| |
| | #6 |
|
whats the code?
| |
| |
|
| Tags |
| argv1, array, char, convert |
| Thread Tools | |
| Display Modes | |
| |