what did you enter for cyp? gets() doesn't accept spaces.
You should NEVER EVER use gets() because it can corrupt your program's memory when you enter more characters than the buffer can hold. Instead, use fgets(), such as fgets(cyp,sizeof(cyp),stdin); scanf() with "%s" has a similar problem, you can use "%149s" to limit input to 149 characters plus 1 for null terminator.
Hey ... we all needed to start, somewhere ... and if some code compiles ... and IF it also gives the 'correct' output ... and if one is just beginning ... that can feel like it IS such a big success ... at first ...
I recall that it DID take me a long time before I wasn't terrorized by compiler errors and warnings ... and actually learned to 'like them' ... as I began to 'see' how they prompted me to fix the typos and other coding errors.
There a question mark button on the editor that will take you to this page describing our Markdown formatting. You can also use any of the other buttons for quick formatting without manually typing it yourself. Just clicking the button will give you a default output, and clicking the button with text already highlighted will format it for you.
Help! I want to create a java program that finds the highest even integer among the values entered by the user. Stop asking values when a value less than 1 have been entered. If no even integer is entered, display "No Even Integer"
Hi, as I was told that my code doesn’t scale well at all, I thought perhaps I’d try to get a better understanding of interfaces/abstract classes and classes and the relationship between them.
I don’t want at this stage work on a big separate project as I've already got plenty ...