
一、作者不同
1、WINDOWS核心编程:是2008年5月机械工业出版社出版的图书,作者是(美)JeffreyRichter。
2、WINDOWS程序设计:是2010年清华大学出版社出版的图书,作者是(美)佩措尔德,译者是方敏、张胜、梁路平。
二、内容不同
1、WINDOWS核心编程:从基本概念入手,全面系统地介绍了Windows底层实现机制、Windows应用程序的基本构件以及各类WindowsAPI等,并列举了大量应用程序示例。
2、WINDOWS程序设计:涵盖基础知识和中高级主题,全面地介绍了Windows程序设计所涉及的细枝末节,旨在帮助读者从高屋建瓴的角度,建立完整的知识体系,为以后的职业生涯奠定良好的基础。
三、作用不同
1、WINDOWS核心编程:主题广泛,内容丰富,讲解深入而精辟。透过这本Windows编程经典,我们可以在专家的悉心指导下,洞悉Windows编程精华,深入了解高级编程技巧,编写出高性能的Windows应用程序。
2、WINDOWS程序设计:适合任何层次的Windows程序员阅读和参考,是帮助梳理和建立Windows知识体系的理想读物。
参考资料来源:百度百科-Windows核心编程
参考资料来源:百度百科-Windows程序设计
示例:
using System
using System.Collections.Generic
using System.ComponentModel
using System.Data
using System.Drawing
using System.Linq
using System.Text
using System.Windows.Forms
namespace test
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent()
}
enum WeekDay { 星期天,星期一,星期二,星期三,星期四,星期五,星期六}
private void button1_Click(object sender, EventArgs e)
{
DateTime dt = Convert .ToDateTime ( textBox1 .Text)
label1.Text = "\n这一天是" + dt.DayOfWeek
WeekDay wd =(WeekDay ) dt.DayOfWeek
label1.Text+= "(即′:"+wd +")"
}
}
}
扩展资料
设计一个简单的Windows程序,输入5个数字,然后排序并输出;
using System
using System.Collections.Generic
using System.ComponentModel
using System.Data
using System.Drawing
using System.Linq
using System.Text
using System.Windows.Forms
namespace bb
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent()
}
int[]a=new int[5]
int i = 0
private void button1_Click(object sender, EventArgs e)
{
if (i <5)
{
a[i] = Convert.ToInt32(textBox1.Text)
label2.Text += Convert .ToString( a[i])+" "
i++
textBox1.Text = ""
}
}
private void Form1_Load(object sender, EventArgs e)
{
label2.Text = "排序前的数字序列:"
}
private void button2_Click(object sender, EventArgs e)
{
Array.Sort(a)
label2.Text += "\n排序后的数字序列:"+a[0]+" "+a[1]+" "+a[2]+" "+a[3]+" "+a[4]
}
}
}
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)