•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C section within the Software Development category of DaniWeb, a massive community of 428,197 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,193 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C advertiser: Programming Forums
Views: 1340 | Replies: 1
![]() |
•
•
Join Date: Oct 2004
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
I'm suppose to execute the program in cmd prompt like this:
fifo.exe data.txt
However, I cannpt even get the program name which is fifo.exe.
I found out that argc (parameter of main) does not even go to 1.
It shows -1 instead.
Why is this so?
Anyone can help me?!?!
I actually created a class right above the main program.
Below is how i type the main:
int main (int argc, char *argv[])
fifo.exe data.txt
However, I cannpt even get the program name which is fifo.exe.
I found out that argc (parameter of main) does not even go to 1.
It shows -1 instead.
Why is this so?
Anyone can help me?!?!
I actually created a class right above the main program.
Below is how i type the main:
int main (int argc, char *argv[])
![]() |
•
•
•
•
•
•
•
•
DaniWeb C Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- Viewsonic VG175 17" LCD Giving me troubles!! (Monitors, Displays and Video Cards)
- ALL GMail invites to be posted here please! (Geeks' Lounge)
- Pls Help JAVA Program Headaches Not Giving me the right output for user input (Java)
- WebTrafficTalk.com Contest December - Giving Away Traffic (Post your Resume)
Other Threads in the C Forum
- Previous Thread: "Sending "ok" to hyperterminal from PIC board...
- Next Thread: reversing two strings



Linear Mode