Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What are The Benifits of C++?
#11
(06-14-2011, 09:50 PM)USN Wrote: I like C++ better because its just so simple.
Example:
Code:
#include <iosteam>
using namespace std;
int main ()
{
  <<" C++ is so easy...duh :)\n";
  <<" SupportForums.Net";
}
That is a program right there Smile

..You butchered that simple program.
Quote:Line 18: error: iosteam: No such file or directory
In function 'int main()':
Line 5: error: expected primary-expression before '<<' token
compilation terminated due to -Wfatal-errors.

First, you forgot to specify your stream operator. i.e cout.
Second of all, you forgot to return a value in main().

I suggest you learn C++ before you attempt to code in it.
Reply


Messages In This Thread
What are The Benifits of C++? - by Black Demon - 06-07-2011, 01:18 AM
RE: What are The Benifits of C++? - by codevade - 06-07-2011, 02:02 AM
RE: What are The Benifits of C++? - by 0xE9 - 06-07-2011, 10:06 PM
RE: What are The Benifits of C++? - by BacklTrack - 06-09-2011, 05:48 PM
RE: What are The Benifits of C++? - by Epicly - 06-13-2011, 07:08 PM
RE: What are The Benifits of C++? - by BacklTrack - 06-14-2011, 10:21 AM
RE: What are The Benifits of C++? - by Epicly - 06-15-2011, 11:53 PM
RE: What are The Benifits of C++? - by 0xE9 - 06-16-2011, 01:24 AM
RE: What are The Benifits of C++? - by BacklTrack - 06-16-2011, 04:16 AM
RE: What are The Benifits of C++? - by 0xE9 - 06-16-2011, 04:49 AM
RE: What are The Benifits of C++? - by BacklTrack - 06-16-2011, 10:18 AM
RE: What are The Benifits of C++? - by 0xE9 - 06-16-2011, 01:05 PM
RE: What are The Benifits of C++? - by BacklTrack - 06-16-2011, 01:18 PM
RE: What are The Benifits of C++? - by 0xE9 - 06-16-2011, 01:37 PM
RE: What are The Benifits of C++? - by USN - 06-14-2011, 09:50 PM
RE: What are The Benifits of C++? - by 0xE9 - 06-15-2011, 02:10 AM
RE: What are The Benifits of C++? - by BacklTrack - 06-15-2011, 08:05 AM
RE: What are The Benifits of C++? - by 0xE9 - 06-15-2011, 09:28 AM
RE: What are The Benifits of C++? - by BacklTrack - 06-15-2011, 12:12 PM
RE: What are The Benifits of C++? - by codevade - 06-16-2011, 01:40 PM
RE: What are The Benifits of C++? - by LiamLC - 06-16-2011, 07:57 PM
RE: What are The Benifits of C++? - by Trustable - 06-17-2011, 02:05 AM
RE: What are The Benifits of C++? - by Mr. House - 06-17-2011, 01:12 PM
RE: What are The Benifits of C++? - by Epicly - 06-17-2011, 01:40 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)