On Fri, Sep 4, 2009 at 3:03 PM, David Cantrell <[email protected]>wrote:
> On Wed, Sep 02, 2009 at 05:28:44PM +0100, Lyle wrote: > > > I've been meaning to have a play with [Padre]. Although it was hard > enough > > getting the last school to install Perl... > > How about just showing up with Padre (and perl, and ...) on a bunch of > USB keys? And for bonus points, the kids get to take them home > afterwards so they don't have to set up their own development > environment. > > > > It's been a while since I looked at C, but I don't think it has a > > > 'varchar' datatype. Are you confusing C with SQL :-) > > I think your right, should be Word = char[11] (for a word that's 10 > > letters long). > > Yes. Strictly speaking, of course, char[11] isn't a variable, it's a > memory allocation and a pointer, and the pointer can be made to go all > over the place, not just within the word you want to store. > Off-topic pedantry... If you define a char[11] in C you can't change it; it's not a pointer. char foo[11]; /* can't change foo */ char *bar = foo; /* can change bar */ P > > -- > David Cantrell | Cake Smuggler Extraordinaire > > All praise the Sun God > For He is a Fun God > Ra Ra Ra! > _______________________________________________ > BristolBathPM mailing list > [email protected] > http://mailman.bristolbath.org/mailman/listinfo/bristolbathpm >
_______________________________________________ BristolBathPM mailing list [email protected] http://mailman.bristolbath.org/mailman/listinfo/bristolbathpm
