I have a problem where each element of my array seem to be reassigned. class Car { private static int nom = 0;
I am trying to find a way to deal with the NoSuchElementException error thrown by a Scanner object when reading the last item in my text file with NO SPARE LINE. This means that my cursor will end aft
i\'m having trouble with my gui... want to have a background image using \"label\" and then there\'s an overlapping \"text field\"... i use \"label\" (at swing controls) so i can import an image.. and
What\'s a nicer way to do the following, that doesn\'t c开发者_如何转开发all f() twice? $x = f() ? f() : \'default\';
I have a c struct in header file:- typedef struct sample { char *member1; char **member2; long *member3; unsigned int member4;
class phone { public: phone(int x) { num = x; } int number(void) { return num; } void number(int x) { num = x; }
Hey all, I have this assignment where I need to integrate the Yahoo UI color picker into a website. When someone picks a color the background of the page need to become that color.
I was making some tests with numeric conversions and casts in Java and I found this strange behaviour (开发者_开发百科for me)
If I have something like this in my code: void f(struct foo *x, struct foo *y) { *x = *y; // structure copy (memcpy?)
I have a feature on my users inbox that allows users to check/uncheck messages in their inbox that they want to make favourite.