🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.c
Article #576

Lvalue required

#576
From: Tomasz Cichacki
Date: Wed, 07 Jan 1998 16:41
31 lines
1039 bytes
Mam taki kawalek programu w c++
Podczas kompilacji pojawia sie Lvalue required
Gdzie jest blad?
O odp prosze na priv
dziekuje


typedef struct dane
{
  char ind[5];
  char imie[20];
};
dane d1;

//***************************
// zapis danych do pliku
//***************************

void main(void)
{
  char x[5] = "abcd"; // - Lvalue required
  d1.ind = x;
};



--
Tomek
hermes@venus.wmid.amu.edu.pl
http://venus.wmid.amu.edu.pl
tel 0 602 664 791
Technical Details
Message-ID: <690be3$rs8$3@sunsite.icm.edu.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!not-for-mail
From: "Tomasz Cichacki" <hermes@venus.wmid.edu.pl>
Newsgroups: pl.comp.lang.c
Subject: Lvalue required
Date: Wed, 7 Jan 1998 17:41:18 +0100
Organization: ICM's news server
Lines: 33
Message-ID: <690be3$rs8$3@sunsite.icm.edu.pl>
NNTP-Posting-Host: pppa132.poznan.tpnet.pl
X-Newsreader: Microsoft Outlook Express 4.71.1712.3
X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit