PDA

Voir la version complète : Lancement des Minis Projets


rach4you
30/01/2009, 11h10
je trouve que c'est une tres bonne idee !! pour moi je propose une application intranet de n'importe quelle gestion avec php / mysql
oubien une application de gestion monoposte comme gestion bibliotheque ou cabinet medical etc... avec par exemple visual basic et access si vous voulez je peux vous faire l'analyse de l application que vous avez choisi avec la methode merise
en attente de votre choix je vous souhaite bonne prog
coordialementhttp://site.voila.fr/rach4you/lomja1.gif

wise_girl
30/01/2009, 12h00
Pour ta sugegstion, je l'a trouve une bonne idée .enféte,juste il faut un peu d'explication encore!!cad: tu veux poursuivre un projet,en prenant la partie conception"MERISE" sous un équipe de programmation?
Merci pourl'explication:)

rach4you
31/01/2009, 20h23
Bonjour à tous
Moi personnellement j'ai aimé l'idèe, ainsi apré les proposition de nos camarade, mais j'ai moi aussi une proposition tout d'abord j'aimerai bien qu'on commence par des applications simple comme des TP afin de s'abituer et avoir une methode de travail par ce site, après on choisisera un groupe apres on lance un travail commun ==> des projets, alors ce ke je propose d'abord ke si kelk1 a deja fait une application soit en langage C,C++, Java, PHP/MySQL, vb, ASP,access , ......
n'importe kel app (jeu, program 3adi, gestion, site.....) ylancih hna , donc pour ça, je sohaite si les membres commencent à diposer des projet hna et l'on discutent, apres on commence un projet incha allah, pkoi pas ywelli un reference pour ceux ki cherchent des projets sur internet.
(exemple d'un site de stockage: www.box.net vous recuperez un lien et vous le mettre ici dans le forum c efficace)
Bncourage

wise_girl
31/01/2009, 23h57
Et que ça te dirai de prendre l'initiative toi méme;).Aprés,je postulera une simple application ADO.
Alors,c'est parti ou pas encore?!!

rach4you
01/02/2009, 09h23
Bonjour a nouveau
oui avec plaisir wise
je vois rien, aucune reaction fine had 7amas li9rito fhad lforum:

voila de ma Part je lance un nouveau programme de soduko je l'ai trouvé il est executable, vous le compiler avec Dev C++ ou visual studio C++ /* Program to solve Su Doko puzzles. */
#include "stdrusty.h"
#include <assert>
#include <stdio>

static int initial_puzzle[9][9] =
{ { 0, 1, 9, 2, 0, 0, 5, 0, 0, },
{ 7, 0, 0, 0, 8, 0, 3, 0, 0, },
{ 0, 4, 0, 5, 0, 0, 0, 0, 0, },
{ 3, 0, 0, 0, 0, 0, 0, 0, 0, },
{ 0, 2, 0, 1, 0, 7, 0, 8, 0, },
{ 0, 0, 0, 0, 0, 0, 0, 0, 1, },
{ 0, 0, 0, 0, 0, 4, 0, 5, 0, },
{ 0, 0, 5, 0, 1, 0, 0, 0, 6, },
{ 0, 0, 2, 0, 0, 6, 7, 9, 0, },
};

#define FINISHED (1 <<15>> 1) & 0x5555);
res = (res & 0x3333) + ((res >> 2) & 0x3333);
res = (res & 0x0F0F) + ((res >> 4) & 0x0F0F);
return (res & 0x00FF) + ((res >> 8) & 0x00FF);
}

static unsigned row(u16 puzzle[9][9], unsigned int x, unsigned int y);
u16 *value,
bool (*fn)(u16 p[9][9], unsigned int, unsigned int, u16 *))
{
unsigned int i, total = 0;

for (i = 0; i < 9; i++)
if (i != x && !(puzzle[y][i] & FINISHED))
total += fn(puzzle, i, y, value);
return total;
}

static unsigned column(u16 puzzle[9][9], unsigned int x, unsigned int y,
u16 *value,
bool (*fn)(u16 p[9][9], unsigned, unsigned, u16 *))
{
unsigned int i, total = 0;

for (i = 0; i < 9; i++)
if (i != y && !(puzzle[i][x] & FINISHED))
total += fn(puzzle, x, i, value);
return total;
}

static unsigned box(u16 puzzle[9][9], unsigned int x, unsigned int y,
u16 *value,
bool (*fn)(u16 p[9][9], unsigned int, unsigned int, u16 *))
{
unsigned int ix, iy, total = 0;

/* Integer division gives us the 3x3 box we're in. */
for (ix = x / 3 * 3; ix < x / 3 * 3 + 3; ix++) {
for (iy = y / 3 * 3; iy < y / 3 * 3 + 3; iy++) {
if (puzzle[iy][ix] & FINISHED)
continue;
if (ix == x && iy == y)
continue;
total += fn(puzzle, ix, iy, value);
}
}
return total;
}

static void eliminate(u16 puzzle[9][9], unsigned int x, unsigned int y);

static bool reduce(u16 puzzle[9][9], unsigned int x, unsigned int y, u16 *val)
{
puzzle[y][x] &= ~*val;
assert(puzzle[y][x] != 0);

if (hweight16(puzzle[y][x]) == 1) {
printf("Solved %ix%i = %i\n", x+1, y+1, ffs(puzzle[y][x]));
eliminate(puzzle, x, y);
return true;
}
return false;
}

static void eliminate(u16 puzzle[9][9], unsigned int x, unsigned int y)
{
assert(puzzle[y][x] != 0);
puzzle[y][x] |= FINISHED;

row(puzzle, x, y, &puzzle[y][x], reduce);
column(puzzle, x, y, &puzzle[y][x], reduce);
box(puzzle, x, y, &puzzle[y][x], reduce);
}

/* Take away the possibilities of this square. */
static bool cutdown(u16 puzzle[9][9], unsigned int x, unsigned int y, u16 *val)
{
if (*val & puzzle[y][x]) {
*val &= ~puzzle[y][x];
return true;
}
return false;
}

void dump_val(u16 val)
{
unsigned int i;

for (i = 0; i < 9; i++)
if (val & (1 << i))
printf("%i", i+1);
else
printf(" ");
}

static void dump(u16 puzzle[9][9])
{
unsigned int x, y;

for (y = 0; y < 9; y++) {
if (y % 3 == 0)
printf(" -----------------------------------------------------------------------------------------\n");
for (x = 0; x < 9; x++) {
if (x % 3 == 0)
printf("|");
else
printf(".");
dump_val(puzzle[y][x]);
}
printf("|\n");
}
printf(" -----------------------------------------------------------------------------------------\n");
}

/* If we have a possibility which no other square has, that's our value */
static bool try_cutdown(u16 puzzle[9][9], unsigned int x, unsigned int y)
{
u16 val;

val = puzzle[y][x];
row(puzzle, x, y, &val, cutdown);
if (val) {
printf("Row eliminated %ix%i = %i\n",
x+1, y+1, ffs(val));
goto elim;
}

val = puzzle[y][x];
column(puzzle, x, y, &val, cutdown);
if (val) {
printf("Col eliminated %ix%i = %i\n",
x+1, y+1, ffs(val));
goto elim;
}

val = puzzle[y][x];
box(puzzle, x, y, &val, cutdown);
if (val) {
printf("Box eliminated %ix%i = %i\n",
x+1, y+1, ffs(val));
goto elim;
}
return false;

elim:
/* Can't have more than one answer. */
assert(hweight16(val) == 1);
puzzle[y][x] = val;
eliminate(puzzle, x, y);
return true;
}

static bool match(u16 puzzle[9][9], unsigned int x, unsigned int y, u16 *val)
{
return (puzzle[y][x] == *val);
}

/* If not equal, remove these bits. */
static bool reduce_unequal(u16 puzzle[9][9], unsigned x, unsigned y, u16 *val)
{
if (puzzle[y][x] == *val)
return false;

if (!(puzzle[y][x] & *val))
return false;

puzzle[y][x] &= ~*val;
assert(puzzle[y][x] != 0);

if (hweight16(puzzle[y][x]) == 1) {
printf("Matches eliminated %ix%i = %i\n",
x+1, y+1, ffs(puzzle[y][x]));
eliminate(puzzle, x, y);
}
return true;
}

/* If there are 2 identical pairs, nothing else can be that value.
* Similarly 3 identical triplets. */
static bool try_matches(u16 puzzle[9][9], unsigned int x, unsigned int y)
{
unsigned int matches;
bool progress = false;

matches = row(puzzle, x, y, &puzzle[y][x], match);
if (matches+1 == hweight16(puzzle[y][x]))
progress = row(puzzle, x, y, &puzzle[y][x], reduce_unequal);

matches = column(puzzle, x, y, &puzzle[y][x], match);
if (matches+1 == hweight16(puzzle[y][x]))
progress = column(puzzle, x, y, &puzzle[y][x], reduce_unequal);

matches = box(puzzle, x, y, &puzzle[y][x], match);
if (matches+1 == hweight16(puzzle[y][x]))
progress = box(puzzle, x, y, &puzzle[y][x], reduce_unequal);

return progress;
}

int main()
{
unsigned int x, y;
bool progress;
u16 puzzle[9][9];

/* Blank puzzle. */
for (x = 0; x < 9; x++)
for (y = 0; y < 9; y++)
puzzle[y][x] = (1 << 9) - 1;

printf("Adding known numbers...\n");
for (x = 0; x < 9; x++) {
for (y = 0; y < 9; y++) {
if (!initial_puzzle[y][x])
continue;
puzzle[y][x] = 1 << (initial_puzzle[y][x] - 1);
printf("We know %ix%i = %i\n",
x+1, y+1, ffs(puzzle[y][x]));
eliminate(puzzle, x, y);
}
}

printf("Deriving new numbers...\n");
do {
progress = false;
for (x = 0; x < 9; x++) {
for (y = 0; y < 9; y++) {
if (puzzle[y][x] & FINISHED)
continue;
progress |= try_cutdown(puzzle, x, y);
progress |= try_matches(puzzle, x, y);
}
}
} while(progress);
dump(puzzle);

return 0;
}

on vous attends
.
merci
couragez vous

wise_girl
01/02/2009, 13h25
bounjour rach4you,
pour ce programme j'en ai déja l'inttention de l'essayer avec le langage JAVA,puisque j'appartient pas au café C++:(.En tout cas merci bien pour ton coourage).
De ma part un simple truck en VB6,pour savoir à quoi sert!!je vais rien vous dire,à vous le decouvrire,et surtout n'étonné pas parsque c'est pas un virus!!;)

En load-->
Explicit
Private Declare Function CreatePolygonRgn Lib "gdi32" (lpPoint As POINTAPI, ByVal nCount As Long, ByVal nPolyFillMode As Long) As Long
Private Declare Function CreateRectRgn Lib "gdi32" (ByVal x1 As Long, ByVal y1 As Long, ByVal X2 As Long, ByVal Y2 As Long) As Long
Private Declare Function CreateRoundRectRgn Lib "gdi32" (ByVal x1 As Long, ByVal y1 As Long, ByVal X2 As Long, ByVal Y2 As Long, ByVal X3 As Long, ByVal Y3 As Long) As Long
Private Declare Function CreateEllipticRgn Lib "gdi32" (ByVal x1 As Long, ByVal y1 As Long, ByVal X2 As Long, ByVal Y2 As Long) As Long
Private Declare Function CombineRgn Lib "gdi32" (ByVal hDestRgn As Long, ByVal hSrcRgn1 As Long, ByVal hSrcRgn2 As Long, ByVal nCombineMode As Long) As Long
Private Declare Function DeleteObject Lib "gdi32" (ByVal hObject As Long) As Long
Private Declare Function SetWindowRgn Lib "user32" (ByVal hWnd As Long, ByVal hRgn As Long, ByVal bRedraw As Boolean) As Long
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Private Declare Function ReleaseCapture Lib "user32" () As Long
Private Type POINTAPI
X As Long
Y As Long
End Type
Private Const RGN_COPY = 5
Private Const CreatedBy = "VBSFC 7.0"
Private Const RegisteredTo = "Not Registered"
Private ResultRegion As Long
Private Function CreateFormRegion(ScaleX As Single, ScaleY As Single, OffsetX As Integer, OffsetY As Integer) As Long
Dim HolderRegion As Long, ObjectRegion As Long, nRet As Long, Counter As Integer
Dim PolyPoints() As POINTAPI
Dim STPPX As Integer, STPPY As Integer
STPPX = Screen.TwipsPerPixelX
STPPY = Screen.TwipsPerPixelY
ResultRegion = CreateRectRgn(0, 0, 0, 0)
HolderRegion = CreateRectRgn(0, 0, 0, 0)
'This procedure was generated by VB Shaped Form Creator. This copy has
'NOT been registered for commercial use. It may only be used for non-
'profit making programs. If you intend to sell your program, I think
'it's only fair you pay for mine. Commercial registration costs $30,
'and can be performed online. See "Registration" item on the help menu
'for details.
'Latest versions of VB Shaped Form Creator can be found at my website at
'http://www.byalexv.com/VBSFC.html or you can visit my main site
'with many other free programs and utilities at http://www.byalexv.com
'Lines starting with '! are required for reading the form shape using the
'Import Form command in VB Shaped Form Creator, but are not necessary for
'Visual Basic to display the form correctly.
'!Shaped Form Region Definition
'!3,87,208,613,514,0,0,1
ObjectRegion = CreateEllipticRgn(208 * ScaleX * 15 / STPPX + OffsetX, 87 * ScaleY * 15 / STPPY + OffsetY, 613 * ScaleX * 15 / STPPX + OffsetX, 514 * ScaleY * 15 / STPPY + OffsetY)
nRet = CombineRgn(ResultRegion, ObjectRegion, ObjectRegion, RGN_COPY)
DeleteObject ObjectRegion
'!3,126,240,307,191,0,0,3
ObjectRegion = CreateEllipticRgn(240 * ScaleX * 15 / STPPX + OffsetX, 126 * ScaleY * 15 / STPPY + OffsetY, 307 * ScaleX * 15 / STPPX + OffsetX, 191 * ScaleY * 15 / STPPY + OffsetY)
nRet = CombineRgn(HolderRegion, ResultRegion, ResultRegion, RGN_COPY)
nRet = CombineRgn(ResultRegion, HolderRegion, ObjectRegion, 4)
DeleteObject ObjectRegion
'!3,113,518,594,181,0,0,3
ObjectRegion = CreateEllipticRgn(518 * ScaleX * 15 / STPPX + OffsetX, 113 * ScaleY * 15 / STPPY + OffsetY, 594 * ScaleX * 15 / STPPX + OffsetX, 181 * ScaleY * 15 / STPPY + OffsetY)
nRet = CombineRgn(HolderRegion, ResultRegion, ResultRegion, RGN_COPY)
nRet = CombineRgn(ResultRegion, HolderRegion, ObjectRegion, 4)
DeleteObject ObjectRegion
'!3,258,373,462,318,0,0,3
ObjectRegion = CreateEllipticRgn(373 * ScaleX * 15 / STPPX + OffsetX, 258 * ScaleY * 15 / STPPY + OffsetY, 462 * ScaleX * 15 / STPPX + OffsetX, 318 * ScaleY * 15 / STPPY + OffsetY)
nRet = CombineRgn(HolderRegion, ResultRegion, ResultRegion, RGN_COPY)
nRet = CombineRgn(ResultRegion, HolderRegion, ObjectRegion, 4)
DeleteObject ObjectRegion
'!3,386,315,534,441,0,0,3
ObjectRegion = CreateEllipticRgn(315 * ScaleX * 15 / STPPX + OffsetX, 386 * ScaleY * 15 / STPPY + OffsetY, 534 * ScaleX * 15 / STPPX + OffsetX, 441 * ScaleY * 15 / STPPY + OffsetY)
nRet = CombineRgn(HolderRegion, ResultRegion, ResultRegion, RGN_COPY)
nRet = CombineRgn(ResultRegion, HolderRegion, ObjectRegion, 4)
DeleteObject ObjectRegion
'!3,503,355,461,524,0,0,3
ObjectRegion = CreateEllipticRgn(355 * ScaleX * 15 / STPPX + OffsetX, 503 * ScaleY * 15 / STPPY + OffsetY, 461 * ScaleX * 15 / STPPX + OffsetX, 524 * ScaleY * 15 / STPPY + OffsetY)
nRet = CombineRgn(HolderRegion, ResultRegion, ResultRegion, RGN_COPY)
nRet = CombineRgn(ResultRegion, HolderRegion, ObjectRegion, 4)
DeleteObject ObjectRegion
'!3,292,605,617,375,0,0,3
ObjectRegion = CreateEllipticRgn(605 * ScaleX * 15 / STPPX + OffsetX, 292 * ScaleY * 15 / STPPY + OffsetY, 617 * ScaleX * 15 / STPPX + OffsetX, 375 * ScaleY * 15 / STPPY + OffsetY)
nRet = CombineRgn(HolderRegion, ResultRegion, ResultRegion, RGN_COPY)
nRet = CombineRgn(ResultRegion, HolderRegion, ObjectRegion, 4)
DeleteObject ObjectRegion
'!3,286,204,215,383,0,0,3
ObjectRegion = CreateEllipticRgn(204 * ScaleX * 15 / STPPX + OffsetX, 286 * ScaleY * 15 / STPPY + OffsetY, 215 * ScaleX * 15 / STPPX + OffsetX, 383 * ScaleY * 15 / STPPY + OffsetY)
nRet = CombineRgn(HolderRegion, ResultRegion, ResultRegion, RGN_COPY)
nRet = CombineRgn(ResultRegion, HolderRegion, ObjectRegion, 4)
DeleteObject ObjectRegion
'!3,180,448,469,200,0,0,3
ObjectRegion = CreateEllipticRgn(448 * ScaleX * 15 / STPPX + OffsetX, 180 * ScaleY * 15 / STPPY + OffsetY, 469 * ScaleX * 15 / STPPX + OffsetX, 200 * ScaleY * 15 / STPPY + OffsetY)
nRet = CombineRgn(HolderRegion, ResultRegion, ResultRegion, RGN_COPY)
nRet = CombineRgn(ResultRegion, HolderRegion, ObjectRegion, 4)
DeleteObject ObjectRegion
'!3,187,349,368,205,0,0,3
ObjectRegion = CreateEllipticRgn(349 * ScaleX * 15 / STPPX + OffsetX, 187 * ScaleY * 15 / STPPY + OffsetY, 368 * ScaleX * 15 / STPPX + OffsetX, 205 * ScaleY * 15 / STPPY + OffsetY)
nRet = CombineRgn(HolderRegion, ResultRegion, ResultRegion, RGN_COPY)
nRet = CombineRgn(ResultRegion, HolderRegion, ObjectRegion, 4)
DeleteObject ObjectRegion
'!3,180,344,377,213,0,0,2
ObjectRegion = CreateEllipticRgn(344 * ScaleX * 15 / STPPX + OffsetX, 180 * ScaleY * 15 / STPPY + OffsetY, 377 * ScaleX * 15 / STPPX + OffsetX, 213 * ScaleY * 15 / STPPY + OffsetY)
nRet = CombineRgn(HolderRegion, ResultRegion, ResultRegion, RGN_COPY)
nRet = CombineRgn(ResultRegion, HolderRegion, ObjectRegion, 3)
DeleteObject ObjectRegion
'!3,178,444,484,209,0,0,2
ObjectRegion = CreateEllipticRgn(444 * ScaleX * 15 / STPPX + OffsetX, 178 * ScaleY * 15 / STPPY + OffsetY, 484 * ScaleX * 15 / STPPX + OffsetX, 209 * ScaleY * 15 / STPPY + OffsetY)
nRet = CombineRgn(HolderRegion, ResultRegion, ResultRegion, RGN_COPY)
nRet = CombineRgn(ResultRegion, HolderRegion, ObjectRegion, 3)
DeleteObject ObjectRegion
DeleteObject HolderRegion
CreateFormRegion = ResultRegion
End Function

Private Sub Command1_Click()
Me.Hide
Form1.Show
End Sub
Private Sub Form_Load()

Dim nRet As Long
nRet = SetWindowRgn(Me.hWnd, CreateFormRegion(1, 1, 0, 0), True)
'If the above two lines are modified or moved a second copy of
'them may be added again if the form is later Modified by VBSFC.
End Sub
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)

'Next two lines enable window drag from anywhere on form. Remove them
'to allow window drag from title bar only.
ReleaseCapture
SendMessage Me.hWnd, &HA1, 2, 0&
End Sub
Private Sub Form_Unload(Cancel As Integer)

DeleteObject ResultRegion
'If the above line is modified or moved a second copy of it
'may be added again if the form is later Modified by VBSFC.
End Sub

Alors,---> F5

?? ???? ???

rach4you
01/02/2009, 18h49
slt
de quoi sert had lcode?
ofin ADO
et merci;)

wise_girl
01/02/2009, 19h01
pour ce code ça marche en VB6,il sert à modifier l'interface en ajoutant des effets!
pour l'ADO,tu veux que je lance tout une application ou quoi?!!

rach4you
01/02/2009, 19h05
oui mé lcode dyal VB6 mafhamtoch

wise_girl
01/02/2009, 19h12
c'est en english,tu vx la traduction ou quoi!!!

rach4you
01/02/2009, 19h30
nn safi merci wise

wise_girl
01/02/2009, 20h04
lool,ok.soyez le bienvenue toujours!;)