Search results for query: *

  • Users: Pavle
  • Order by date
  1. P

    CountDown Numbers game evaluate method is too slow

    When solution is like this 5 + 6 == 6 + 5 only one should be listed
  2. P

    CountDown Numbers game evaluate method is too slow

    I removed that part for checking string and I am now checking indices instead. For generating operator permutations I am still using generateCombinations method because permutations must be strings. I also removed combination.Count(s => s == '0') and I use for loop to get count of zeros. What...
  3. P

    CountDown Numbers game evaluate method is too slow

    I created method to generate all permutations from int values instead of string values and after removing part for converting to int method for calculation is much faster. Thank you very much. How I can make program to be faster? using System; using System.Collections.Generic; using...
  4. P

    CountDown Numbers game evaluate method is too slow

    I created CountDown Numbers game in c# and it works fine but it's too slow inside evaluate method where Stack is used to calculate result. I tried to use LinkedList instead of Stack but it's then even slower and I also tried to use Array instead but it's same like with Stack. Can someone please...
  5. P

    Database Question and Answers Connect

    Here is table with all columns: Here is table with all columns: http://imageshack.com/a/img923/6084/XNsNPv.png I created one table like this: CREATE TABLE Pitanja ( ID int NOT NULL IDENTITY (1,1) PRIMARY KEY, Pitanje nvarchar(1000) NOT NULL, Odgovor int NOT NULL, OpcijaA nvarchar(1000) NOT NULL...
  6. P

    make expression from numbers

    Here is the code,but how to not use all values to make expression and how to if computer cannot find target number to make expression for closest to target value? using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace...
  7. P

    make expression from numbers

    For example random number to be found is 435 and numbers available to found that number are: 6, 9, 3, 8, 15, 100 Computer should find it like this: 435 = (9 + (3 * (100 + (6 * (15 - 8))))) and show that steps in textbox Or for example random number to be found is 945 and numbers available to...
  8. P

    make expression from numbers

    How to make that computer makes expression from given random numbers to calculate given three-digit number ,if he can't get that number he should calculate closest to him? In first three labels is random generated three-digit number,in second four labels are random generated numbers can be from...
  9. P

    textbox,user cannot enter letter

    I don't know how to do that?
  10. P

    textbox,user cannot enter letter

    How to also make that user cannot enter same letter several times,for example if there is one 'A' in the word he can only type it once,if there is three 'A' he can only type it three times and how to allow to use backspace?
  11. P

    textbox,user cannot enter letter

    How to make that when user enter word using given random letters from 12 labels in textbox,user cannot enter letter that does not exist in given letters!!!
  12. P

    same name for all labels?

    I have fixed problem.How to make that when user enter word using given random letters from labels in textbox,user cannot enter letter that does not exist in given letters!!!
  13. P

    same name for all labels?

    I made every time I click button to show word letter on each label.But this only works with word that has lenght 12,for words that have lenght 10 and 11 program crashes.What should I do? If word lenght is 10 it should generate 2 random letters and place it somewhere in word,if word lenght is 11...
  14. P

    same name for all labels?

    I shuffled word like this: string shuffled_word = new string(word.OrderBy(r => random.Next()).ToArray()); But I don't know how to every time I click button show letter of word on other label?
  15. P

    same name for all labels?

    I made to get random word with lenght between 10 and 12. How to shuffle random word that I get and split it's letters on labels??? string cs = @"Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename= C:\Users\Pavle\Documents\Visual Studio 2015\Projects\Test slagalica\Test...
  16. P

    same name for all labels?

    I want to select random word from SQL server database with lenght between 10 and 12,and if random selected word has lenght less than 12 add letters until lenght become 12,shuffle that word and show on this labels: imagizer.imageshack.us/a/img923/6763/8pY8JB.png
  17. P

    same name for all labels?

    How to make this in C# with SQL Server: Call rs.Open("SELECT DISTINCT Reci FROM " & CStr(duzina), Conn, adOpenKeyset) rs.Move getRandom(0, rs.RecordCount - 1) rec = rs.Fields(0).Value Set rs = Conn.Execute("SELECT DISTINCT Reci FROM " & CStr(Len(r)))
  18. P

    same name for all labels?

    How to pick random word from database and shuffle it???
  19. P

    same name for all labels?

    I want both!!!How to make that???
  20. P

    same name for all labels?

    I have fixed all problems. Whether it can be made to computer take a word from database shuffle it and every time button is clicked it show letters on each textbox separatly???
Back
Top Bottom