Structs vs Classes in C++

Started by
15 comments, last by Boops 20 years, 1 month ago
There''s a search that people shold use that can answer a lot of their questions. But they don''t. Why would they look through the stickys? Also the stickys would take up the first 30 pages or so and you would have to wade through them all to get to the newest posts each time.
Advertisement
quote:Original post by iMalc
If you''re constantly switching between C and C++ you might find it easier to just use structs.
If they read it the first time (and thus were aware there was an original post), they probably wouldn''t post the same thing.

I don''t know about the rest of you, but I don''t spend the entirety of my free time reading every post here.
C++ structs can have methods?
C++ structs can have member functions.
quote:Original post by petewood
I have found that forward declarations in MSVC++ have to match types so if something is a struct and you forward declare it as a class it won''t allow it.


This is because they are considered different types (the closest analogy I can think of, is two classes with the same name in different namespaces, except they''re not in different namespaces so it''s a collision and fails to compile).


quote:zfod
With all these moderators on the board, whom I actually respect most of their opinions ( woefully rare in the forum world ), why are these kinds of posts made all the time? Why aren''t there literally stickies with all the frequently asked questions and automatic deletion of threads that are answered in said stickies?

Then we''d have two or three pages of stickies and people still wouldn''t read them
- The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara
quote:Original post by zfod
The question that sticks out in my mind is this:

With all these moderators on the board, whom I actually respect most of their opinions ( woefully rare in the forum world ), why are these kinds of posts made all the time? Why aren''t there literally stickies with all the frequently asked questions and automatic deletion of threads that are answered in said stickies?
a.) It''s tedious.
b.) Nobody reads the FAQs we labor so hard over - not even the site FAQ when they register!
c.) Netiquette is dead. The days when you could expect people to know to search before asking, and to attempt before requesting assistance/a solution, are gone. Forever.

quote: It seems it would clean the board up tremendously in a lot of the sections, make the board smoother, take up less space and possibly make searches return better results, etc.
What you are suggesting is an evolving set of FAQs. Wait, isn''t that called a Wiki...? Apparently, community support for a Wiki is low. So, this is what you get instead.

Besides, it''s not the same people who respond. What tends to happen is that a person joins with a certain low level of overall knowledge. This person starts out asking questions and later moves to answering them. Over time this person gets to answer or read answers to all the recurring questions, finally gets bored and moves on to other things (how often do you see posts from DrPizza? SabreMan? Even Fruny seems to respond most in For Beginners - you can''t fault him; he''s a TA). Stagger this pattern infinitely, with one "generation" "graduating" as another joins up. It''s only the die-hards (and moderators) who really get frustrated because they kinda have to stick around.

quote: Anyway, sorry for highjacking the thread.. it''s just been on my mind a lot when I have to manually filter through all the cruft.
Well, Dave has expressed interest in the Wiki. We''d have to discuss it again (even the mods weren''t too enthusiastic), modify the concept heavily so that it would be useful to GDNet, test it, populate it and then launch it.

Don''t hold your breath.
How come this question is asked about 900 times each month?
char a[99999],*p=a;int main(int c,char**V){char*v=c>0?1[V]:(char*)V;if(c>=0)for(;*v&&93!=*v;){62==*v&&++p||60==*v&&--p||43==*v&&++*p||45==*v&&--*p||44==*v&&(*p=getchar())||46==*v&&putchar(*p)||91==*v&&(*p&&main(0,(char**)(--v+2))||(v=(char*)main(-1,(char**)++v)-1));++v;}else for(c=1;c;c+=(91==*v)-(93==*v),++v);return(int)v;}  /*** drpizza@battleaxe.net ***/

This topic is closed to new replies.

Advertisement