易截截图软件、单文件、免安装、纯绿色、仅160KB

C bulider计算器初步

//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "Unit1.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
int   flag=0; //ÓÃ×÷±êÖ¾ÔËËãÖÖÀà
int   clearflag=0;//¿ÉÓÃÀ´±êÖ¾°´ÏÂÔËËã·û²»Á¢¼´ºóÇå¿ÕÎı¾¿ò£¬¹¦ÄÜÀàËƼÆËãÆ÷
int   temp1;//ÓÃ×÷¼Ä´æÔËËãÇ°µÄÊý
float temp2;//ÓÃ×÷¼Ä´æÔËËãµÄ½á¹û
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
        : TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm1::FormCreate(TObject *Sender)
{
        Form1->Edit1->Clear();
        temp1=0;
        temp2=0;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button1Click(TObject *Sender)
{
        if(clearflag==0)//±íʾÕâÊÇ°´ÏÂÔËËã·û¼üÖ


相关文档:

搭建eclipse下的c和c++开发环境


 
我们需要一个cdt,这个可以在Eclipse官网下载。
我们需要MinGW——C/C++编译平台,下载后需要安装,同时选中g++、MinGW Make,同时设置环境变量,将%MinGW_HOME%\bin设置到PATH中,然后我们可以通过命令行敲击gcc,看是否有效果。
我们需要gdb——C/C++调试平台,下载后安装,默认到MinGW_ ......

C 指针

#include
void printptr(int *i){
printf("&i of printfptr = %#X\n",&i);
printf("i of printfptr = %#X\n",i);
printf("*i of printfptr = %d\n",*i);
printf("i+1 of printfptr = %#X\n",i+1);
printf("*(i + 1) of printfptr = %d\n",*(i ......

[C/C++ Digestion] – 重载操作符


[C/C++ Digestion] –
重载操作符
作者:
Jason Lee @
http://blog.csdn.net/jasonblog
日期:
2010-04-17
 
[1]
重载操作符
重载操作符从大的方面来讲可以分为两类:最好或必须作为类的成员函数的,以及相反。而具体地讲,最好或必须作为类的成员函数的有赋值操作符
( = )
、下标操作符
( [] ) ......

pro*c编对步骤

step one:将.pc文件预编译为.c
    [ecif@localhost zyctest]$ proc sample1.pc
    显示信息:
    Pro*C/C++: Release 10.2.0.1.0 - Production on Tue Apr 13 14:07:05 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
&nbs ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号