Re: [of topic] programming problems...

From: Joshua Hudson (
Date: Wed Jan 16 2002 - 21:24:25 CET

>From: "Vesa-Pekka Palmu" <>
>First of all, I'm not too experienced c++ coder :(
>Well after working several hours on my piece of console program
>and got it to the point that I was able to do the first compilation,
>rooted out some typos, recompiled and got several "incompatible
>asigment, const char [variable numbers] to char[25]" this is due a
>part of the program where I'm trying to asing constants strings
>("like this") to a varible, each of the constants is shorter that 25
>chars (null char included)
>the code that is causing the problem is (in sort form) something
>like this:
>void main (void)
> char variable[25];
> variable="string";
>I have used all my little knowledge of programming on this one, but
>the problem remains and my hair is getting shorter :(
#include <string.h>
void main(void)
   char variable[25];
   strcpy(variable, "string");

MSN Photos is the easiest way to share and print your photos:

To unsubscribe, e-mail:
For additional commands, e-mail:

This archive was generated by hypermail 2.1.6 : Sat Feb 08 2003 - 15:27:21 CET