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
N

nyeboy

@nyeboy
About
Posts
26
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Urgent please from Ethiopia!
    N nyeboy

    The following coding come from china. It isn't writed by mine.

    #include<stdio.h>

    #define NUM 8 //定义数组的大小

    int a[NUM+1];

    int main()

    {

    int i,k,flag,not_finish=1,count=0;

    i=1;

    a[1]=1;

    printf("The possible configuration of 8 queens are:\n");

    while(not_finish)

    {

    while(not_finish&&i<=NUM)

    {

    for(flag=1,k=1;flag&&k<i;k++)

    if(a[k]==a[i])flag=0;

    for(k=1;flag&&k<i;k++)

    if((a[i]==a[k]-(k-i))||(a[i]==a[k]+(k-i))) flag=0;

    if(!flag)

    {

    if(a[i]==a[i-1])

    {

    i--;

    if(i>1&&a[i]==NUM)

    a[i]=1;

    else if(i==1&&a[i]==NUM)

    not_finish=0;

    else a[i]++;

    }

    else if(a[i]==NUM) a[i]=1;

    else a[i]++;

    }

    else if(++i<=NUM)

    if(a[i-1]==NUM) a[i]=1;

    else a[i]=a[i-1]+1;

    }

    if(not_finish)

    {

    ++count;

    printf((count-1)%3?" [%2d]: ":" \n[%2d]: ",count);

    for(k=1;k<=NUM;k++)

    printf(" %d",a[k]);

    if(a[NUM-1]<NUM) a[NUM-1]++;

    else a[NUM-1]=1;

    i=NUM-1;

    }

    }

    }

    studing is processing in this life.

    C / C++ / MFC c++ help question

  • how to get command line arguments in MFC
    N nyeboy

    LPTSTT strCmdLine = GetCommandLine(); You should do next?

    studing is processing in this life.

    C / C++ / MFC c++ tutorial question announcement

  • Control CStatic, Height of FONT
    N nyeboy

    Use following method for a try.

    CFont font;
    VERIFY(font.CreateFont(
    12, // nHeight
    0, // nWidth
    0, // nEscapement
    0, // nOrientation
    FW_NORMAL, // nWeight
    FALSE, // bItalic
    FALSE, // bUnderline
    0, // cStrikeOut
    ANSI_CHARSET, // nCharSet
    OUT_DEFAULT_PRECIS, // nOutPrecision
    CLIP_DEFAULT_PRECIS, // nClipPrecision
    DEFAULT_QUALITY, // nQuality
    DEFAULT_PITCH | FF_SWISS, // nPitchAndFamily
    _T("Arial"))); // lpszFacename

    GetDlgItem(IDC_STATIC_TITLE)->SetFont(&font);

    studing is processing in this life.

    C / C++ / MFC c++ tutorial

  • How to call a Dll
    N nyeboy

    There are two methods generally. One:Dynamic load DLL HINSTANCE hInst; //DLL2.dll must in current directory. //Implement on a button clicked event. hInst=LoadLibrary("DLL2.dll"); typedef int (*ADDPROC) (int a,int b); ADDPROC add=(ADDPROC)GetProcAddress(hInst,"Add"); if(!add) { MessageBox("Failed to get address!"); return; } int ret=add(5,3); CString str; str.Format("%d",ret); MessageBox(str); Two:Static load DLL First place DLL2.dll and DLL2.lib into current directory, then set project/settings/Link to load DLL2.lib _declspec(dllimport) int add(int a,int b); void CDLL2TestDlg::OnButton1() { int a=add(5,5);//use this method from dll }

    studing is processing in this life.

    C / C++ / MFC tutorial question

  • Overwrite sitemap node
    N nyeboy

    The argument ID should post to destination page from master page.As for detail with this argument,using class is just a good method in 40 forms.

    studing is processing in this life.

    ASP.NET help com tutorial question

  • How Encrypt and discrypt password in asp.net 2.0 C#
    N nyeboy

    "MD5" only can encrypt,but discrypt.If you want to find old password,it is impossible.The only method is set a new password,then you send it to user's email.

    studing is processing in this life.

    ASP.NET csharp database asp-net

  • Overwrite sitemap node
    N nyeboy

    You must write code in destination page,not a master page.

    studing is processing in this life.

    ASP.NET help com tutorial question

  • get values on 3 Form
    N nyeboy

    Yes,your question is blur. If you want to implement such as register user,you can use three panels.

    studing is processing in this life.

    ASP.NET help tutorial question

  • How to Rewrite URLs????
    N nyeboy

    I want to know this too.

    studing is processing in this life.

    ASP.NET help csharp apache com docker

  • How Encrypt and discrypt password in asp.net 2.0 C#
    N nyeboy

    There is a method to encrypt a password,but it can't discrypt. string pass = System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(tbPass.Text, "MD5"); If you want to find pass,you can reset pass when user have answered your question rightly.

    studing is processing in this life.

    ASP.NET csharp database asp-net

  • Regular expression for 3 character alphanumeric string separated by _
    N nyeboy

    You could search about Regular Expression.It is simple.

    studing is processing in this life.

    ASP.NET regex help

  • Question regarding 'GetPostBackEventReference' and multiple arguments
    N nyeboy

    In fact,ViewState is the same as Session. button1_click() { ViewState["test"]=TextBox1.text; string temp=ViewState["test"]; Response.write(temp); }

    studing is processing in this life.

    ASP.NET question csharp javascript asp-net sysadmin

  • Question regarding 'GetPostBackEventReference' and multiple arguments
    N nyeboy

    If you want to get client values,there are four methods. one is ViewState,two hidden control,three session,four request.query or request.form.

    studing is processing in this life.

    ASP.NET question csharp javascript asp-net sysadmin

  • datalist problem
    N nyeboy

    You try to open if in a parent page.

    studing is processing in this life.

    ASP.NET csharp asp-net help

  • Which is a best way to create Bloggings in the site.
    N nyeboy

    You can use datalist.For its bigger using.

    studing is processing in this life.

    ASP.NET

  • Static in Asp.net
    N nyeboy

    It starts its life from page_load and ends its life until page_unload.

    studing is processing in this life.

    ASP.NET csharp asp-net testing beta-testing question

  • why when i print with crystal report using Activx, the page will be refrech??
    N nyeboy

    This page refresh meaning it have posted to server.You just this button of print run at client,not server,just validation controls using-occur in client.

    studing is processing in this life.

    ASP.NET help question

  • why when i print with crystal report using Activx, the page will be refrech??
    N nyeboy

    use hidden controls or viswstate or session!

    studing is processing in this life.

    ASP.NET help question

  • help me!!! Could not find a part of the path "D:\".
    N nyeboy

    You had better debug it,or create a new file to debug filepath validation.Certainly,you also use following: Directory.Delete(Server.MapPath(@"./temp")+"//"+sid,true); or Directory.Delete(Server.MapPath(".//temp")+"//"+sid,true); Ple notice "/" in limit!

    studing is processing in this life.

    ASP.NET help csharp sysadmin question

  • Save int on page with Viewstate
    N nyeboy

    string s1=(string)ViewState["s"];

    studing is processing in this life.

    ASP.NET help
  • Login

  • Don't have an account? Register

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