From: John Clonts Newsgroups: comp.os.msdos.djgpp Subject: Re: I'm so new it's frustrating. Almost ready to lose my will to learn. Date: Mon, 23 Aug 1999 14:00:11 GMT Organization: Deja.com - Share what you know. Learn what you don't. Lines: 56 Message-ID: <7prk53$2e5$1@nnrp1.deja.com> References: <1rbw3.17368$x04 DOT 1147413 AT typ11 DOT nn DOT bcandid DOT com> NNTP-Posting-Host: 204.254.32.135 X-Article-Creation-Date: Mon Aug 23 14:00:11 1999 GMT X-Http-User-Agent: Mozilla/3.01Gold (Win95; I) X-Http-Proxy: 1.0 x32.deja.com:80 (Squid/1.1.22) for client 204.254.32.135 X-MyDeja-Info: XMYDJUIDjohncc To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com In article <1rbw3.17368$x04 DOT 1147413 AT typ11 DOT nn DOT bcandid DOT com>, "Daryl Zero" wrote: > I am very knew to programming but I want to learn although it is been > frustrating. First there was the issue of finding a compiler. (I still > remember learning that you needed a program in order to wright a program) > Which was free because I am a cheap ass. Boo. I found Djgpp. Yeah!. I > downloaded a huge amount of zip files and read that I had to make a change > to the autoexecbat file which scared me. Boo, Hiss! I got over my fear and > installed it and Now I have a compiler. YEAH! However *Ahwww* I am trying to > learn from a book called c for dummies. I have done about three programs > that did allright but these are the simpleist of them. The more complicated > ones (By newbie standards) get error's. Here is an example of one that gets > error's > > #include > > void main() > { > charm me[20]; > > printf("What is your name?") > scanf("%s",&me); > printf("darn glad to meet you, %s!\n,me); > } > > I get the error Error: unterminated string or charcter constant > Error: possible real start of unterminated constant > There were some error's. He-he. The compiler is doing the best it can to help you. Look carefully at the 'darn glad to meet you' line. Whenever you have a "string-literal" it must start and end with double quotes: printf("darn glad to meet you, %s!\n" ,me); BTW you also should have gotten an error on: charm me[20]; perhaps you meant: char me[20]; Keep it up. It does eventually get easier.... Cheers, John Sent via Deja.com http://www.deja.com/ Share what you know. Learn what you don't.