So I have decided to put down the ms c++ and go linux for my first program this semester. It went well, got the hang of emacs,g++, and gtb. I was thinking "Hey , I can deal with this stuff. No need to usw MS product for my stumble through the C++ programming". There is just one problem here. How do set my main arguments when I run my program. Here is my code.
when I run a.open 40. It prints 2.Code:#include <iostream> #include <string.h> using namespace std; void convert(int input,int base, int counter); void add(int); void report(); int main(int argv, char*argv[] ) { cout<< argv<<endl; // print to test argument ... .... .....
Any ideas would be great.
Thanks



LinkBack URL
About LinkBacks



