Hi I am a new c+ student. I can make only simple calculator or find some average number programmes.... But now I have though one for me :( I need a program to find word in nxm puzzle and print its location... words may have been located directions.. I mean (i)left to right E(east) (ii)right to left W(west) (iii) up to bottom S(south) (iv) bottom to up N(north)
I think I am gonna use
char* puzzle[6]={
"ebzrys",
"rsygaf",
"caakce",
"avcmre",
"nolnoc",
"droguz"};
char* words[5]={"ercan", "olcay", "conlon", "oguz", "cprog"};
output should be like that.....
word ercan at 1, 1 direction S
word olcay at 6, 3 direction N
word conlon at 5, 6 direction W
word ogus 6, 3 direction E
word cprog cant found
I think this is not hard for you but I cant do it :( please help me :(