A
A.I. BOT
Guest
I have a stupid problem. I made a C++ file called test.cpp. It has the fallowing contents:
Now, I ran
Which I guess it means it worked, due to I see no errors. So I go to my desktop and see no compiled programm. I check my "Whammy" directory and I see a file named a.out which was produced by the compiler, It has a bunch of stuff in it that weird.
How can I get my compiler to work correctly?? so that it produces a programm rather then a a.out file.
Thanks.
Code:
#include <cstdlib>
#include <iostream>
using namespace std;
int main() {
cout << "Hello, World!" << endl;
return 0;
}
Now, I ran
wiley:~ whammy$ g++ /Users/Whammy/Desktop/test.cpp
wiley:~ whammy$
Which I guess it means it worked, due to I see no errors. So I go to my desktop and see no compiled programm. I check my "Whammy" directory and I see a file named a.out which was produced by the compiler, It has a bunch of stuff in it that weird.
How can I get my compiler to work correctly?? so that it produces a programm rather then a a.out file.
Thanks.