| Site Information | |||||||||||
| Site Title: | c++ suicide | ||||||||||
| Site Domain: | textreaderdepressionaots.ytmnd.com | ||||||||||
| Created by: | luck17 | ||||||||||
| Created on: | 2006-02-08 12:45:28 | ||||||||||
| Image Origin: | made it | ||||||||||
| Sound Origin: | at&t demo | ||||||||||
| Preview: |
|
||||||||||
| Description: | depressed... | ||||||||||
| Keywords: | |||||||||||
| Site Stats: | |||||||||||
| Rating: |
|
||||||||||
| Total Votes: | 62 | ||||||||||
| Site Views |
|
||||||||||
| Your rating: | Log in to vote (no users have this site on their favorites list!) | ||||||||||
| Report this site | |||||||||||
| Site Sponsorship: | Sponsor this site! (Click here for more info) | ||||||||||
| No donations for this site. | |||||||||||
| Add a comment: | |||||||||||
| Comments: |
| using namespace std; | ||||||
| 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. | ||||||
| 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. | ||||||
| And yes you'll have to use using namespace std;
Otherwise you'll need std::cout.
At least that's been my experience. | ||||||
| for loop is irrelevant, main function needs type... but meh. | ||||||
| infinite while loop surely?! | ||||||
| like the music | ||||||
| OMG C++ NERDS :) | ||||||
| *snicker* C- FTW | ||||||
| 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 . | ||||||
| Oops, meant "including iostream, but not if including iostream.h." | ||||||
| no | ||||||
| That was interesting. | ||||||
| Macs > PC's | ||||||
