|
Browse by Tags
All Tags » C++ (RSS)
-
Is the coder who wrote the following code (which I found earlier tucked away in a project) a genius who knows something I don't, or is it just as pointless as I suspect? for(int i=1; i<=2; i++) { switch(i) { case 1: /* do something */ break; case 2: /* do the next thing */ break; } }
-
Actually, who hasn't done: #ifdef __cplusplus extern "C" { #endif The language has its full name built right in.
-
[quote user="lolwtf"]What about "C double plus", is that wrong too? Is it perhaps "C plus equals one" or "C equals C plus one"?[/quote] A certain professor I know calls it "C two pluses".
-
#include typedef struct { char* author; char* title; char* isbn; int edition; } Book; int main() { int howmanyrecords; int counter=0; printf("How Many Record you want ?"); scanf("%d",&howmanyrecords); Book *pbook[howmanyrecords]; for(counter=0;counterauthor); printf("enter...
-
Um, maybe you could try += ?
-
I had my lab in a really stupid mandatory freshmen-level "intro to computer science" class this morning; the only thing that throws me from time to time is I haven't touched C++ since I was 12. However, even the teacher was a bit confused about a bug that was cropping up. Maybe someone...
-
[quote user="belgariontheking"] [quote user="bstorer"][quote user="Mole"]Its the same as you can do var=var+1, but why bother when you can just do var++[/quote] And why bother doing var++ when you should be doing ++var?[/quote]But the language is called C++, not ++C. I don't...
-
[quote user="GettinSadda"]In C (and C++ etc.) there is no such thing as a Statement - everything is a function, and therefore an Expression.[/quote] That is preposterous. C has the following types of statements: compound statement ( { ... } ); expression statement (expression + ; ); null statement...
Page 1 of 1 (8 items)
|
|
|