function varargout = jisuanqi(varargin)
% JISUANQI M-file for jisuanqi.fig
%      JISUANQI, by itself, creates a new JISUANQI or raises the existing
%      singleton*.
%
%      H = JISUANQI returns the handle to a new JISUANQI or the handle to
%      the existing singleton*.
%
%      JISUANQI('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in JISUANQI.M with the given input arguments.
%
%      JISUANQI('Property','Value',...) creates a new JISUANQI or raises the
%      existing singleton*.  Starting from the left, property value pairs are
%      applied to the GUI before jisuanqi_OpeningFcn gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to jisuanqi_OpeningFcn via varargin.
%
%      *See GUI Options on GUIDE's Tools menu.  Choose "GUI allows only one
%      instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES
% Edit the above text to modify the response to help jisuanqi
% Last Modified by GUIDE v2.5 20-Jul-2011 09:45:20
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',      mfilename, ...
                  'gui_Singleton',  gui_Singleton, ...
                  'gui_OpeningFcn', @jisuanqi_OpeningFcn, ...
                  'gui_OutputFcn',  @jisuanqi_OutputFcn, ...
                  'gui_LayoutFcn',  [] , ...
                  'gui_Callback',  []);
if nargin && ischar(varargin{1})
    gui_State.gui_Callback = str2func(varargin{1});
end
if nargout
    [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
    gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT
% --- Executes just before jisuanqi is made visible.
function jisuanqi_OpeningFcn(hObject, eventdata, handles, varargin)
handles.current_str='';%´ËΪ´æ´¢µ±Ç°µÄ×Ö·û´®
handles.L1_str='';
handles.L2_str='';%´ËΪ´æ´¢ÉÏÒ»¸öÊý×ÖµÄ×Ö·û´®
% This function has no output args, see OutputFcn.
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
% varargin  command line arguments to jisuanqi (see VARARGIN)
% Choose default command line output for jisuanqi
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes jisuanqi wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = jisuanqi_OutputFcn(hObject, eventdata, handles)
% varargout  cell array for returning output args (see VARARGOUT);
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
% Get default command line output from handles structure
varargout{1} = handles.output;
% --- Executes on button press in Number_0.
function Number_0_Callback(hObject, eventdata, handles)
%Á¬½Óµ±Ç°µÄ×Ö·û´®ºÍ0£¬Èç¹û°´ÁË0¼üµÄ»°¡£
handles.current_str=strcat(handles.current_str,'0');
handles.L1_str=strcat(handles.L1_str,'0');
%ÔÚÊä³öµ±Ç°µÄ×Ö·û´®
set(handles.edit1,'String',handles.current_str);
guidata(hObject, handles);
% hObject    handle to Number_0 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
% --- Executes on button press in xiaoshudian.
function xiaoshudian_Callback(hObject, eventdata, handles)
handles.current_str=strcat(handles.current_str,'.');
guidata(hObject, handles);
%СÊýµã
% hObject    handle to xiaoshudian (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
% --- Executes on button press in jia_jian.
function jia_jian_Callback(hObject, eventdata, handles)
% hObject    handle to jia_jian (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
vb计算器代码大全% handles    structure with handles and user data (see GUIDATA)
% --- Executes on button press in Number_1.
function Number_1_Callback(hObject, eventdata, handles)
% hObject    handle to Number_1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。