Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!know!news.cs.indiana.edu!arizona.edu!arizona!tlglenn From: tlglenn@cs.arizona.edu (Ted L. Glenn) Newsgroups: comp.lang.c Subject: Re: More getch() woes Message-ID: <1165@caslon.cs.arizona.edu> Date: 14 Mar 91 01:39:11 GMT References: <1991Mar13.223020.18117@cs.mcgill.ca> Organization: U of Arizona CS Dept, Tucson Lines: 26 In article <1991Mar13.223020.18117@cs.mcgill.ca>, storm@cs.mcgill.ca (Marc WANDSCHNEIDER) writes: | The following program WITHOUT The line #include does not work. It | just freezes the entire system up, and I have to reboot (usin TC++ 1.0 on a | PC). However, when I put the #include > line in, it doesn't even | compile. I get LValue required in function main, and it point to the line | c = 0; | #include | #include | | main() | { | int i, test, c[25]; | | i = 0; | c = 0; [Rest of program deleted] Um, c by itself isn't an int. You have c declared as an array of ints. c[0] = c[1] =...= 0 would be legal. -- -Ted L. Glenn "Don't worry, be happy!" <--Ack! Pffffhhht! tlglenn@cs.arizona.edu G19382105@ccit.arizona.edu G19382105@ARIZRVAX.BITNET