![]() |
| ||
| Re: New Parser Generator It's not your compiler, it's you. Also, that file you linked doesn't use fgets. Instead of using gets, you should use fgets. But really you should use std::string functions. |
| ||
| Re: New Parser Generator Quote:
|
| ||
| Re: New Parser Generator That's extremely dumb. Compiler errors are extremely rare, and you're not going to set one off just by using gets. |
| ||
| Re: New Parser Generator Come on. Please don't insult me. Look, I fixed the file up at the link I had given you - sorry I was careless about leaving gets out. http://www.uweb.ucsb.edu/~frenchenee...Calculator.cpp That does use gets, and it doesn't work properly. I shouldn't have said "crash" - that was misleading. The string is not recognized by my parser for some reason, and it fails. Commenting out fgets, and using my code makes it work. I don't believe there is any logical error. This is why I assumed something was wrong with the compiler. Quote:
|
| ||
| Re: New Parser Generator Just to clarify, no offense, but I'm not actually looking for critique of my programming style. Much of this code was slapped together - I am not attempting to push it as the best example of C++ code. |
| ||
| Re: New Parser Generator Quote:
|
| All times are GMT -4. The time now is 12:22 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC