Click here to Skip to main content
15,885,933 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Understanding GetUserObjectSecurity function (warning: long reply) Pin
Rajesh R Subramanian10-Apr-09 22:28
professionalRajesh R Subramanian10-Apr-09 22:28 
QuestionResource DLL Pin
Varun Bhatt10-Apr-09 21:01
Varun Bhatt10-Apr-09 21:01 
AnswerRe: Resource DLL Pin
«_Superman_»11-Apr-09 20:58
professional«_Superman_»11-Apr-09 20:58 
AnswerWhy does my property sheet has disappeared immediately? [solved] Pin
PCuong198310-Apr-09 18:35
professionalPCuong198310-Apr-09 18:35 
QuestionImage::GetThumbnailImage problem Pin
followait10-Apr-09 15:46
followait10-Apr-09 15:46 
Questionmicrocontroller coding Pin
vikram868610-Apr-09 13:04
vikram868610-Apr-09 13:04 
AnswerRe: microcontroller coding Pin
Garth J Lancaster10-Apr-09 14:23
professionalGarth J Lancaster10-Apr-09 14:23 
Questionsudoku runtime error help please !!!!! Pin
tayyyar10-Apr-09 11:14
tayyyar10-Apr-09 11:14 
hi ı have got a project name sudoku. ıhave already write c code but something wrong ı couldn't find it .please help me !!!
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<time.h>


#define size 9
#define size2 81
int checkingSquare( int *i,int *j,int *row,int *column,int **a);
int main(){
int i,j,row,column,controller=0;
int **a=0;


srand(time(NULL));
for(i=1;i<10;i++)
{//start for1
for(j=1;j<10;j++)
{//start for2

while(controller==0)
{ printf("access1");
controller=checkingSquare(&i,&j,&row,&column,a);
}
}//end for 2

}//end for 1


for(i=1;i<10;i++){
for(j=1;j<10;j++){
printf("%d\n",a[i][j]);}}
return 0;

}
void square(int *inte,int *inte2,int *row,int *column){

*row=*inte/3;
if(*row!=1)
{
*row++;
}
*column=*inte2/3;
if(*column!=1)
{
*column++;
}
}
int checkingSquare( int *i,int *j,int *row,int *column,int **f)
{
int x,y;
* (*(f+*i)+*j)=rand()%9+1;
printf("access");
//checkin big squares
square(i,j,row,column);//to determine which big square we are in
for(x=(*row * 3 -2);x<(*row*3+1);x++)
{
for(y=*column*3-2;y<*column*3+1;y++)
{
if(f[x][y]==f[*i][*j])
return 0;
}
}



//checkin sides
for(x=1;x<10;x++)
{
if(f[x][*j]==f[*i][*j]){

return 0;}
}
for(y=1;y<10;y++)
{
if(f[*i][y]==f[*i][*j]){

return 0;}
}
return 1;
}
AnswerRe: sudoku runtime error help please !!!!! Pin
Luc 64801110-Apr-09 11:48
Luc 64801110-Apr-09 11:48 
AnswerRe: sudoku runtime error help please !!!!! Pin
Garth J Lancaster10-Apr-09 14:27
professionalGarth J Lancaster10-Apr-09 14:27 
AnswerRe: sudoku runtime error help please !!!!! Pin
Maximilien10-Apr-09 15:04
Maximilien10-Apr-09 15:04 
QuestionRe: sudoku runtime error help please !!!!! Pin
David Crow10-Apr-09 17:12
David Crow10-Apr-09 17:12 
AnswerRe: sudoku runtime error help please !!!!! [modified] Pin
tayyyar10-Apr-09 17:59
tayyyar10-Apr-09 17:59 
GeneralRe: sudoku runtime error help please !!!!! Pin
Cedric Moonen10-Apr-09 22:09
Cedric Moonen10-Apr-09 22:09 
GeneralRe: sudoku runtime error help please !!!!! Pin
tayyyar11-Apr-09 1:35
tayyyar11-Apr-09 1:35 
GeneralRe: sudoku runtime error help please !!!!! Pin
David Crow13-Apr-09 3:28
David Crow13-Apr-09 3:28 
QuestionRe: sudoku runtime error help please !!!!! Pin
David Crow13-Apr-09 3:32
David Crow13-Apr-09 3:32 
AnswerRe: sudoku runtime error help please !!!!! Pin
Sauce!12-Apr-09 6:03
Sauce!12-Apr-09 6:03 
Questionhow to control Stepper Motor Control driver through serial Port Pin
sahih10-Apr-09 6:01
sahih10-Apr-09 6:01 
AnswerRe: how to control Stepper Motor Control driver through serial Port Pin
CPallini10-Apr-09 6:49
mveCPallini10-Apr-09 6:49 
AnswerRe: how to control Stepper Motor Control driver through serial Port Pin
Rajesh R Subramanian11-Apr-09 0:15
professionalRajesh R Subramanian11-Apr-09 0:15 
QuestionCreateFile help Pin
suendisra10-Apr-09 6:00
suendisra10-Apr-09 6:00 
QuestionPen Dive Recovery Pin
simash10-Apr-09 5:10
simash10-Apr-09 5:10 
AnswerRe: Pen Dive Recovery Pin
Rajesh R Subramanian10-Apr-09 21:22
professionalRajesh R Subramanian10-Apr-09 21:22 
QuestionOrganizing my program in classes? And question about registry information retrieval. Pin
rbwest8610-Apr-09 4:52
rbwest8610-Apr-09 4:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.