let's see the civil war
let's see the civil war
Two strings walk into a bar. The first one says, 'Bartender! Bartender! I want a drink!'. The second one says, 'Bartender! Bartender! I want a drink too! Blaaaaaaaaah eeeeeeeek yaaaaaaak oooooooh'. The first one says, 'Please excuse my friend. He isn't null term--'.
generally, I declare one variable/line, so I declare them like:but if I'm listing on line line,Code:type*var;and in that line I point out why the other two cases are just wrong.Code:type *var,var,var,*var,var;
for the people that want to get into it (I don't): you're not declaring a type of pointer, you're declaring a pointer to a type. the "var" in your example is the pointer, so it should get the '*'. giving the '*' to the type makes it look like you're trying to say that the type is a pointer to a type, when what you really mean to say is that it's a pointer to a type.
and civil wars aren't civil:yeah, I don't know what that had to do with anything, either.Code:#include<iostream> int main() { int a,*b,**c,***d,****e; b=&a; c=&b; d=&c; e=&d; ****e=0; std::cout<<a<<'\n'<<*b<<'\n'<<**c<<'\n'<<***d<<'\n'<<****e<<std::endl; return 0; }
Last edited by major_small; 08-23-2005 at 04:17 AM.
Join is in our Unofficial Cprog IRC channel
Server: irc.phoenixradio.org
Channel: #Tech
Team Cprog Folding@Home: Team #43476
Download it Here
Detailed Stats Here
More Detailed Stats
52 Members so far, are YOU a member?
Current team score: 1223226 (ranked 374 of 45152)
The CBoard team is doing better than 99.16% of the other teams
Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)
Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT
This was just done - this is pointless.
http://cboard.cprogramming.com/showthread.php?t=68768
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.