Problems already!? :(
Just starting my C++ journey on my mac, and downloaded code.blocks. According to the set instructional on this site, it says that at the end, pressing F9 should compile and run the 'hello world' program...
Of course this doesn't work for me? I did not modify the code in any way but it still will not run the program and gives me what I believe is an error message?
Titled at the top of the pop up: Terminal - bash - 80x24...
What did I do wrong here?
did you download a version of codeblocks with a mingw compiler, and look for the "build messages" tab near the bottom of screen and get the errors that are coming up
You made a console application. The Terminal IS the console in the Mac, so it popped up the terminal when you ran it. What was inside the terminal window was likely the output of your program.
Originally Posted by rags_to_riches
I sort of figured that terminal was the console... Thanks for the clarification :). I guess my real issue is why it didn't work when I made no changes to the code?
Can anyone tell me why i would have this problem even though I didnt make any changes to the code???
I would REALLy appreciate any help...
Perhaps it did work. The expected result of running a simple C++ program is a console popping up through which you can interact with your program. Can you post a screenshot of the console window that is showing up, along with the code you are compiling? (I know it's just the Hello, World! program, but still.)
You need to learn how to post a problem on an internet forum. All you said was it didn't work, without defining what exactly that meant. That is most definitely a HORRIBLE "bug report". It's like calling the doctor and just saying "It hurts" and hanging up, then calling the doctor back a couple of days later and saying, "It still hurts, why haven't you helped me?"
I actually went through the trouble of installing Code::Blocks on my Mac and running the default Hello World program to see what happened for your post. Worked fine, and produced the terminal window as I mentioned...WHICH IS NORMAL.
Did the Terminal window happen to look like this?
It sounds like you're just beginning programming. Two things you need to master before C++.
One: You need to learn how to operate a computer without GUI. File paths, shell scripts, enviornment variables, executables, things like that. Anything you could possibly do on your Mac can be done in the Terminal.
Two: You need to learn C. You're going to have a very hard time learning C++ if you don't know any C. C++ will come much, much easier if you know your way around C source code.
If you need any help with either of these, feel free to PM me.
Absolute and utter nonsense.
Originally Posted by Babkockdood
The first one has nothing to do with programming. Irrelevant. Though it is true that programmer tend to learn and use such stuff, it is not necessary.
You do not need to learn C. Learning C before C++ will only cause headaches and stuff you need to unlearn later.
In fact, some known professionals recommend that you do not learn C before C++.
New question... Why do some letters type regularly yet others seem to be in a function mode??? For example the letters, i, a, s, z all do something and I cant seem to figure out how to type them in the code...:( I simply want to copy this code into the window, but i cant even type the word 'include' without the cursor being prompted into the search bar above??? (at least i think its a search bar...) i am committed to learning this, but i'm having trouble even typing my first code in there??? :(
you have all been so patient and kind so far... please continue to help! mahalo!!!
using namespace std;
cout<<"HEY, you, I'm alive! Oh, and Hello World!\n";
I am also a new member. Would a newcomer be warmly welcome here? Good day you guy !
hns615: I have no idea what you're talking about, but you may want to read this: http://cboard.cprogramming.com/cplus...ead-first.html
donnaj867: Certainly. Just be sure to read the stickies and ask smart questions. Remember: there are no dumb questions. Only dumb people.