If you actually read the rules before you posted this, you would see how inappropriate the post is. This site basically helps those that helps themselves. Show some effort with a specific problem and people will be more than happy to help. But we won't do your homework for you.
by the way, when you implore people to answer you, even saying that they won't help you is an answer.
Guys .. u thought that I never tried .. I tried alot.
Prove it. Not only does it show us that you're not just looking for a handout, but it also helps us to determine your level for tailoring help to you. Further, instead of a lot of back and forth, you might find that your problems are actually easy to fix when someone more experienced has a look at the code you have.
And how did u checked the word .. if its palindrome or not ?
He's leaving that up to you. It's simple if you break it down into small steps. A palindrome is where a word is the same forwards as it is backwards. For example the word redder is 6 letters long and it is a palindrome. We can check this systematically by looking at the first and last letters. Are they the same? Yes. Continue. Look at the 2nd and 2nd to last letters. Are they the same? Yes. We'll check the last pair of letters, the 3rd and the 3rd to last. They are the same too. This renders the word a palindrome.
You could do this another way by simply creating a char buffer and load it with the word the user entered, but backwards. For example, if the user entered Pooled, then your new buffer would end up containing delooP. Then you can simply call strcmp on the original and the reversed. If they are the same, then the word is a palindrome - because, well, palindromes are the same forwards as backwards.
i think i didn't take the lesson coz the teacher gave the idea today about the palindrome.. and the teacher herself couldn't explain it .. uhh GOD! :'(
WTH .. how can I solve it without any idea about it even .. and the submission is today.
I'm sure that when you get a job as a programmer your boss will be really glad that you know how to use Google, but I don't know how happy he's going to be that you can't write a program to save your life...
I am writing a java program that needs to execute shell commands, so I wrote a function that would take the command to execute as a string (ie: "mkdir ~/Folder1") and execute that command with the shell. Here is the function:
Runtime run = Runtime.getRuntime();
Process pr = ...
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 ...
Hi. I have a form with list box : lst_product, datagridview : grd_order and button: btn_addline. lst_product has a list of product ids selected from database (MS Acess 2013) , grd_order is by default empty except for 2 headers and btn_addline adds rows to grd_order.