English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Ok here is the story, I had this assignment due that called for a program to test if a WORD (meaning no spaces, unless there is a word in the English language that has a space in it, and is still a word) IS A palindrome OR NOT (using recursion)...regardless my instructor marked me off 10 points! and the only thing he wrote on my paper was "function does not work". He gave me the lowest grade I’ve ever received in one of his classes, an 86.67%, personally I'm not sure whether to be mad, or ashamed of it. Regardless, I have tested this program NUMERIOUS times from before, and after I got it back from the instructor, and I have found NO errors within it, unless you enter something with a space(which the program was not required to have)!!!

The best answer will go to whoever can tell me wtf is wrong with my program, and tell me why I was marked off points. If you need a question format, why was my grade so low on this program.

A link to the program will be up soon.

2006-12-06 05:23:47 · 3 answers · asked by D 4 in Computers & Internet Programming & Design

http://www.geocities.com/youmember2001/recursion.txt

2006-12-06 05:23:56 · update #1

Sorry, in case you have noticed, this is exactly the same question as my last one, although I did some minor fixes on it since yahoo cut off some of what I was writing because I went way over the characacter limit. The assignment is in C++, complie it in whatever complier you chose.

2006-12-06 05:25:20 · update #2

TankAnswer, you are set for best answer once the time limit is reached.

2006-12-06 05:54:52 · update #3

3 answers

Check your other question, as I answered it in full there.

In short, yes, the program does NOT work all the time, but will work if all memory is initialized to 0, as often happens when compiling in debug.

Sorry, but the grade was justified.

2006-12-06 05:51:39 · answer #1 · answered by TankAnswer 4 · 0 0

in case you recognize she would not like your T's and that she needs the date a definite way, and that she is choosy approximately sessions, then you definately ought to truly concentration on those issues you're doing incorrect. it may't be advantageous that she is being harsh, yet as you become old you will discover that maximum human beings are not advantageous. you're able to desire to regulate to what the instructor needs on the grounds that she is the single issuing the grades. whether you had a confirm-instructor convention or had a meet with the vital no longer something could substitute...Their opinion is: you recognize what's predicted of you in this classification so do it and you get the forged grade. college is the comparable way, no longer consistently relaxing, and the teachers are choosy..yet you do what they are announcing because of the fact they subject the grades and that they make the guidelines.

2016-12-18 08:38:19 · answer #2 · answered by Anonymous · 0 0

ok. The reason it does not work is because of your counters. First and listsize will pass each other out. Which is fine. But, the listsize will eventually count down and become negative which will lead you into an unknown memory location. What is there is anybody's guess. You may get the appropraite output one time and another a segmentation fault. The best way to find true is if (listsize == first && word[first] == word[listsize]).

2006-12-06 06:13:37 · answer #3 · answered by a_talis_man 5 · 0 1

fedest.com, questions and answers