Heres a fun challenge for you guys

Pages: 12
He means command line arguments.
To all the people that said they would love to have tests like this, I agree with you. All of our tests are like this. He has never given a class asking what something is. All of the problems on our tests are to make a function, or part of a class, or heres the header file make the cpp file for it and use it in main also questions that give you a scenario and you go from scratch. Hes a pretty tough teacher. Other professors around campus will tell you if you make a C in his class you are doing something pretty good.
@farcear
first of all, did you try to compile the code i posted and follow the instructions. in this case we are not calling
main() anyway, we're just passing arguments to main.

http://www.cplusplus.com/forum/beginner/12780/
Last edited on
He sounds like a good instructor to me.
I like him a lot. It will pay off in the end. But you know it kinda sucks some times. But he is preparing us for the real world. Hes passionate about what he does though.
echo "int main() { main(); }" > foo.cpp
g++ -pedantic foo.cpp

foo.cpp: In function 'int main()':
foo.cpp:1: error: ISO C++ forbids taking address of function '::main'

Topic archived. No new replies allowed.
Pages: 12