•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Game Development section within the Software Development category of DaniWeb, a massive community of 422,672 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,682 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Game Development advertiser: Programming Forums
Views: 1657 | Replies: 12 | Solved
![]() |
"""This is a forum in which you can get help for writing your own code, not a service that provides code to you.""""
yup she's right.... narue can i ask where can i found a community that can help me... what community will accept all legal and illegal software making>>>???
tnx
jimmy try to learn first....
yup she's right.... narue can i ask where can i found a community that can help me... what community will accept all legal and illegal software making>>>???
tnx
jimmy try to learn first....
I don't know of any. The communities that support illegal software are typically full of script kiddies who aren't capable of or interested in writing something new, and communities that have qualified members typically find illegal software offensive. You're basically asking for two mutually exclusive features.
p.s. For anyone else interested in answering this question, naming a community and/or linking to it would likely be in violation of Daniweb's policies.
p.s. For anyone else interested in answering this question, naming a community and/or linking to it would likely be in violation of Daniweb's policies.
I'm a programmer. My attitude starts with arrogance, holds steady at condescension, and ends with hostility. Get used to it.
•
•
Join Date: Nov 2004
Location: Netherlands
Posts: 5,752
Reputation:
Rep Power: 18
Solved Threads: 197
Of course some communities may not officially allow illegal stuff but have admins who are either too ignorant or too lazy to police their sites properly.
If I knew of such communities I'd however not mention them...
If I knew of such communities I'd however not mention them...
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
•
•
Join Date: Nov 2004
Location: Netherlands
Posts: 5,752
Reputation:
Rep Power: 18
Solved Threads: 197
Seeing as the kid is talking about C, why should it know about classes and objects?
It doesn't seem interested in learning to program itself anyway, only in tricking people into giving it a complete solution it can turn in as the solution to its homework assignment so it doesn't get a failing grade.
It doesn't seem interested in learning to program itself anyway, only in tricking people into giving it a complete solution it can turn in as the solution to its homework assignment so it doesn't get a failing grade.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
here is a sample code in C++ soduko
cplusplus Syntax (Toggle Plain Text)
#include <iostream.h> void main() { int k[9][9],K[9][9]; int i,j,i1,j1,i2,j2; int error,temp; int count=0; for(i=0;i<9;i++) for(j=0;j<9;j++) K[i][j]=0; for(i=0;i<9;i++) for(j=0;j<9;j++) { cin>>K[i][j]; k[i][j]=K[i][j]; } cout<<"O.K.? (Enter 0 if OK, 1 to update): "; cin>>error; if(error==0) goto matrixvalidation; matrixupdation: while(1) { cout<<"Enter Row, Col, Revised number:(0 to exit) "; cin>>i; if(i==0)break; cin>>j>>temp; if(i>0&&j>0&&temp>=0&&i<10&&j<10&&temp<10) { K[i-1][j-1]=temp; k[i-1][j-1]=temp; } else cout<<"Enter row/column 1 to 9 & number 0 to 9 only. "; } matrixvalidation: cout<<" Input matrix: "; for(i=0;i<9;i++) { for(j=0;j<9;j++) cout<<k[i][j]<<" "; cout<<" "; } for(i=0;i<9;i++) for(j=0;j<9;j++) if(k[i][j]<0||k[i][j]>9) { cout<<" "<<i+1<<" "<<j+1<<" "<<k[i][j]; cout<<" Input matrix error."; cout<<" Numbers should be 1 to 9 only. "; goto matrixupdation; } for(i=0;i<9;i++) for(j=0;j<9;j++) { if(k[i][j]==0)continue; error=0; for(i1=0;i1<9;i1++) if(i!=i1&&k[i][j]==k[i1][j]) { error=1; i2=i1; j2=j; } for(j1=0;j1<9;j1++) if(j!=j1&&k[i][j]==k[i][j1]) { error=1; i2=i; j2=j1; } for(i1=0;i1<9;i1++) for(j1=0;j1<9;j1++) if((i!=i1||j!=j1)&&i/3==i1/3&&j/3==j1/3&&k[i][j]==k[i1][j1]) { error=1; i2=i1; j2=j1; } if(error) { cout<<" "<<i+1<<" "<<j+1<<" "<<k[i][j]; cout<<" "<<i2+1<<" "<<j2+1<<" "<<k[i2][j2]; cout<<" Input matrix error."; cout<<" A number has been repeated in the same row, col or block. "; goto matrixupdation; } } /* Logic starts: */ for(i=0;i<9;i++) for(j=0;j<9;j++) { if(K[i][j]>0) goto chksol; for(k[i][j]++;k[i][j]<=9;k[i][j]++) { error=0; for(i1=0;i1<9;i1++) if(i!=i1&&k[i][j]==k[i1][j])error=1; for(j1=0;j1<9;j1++) if(j!=j1&&k[i][j]==k[i][j1])error=1; for(i1=0;i1<9;i1++) for(j1=0;j1<9;j1++) if((i!=i1||j!=j1)&&i/3==i1/3&&j/3==j1/3&&k[i][j]==k[i1][j1]) error=1; if(error==0)break; } if(k[i][j]>9) { k[i][j]=0; do { if(i==0&&j==0)goto nomoresol; if(j>0)j--;else{j=8;i--;} }while(K[i][j]>0); j--; } chksol: if(i==8&&j==8) { cout<<" Solution: "<<++count<<" "; for(i1=0;i1<9;i1++) { for(j1=0;j1<9;j1++) cout<<k[i1][j1]<<" "; cout<<" "; } if(count==50) { cout<<" Too many solutions. Not checking for more solutions. "; return; } while(K[i][j]>0) { if(i==0&&j==0)goto nomoresol; if(j>0)j--;else{j=8;i--;} } k[i][j]=0; do { if(i==0&&j==0)goto nomoresol; if(j>0)j--;else{j=8;i--;} }while(K[i][j]>0); j--; } } nomoresol: if(count>0) cout<<" No more solutions. "; else cout<<"No solution. "; }
Last edited by Narue : Feb 4th, 2008 at 8:37 pm. Reason: Added code tags, do it yourself next time.
╞═══════╣SPYnX███
![]() |
•
•
•
•
•
•
•
•
DaniWeb Game Development Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
activex advertising ajax asp blogging browser business code console development exploit firefox game games google hardware html intel internet java linux marketing microsoft mobile mozilla news nintendo playstation programming ps3 revenue rss search security software sony sql stocks video video game vista w3c web web development wii wiki windows xbox 360 xml yahoo
- Sudoku Source Code. (C#)
- Please help! Sudoku in C (C)
- Sudoku Source Code (C++)
Other Threads in the Game Development Forum
- Previous Thread: Collision Checking
- Next Thread: Counting the shortest route.



Linear Mode