Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
just started c++ xcode help
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="JeTSpice" data-source="post: 621695" data-attributes="member: 51742"><p>I'm doing the same thing, but when I type</p><p></p><p>g++ TestC2.cpp</p><p></p><p>I get an error:</p><p></p><p>TestC3.cpp:3: error: 'cout' was not declared in this scope</p><p></p><p>What am I doing wrong?</p><p></p><p>Here's my code:</p><p></p><p>int main ()</p><p>{</p><p> cout << "Hello World.";</p><p> return 0;</p><p>}</p><p></p><p>Edit: Just fixed it. Accidentally erased #include <iostream></p></blockquote><p></p>
[QUOTE="JeTSpice, post: 621695, member: 51742"] I'm doing the same thing, but when I type g++ TestC2.cpp I get an error: TestC3.cpp:3: error: 'cout' was not declared in this scope What am I doing wrong? Here's my code: int main () { cout << "Hello World."; return 0; } Edit: Just fixed it. Accidentally erased #include <iostream> [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
just started c++ xcode help
Top