c++ suicide
Created on: February 8th, 2006
c++ suicide
depressed...

Sponsorships:

Vote metrics:

rating total votes favorites comments
(3.59) 59 0 14

View metrics:

today yesterday this week this month all time
0 0 0 0 2,199

Inbound links:

views url
41 https://www.bing.com
6 http://www.google.com.hk
4 http://216.18.188.175:80
1 https://google.com
1 http://www.google.com

Add a comment

Please login or register to comment.
February 8th, 2006
(0)
using namespace std;
February 8th, 2006
(0)
No, you don't need the "using namespace ...", but C++ doesn't support default int so it should be int main(), void main() or something similar.
February 8th, 2006
(0)
I do think (well, at least Visual C++ does) that the C++ standard accepts functions or variables without variable type prefix in their definition as integers.
February 8th, 2006
(0)
And yes you'll have to use using namespace std; Otherwise you'll need std::cout. At least that's been my experience.
February 8th, 2006
(0)
for loop is irrelevant, main function needs type... but meh.
February 8th, 2006
(0)
infinite while loop surely?!
February 28th, 2006
(0)
like the music
March 26th, 2006
(0)
OMG C++ NERDS :)
May 3rd, 2006
(0)
*snicker* C- FTW
June 4th, 2006
(0)
1) You should define main() as type void if not returning anything. 2) You only need to use std::cout if including , but not if including .
June 4th, 2006
(0)
Oops, meant "including iostream, but not if including iostream.h."
July 23rd, 2006
(0)
no
(0)
That was interesting.
September 16th, 2006
(0)
Macs > PC's