Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
K

keshava shukla

@keshava shukla
About
Posts
5
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Help::i have made a sudoku solver but it not workin
    K keshava shukla

    // :doh:hey here goes the program i have made pls help me out to find errors #include //#include #include #include #include class sudoku{ int a[9][9][10],count; public: sudoku(); void initsudoku(); void redprob(int , int); void dispsudoku(); void fillele(int , int ); void fillsudoku(); } ; sudoku::sudoku() { int i , j ,k; count=81; cout<<"constructor"; for( i=1;i<=9;i++) for ( j=1;j<=9;j++){ a[i][j][0]=99; for ( k=1;k<=9;k++) a[i][j][k]=0; a[i][j][10]=9; } } void sudoku::redprob(int i, int j ) { int k,l,temp; temp=a[i][j][0]; for ( k=1;k<=9;k++) { if (( k!=j) && (a[i][k][temp]!=99)); { a[i][k][temp] = 99; a[i][k][10]--; if(a[i][k][10]==1) fillele(i,k); } if (( k!=i)&&(a[k][j][temp]!=99)); { a[k][j][temp] = 99; a[k][j][10]--; if(a[k][j][10]==1) fillele(k,j); } } cout<<"l"<>i; cout<<"column no."; cin>>j; cout<<"enter value"; cin>>val; if ((i<=9)&&(j<=9)&&(a[i][j][val]==0)&&(count<=0)) { a[i][j][0]=val; a[i][j][10]=0; count--; redprob(i,j); } else if (i>9) cout<<"wrong row value"; else if (j>9) cout<<"wrong column value"; else if (count<=0) cout<<"already 81 elements have been identified"; else cout<<" you can not place this value here"; cout<<"enter any other element "; cin>>ch; } } void sudoku::fillele(int i, int j ) { for( int k=1; k<=9;k++) if( a[i][j][k] == 0){ a[i][j][0] = k; a[i][j][10]=0; count--; redprob(i,j); } } void sudoku::dispsudoku() { int i,j; for( i=1;i<=9;i++) { for ( j=1;j<=9;j++){ if(a[j][i][0]>10){ cout<<" "; } else { cout<

    C / C++ / MFC help

  • Crazy Indian drivers
    K keshava shukla

    hey thats not true at all and canada is just like that it does nt deserves much of rich driving;)

    The Lounge com tools json question

  • kindly reply what is focuslost and its funcn
    K keshava shukla

    :doh: is it so important to use focus gained and focuslost in program actually i had to make an entry in my data base that is of word meanin antonyms and synonyms amd i am nto getting it correctly pls explain me the work of focuslost and focusgained if possible or just send me a link i am giving u the code part where i am using it import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.sql.*; public class AddWord extends JInternalFrame implements ActionListener, FocusListener { private JPanel pWord = new JPanel (); private JLabel lbWord, lbMean, lbSynonym, lbAntonym; private JTextField txtWord, txtMean, txtSynonym ,txtAntonym; private JButton btnOk, btnCancel; private ButtonGroup bg; private String[] cn =new String[100]; private Statement st; //Statement for Getting the Required Table. private long id = 0; //To Hold the Word. private int i,j,ref=0; public AddWord (Connection con) { //super (Title, Resizable, Closable, Maximizable, Iconifiable) super ("Add New Word", false, true, false, true); setSize (325, 250); //Setting the Form's Labels. lbWord = new JLabel ("Word :"); lbWord.setForeground (Color.black); lbWord.setBounds (15, 15, 100, 20); lbMean = new JLabel ("Meaning:"); lbMean.setForeground (Color.black); lbMean.setBounds (15, 45, 100, 20); lbSynonym = new JLabel ("Synonym:"); lbSynonym.setForeground (Color.black); lbSynonym.setBounds (15, 75, 100, 20); lbAntonym = new JLabel ("Antonym:"); lbAntonym.setForeground (Color.black); lbAntonym.setBounds (15, 105, 100, 20); txtWord = new JTextField (); txtWord.setHorizontalAlignment (JTextField.RIGHT); txtWord.addFocusListener (this); txtWord.setBounds (120, 15, 175, 25); txtMean = new JTextField (); txtMean.setBounds (120, 45, 175, 25); txtSynonym = new JTextField (); txtSynonym.setBounds (120, 75, 175, 25); txtAntonym = new JTextField (); txtAntonym.setBounds (120, 75, 175, 25); btnOk = new JButton ("OK"); btnOk.setBounds (50, 175, 100, 25); btnOk.addActionListener (this); btnCancel = new JButton ("Cancel"); btnCancel.setBounds (170, 175, 100, 25); btnCancel.addActionListener (this); txtWord.addKeyListener (new KeyAdapter () { public void keyTyped (KeyEvent ke) { char c = ke.getKeyChar (); if (! ((Character.isLetter (c)) || (c == KeyEvent.VK_BACK_SPACE))) { getToolkit().beep (); ke.consume (); } } } ); txtMean.

    IT & Infrastructure java database question

  • what the hell is this and why
    K keshava shukla

    thanks i think it will work

    Managed C++/CLI

  • what the hell is this and why
    K keshava shukla

    when you type a code int a =10; printf("%d %d %d",a++,a++,a++); returns o/p 12 11 10 can anybody pls xplain me why this o/p comes:doh:

    Managed C++/CLI
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups