[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/sci/ - Science & Math

Search:


View post   

>> No.4511367 [View]
File: 266 KB, 1024x787, Twisted Metallic gold string 2mm.jpg [View same] [iqdb] [saucenao] [google]
4511367

Who here knows string theory?

>> No.4413288 [View]
File: 266 KB, 1024x787, strings.jpg [View same] [iqdb] [saucenao] [google]
4413288

Im implementing a word finder for finding words for scrabble, written in C. Yes, im writing it in C. Here is what im planning.

input from user will be the letters required by the board to fit, any blank spaces will be represented by asterisks, (*).

Im going to allow the program to build words longer than what is specified by the user, but not shorter (obviously). For example:

input: t*est

output:
test
tester
testes
....
etc.

Im referencing a .txt document with just over 300k words in it. If you search the internet, you can recreate it by visiting this website: http://people.sc.fsu.edu/~jburkardt/data/txt/dictionary.txt

My code is here, http://pastebin.com/WJ7piiWx

The problem im having is that its not alocating the correct amount of spaces. For some reason, its giving me strange output. See: http://pastebin.com/98DnrcXX

Looking for any help i can get. Please and ty in advance

Navigation
View posts[+24][+48][+96]