- 博客(15)
- 收藏
- 关注
原创 结构体应用
#include#includeusing namespace std;const int n=2;struct student { char num[6]; int score; struct student*next;}stu[n];void main(){ void putin(); void print(); putin(); print();
2013-07-23 19:59:23 560
原创 Android项目->天气预报项目
AndroidManifest.xmlMainActivity.javapackage com.example.sec;//import com.example.first.MainActivity;//import com.example.first.ThirdActivity;//import com.example.first.R;impo
2013-07-23 16:50:19 1229
原创 MFC中消息的操作
myview.cpp// myView.cpp : implementation of the CMyView class//#include "stdafx.h"#include "my.h"#include "myDoc.h"#include "myView.h"#ifdef _DEBUG#define new DEBUG_NEW#undef T
2013-07-23 16:04:54 646
原创 MFC画圆代码
huayuanview.cppvoid CHuayaunView::OnLButtonDown(UINT nFlags, CPoint point) { // TODO: Add your message handler code here and/or call default int a=0,b=0,c=0; if(a<255) { a+=50;
2013-07-23 15:57:25 2872
原创 MFC中菜单设置
caidanview.cpp// caidanView.cpp : implementation of the CCaidanView class//#include "stdafx.h"#include "caidan.h"#include "caidanDoc.h"#include "caidanView.h"#ifdef _DEBUG#define
2013-07-23 15:54:11 599
原创 java web(jsp)
index.jsp<% String path = request.getContextPath(); String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";%>
2013-07-23 15:46:35 764
原创 java web
package com.neusoft.utils;import java.sql.Connection;import java.sql.DriverManager;import java.sql.PreparedStatement;import java.sql.ResultSet;import java.sql.SQLException;import java.sq
2013-07-22 18:30:55 641
原创 MFC中数据库操作
// TODO: Add your message handler code here and/or call default CStudentRecordset rs; rs.Open(); rs.AddNew(); rs.m_ID="009CClientDC dc(this);"; rs.m_Name="zhang"; rs.m_english=100; rs.Up
2013-07-21 14:49:18 780
原创 用结构体计算一天在一年中的天数
#include "stdafx.h"#include"iostream"using namespace std;struct Date{ int year; int month; int day;};int main(){ int sum; sum=0; struct Date date; int a[13]={0,31,28,31,30,31,30,31,31,30
2013-03-12 23:02:37 764
原创 结构体应用
#include#includeusing namespace std;const int n=2;struct student { char num[6]; int score; struct student*next;}stu[n];void main(){ void putin(); void print(); putin(); print();
2013-03-12 22:58:45 494
原创 结构体链表
#include#define NULL 0using namespace std;struct student{ int num; int score; struct student*next;};int n;int main(){ student *creat(void); student*del(student*head,int num); student *in
2013-03-12 22:49:21 569
原创 我的第一次window API编程
#include "stdafx.h"#includeint WINAPI WinMain(HINSTANCE hInsstance,HINSTANCE hPrevInstance,PSTR nszCmdLine, int iCmdshow){ MessageBox(NULL,TEXT("hello!My dear!"),TEXT("hello Msg"),0); return 0;}
2013-03-07 23:05:57 713
原创 多文件操作(在Visual Studio 2010下)
file 1#pragma once#include "targetver.h"#include #include #includeusing namespace std;file 2#include "stdafx.h"#include"iostream"using namespace std;int main(){ float score[3]; void
2013-03-07 22:51:29 672
原创 推箱子
#include "stdafx.h"#include#include#includeusing namespace std;int main(){ bool movedown(int& x,int& y); bool moveup(int& x,int& y); bool moveright(int& x,int& y); bool moveleft(int& x,int&
2013-03-06 23:03:53 602
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人