One line question.
This is a discussion on How do i setup Borlands to allow for main arg inport? within the C Programming forums, part of the General Programming Boards category; One line question....
One line question.
int main (int argc, char *argv)
One line answer
Yeh thats the code. What about the setup with Borlands?
I have two files. menu.dat and submenu.dat that i want to import into my program via main arg parameters how do i set up borlands to do this.
Last edited by TonyG; 05-23-2011 at 04:01 AM.
When you run the program you type the parameters on the command line.
Thats if i run it in a shell. What about if i hit the run button in borlands.
You mean "How do I setup my IDE to allow it to pass arguments to the program I have written?"
1. Say which version of Borland you're using.
2. Have you read the manual?
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
Borland XE vers 15.0
If i had time to read the manual i would (honest).
>>If i had time to read the manual i would (honest).
Go read. you do have time.
Honestly we are not here to read things for you and post the answer nicely for you.
Ahh that would be if i was just sitting here waiting for a response. Between posts i have been searching the program and help files to try and find my solution. I didn't start this thread without spending a good half an hour trying to work it out. I realize that this isn't Borland technical support but i figured that someone on this board must use it and know the answer. To be honest i thought it would have been a simple question.
So you just figured you'd ask 200 or so people to spend their time on it...
To be honest, we've been making quite an effort to wean people off of Turbo C and Turbo C++ ...
It's beyond outdated, it's highly non-standard and frankly it wasn't all that good even when it was new.
Last edited by CommonTater; 05-23-2011 at 04:51 AM.
1. Learn the name of the Compiler/IDE you are using. "C++Builder XE"
2. Use Google to find the answer
See http://docwiki.embarcadero.com/RADStudio/en/DebuggerUse the Run|Parameters...diaglog box...
I hope you learn to use Google or you will fail as an programmer.
How To Ask Questions The Smart Way
Last edited by stahta01; 05-23-2011 at 08:50 AM.