ÎÒˮƽºÜ²Ë£¬ÌáÎʵĹÀ¼ÆÒ²ºÜ¸ãЦ£¬ºÇºÇ£¬¸ßÊÖ¼ûÁ¡£
ÎÒÔÚ´úÂëÀïÃæÌí¼ÓÁËÒ»¸ö.cÎļþA£¬ÀïÃæÓÐÒ»¸öº¯Êýf£¬È»ºóÎÒÔÚÁíÍâÒ»¸ö.cÎļþBÖе÷Óô˺¯Êýf£¬µ«ÊÇ£¬BÎļþÖв¢Ã»Óаüº¬¶Ôº¯ÊýfµÄÉùÃ÷£¬Ò²¾ÍÊÇ˵ûÓаüº¬ÎļþAµÄ.h£¬¶Ôº¯ÊýfҲûÓÃ×öexternµÄÉùÃ÷¡£
ÎÊÌâÊÇBÎļþ¶ÔAÎļþÖеĺ¯Êýfµ÷ÓþÓȻûÓÐÎÊÌ⣿
²»¶®°¡£¬¸ú¸ßÊÖѧϰ
C ......
function ReadTime(intDevno: Integer; var strGet: Pchar): Integer; stdcall; external 'ast.dll'; //¶ÁÈ¡ÈÕÆÚʱ
bcbµ÷ÓÃdelphi µÄdllÕâ¾äÔÚbcbÖÐÈçºÎת»¯¡£
Ó¦¸ÃÊÇC/C++ code:
int __stdcall ReadTime(int intDevno, char *strGet);
C/C++ code:
void __fastcall TForm1::FormCreate(TObject *Sender)
{
......
ÎÒÃǵÄCÓïÑԿζ¼½áÁË¡£¸Ð¾õÀÏʦºÃÏñʲô¶¼Ã»½²ËƵġ£
ÒÔºó¾Í²»»á¿ª¿ÎÁË¡£ÎÒ»¹Ïë¼ÌÐøѧC£¬ÒªÔõôѧ²Å¸ßЧÇÒÇáËÉÄØ£¿
C¶ÔÊýѧҪÇóºÜ¸ßÂð£¿ÊýѧÀÏʦ½²¿Î×ÜÊÇ˵£º£º¡°Õâ¸ö¹«Ê½¶ÔÄãÃǼÆËã»úרҵµÄºÜÖØÒªµÄ£¡¡±¡£¿ÉÊÇÎÒû¼ûÄĸöC³ÌÐòÖÐÓõ½ ÄÇЩ¹«Ê½µÄ°¡£¡
¶àд´úÂëÁ·Ï°
CÓïÑÔ¶Ô¼ÆËã»úºÜÖØÒªµÄ£¡Â¥Ö÷CÓïÑÔÒ»¶¨ÒªÑ§ºÃ£¡²»È»Ò ......
ÎÒ·¢ÏÖÓÿյÄforÓï¾ä×öÑÓʱµÄʱºòÀÏ»úÆ÷»áºÜ³ÔÁ¦¡£C/C++ code:
³¬¹ýÁù°ÙÍò´ÎµÄʱºòCPUÕ¼ÓÃÂÊ´ïµ½100%
ÓÐûÓÐκÍÒ»µãµÄ·½·¨ÄØ£¿
ºÃÁË¡£Ð»Ð»¹þ
²»ÒªÍüÁ˽áÌùÓ´
sleep£¬
Êǵģ¬sleepº¯Êý£¬°üº¬ÔÚ<windows.h>Í·ÎļþÖÐ,×¢ÒâsleepÖÐs´óд
ÎÒÔÚDevÖÐûÓаüº¬windows.hҲûÓÐÓÃSleepµÄ´óд£¬»¹ÊÇ¿ÉÒÔµÄÄØ¡ ......
C/C++ code:
#include <iostream>
using namespace std;
class Complex
{
private:
int real;
int image;
public:
Complex ()
{
real = 0;
image = 0;
}
Complex (int n,int i)
{
real = n;
image = ......
ÎÒÏëÖªµÀfmod()Õâ¸öº¯ÊýÊÇÔõÑùʵÏÖµÄ...Ò²¾ÍÊÇ˵ÎÒÏëÖªµÀËüµÄÔ´´úÂë...ÒòΪ×Ô¼ºÍêȫû˼·ÔõôдÕâ¸öº¯Êý...ËùÒÔÖ»ÄÜÕÒ³öËüµÄʵÏÖ´úÂëÁË...µ«ÊǸÕÏÂÁ˸öCÓïÑԿ⺯ÊýÔ´ÂëµÄ°ü...²éÁË°ëÌìÒ²²éµÃºÜãȻ...ËùÒÔ...Ï£ÍûÄĸö˧ÎÑ´óÏÀ·¹ý±ð´í¹ý...¸øСµÜÌùÉÏÕ⺯ÊýµÄÔ´´úÂë°É...ллÁË
fmodµÄ¹¦ÄÜÊÇʲô£¿
²»¶®£¬°ï¶¥
double ......
×ܼǼÊý:629; ×ÜÒ³Êý:105; ÿҳ6 Ìõ;
Ê×Ò³ ÉÏÒ»Ò³ [1] [2] 3
[4] [5] [6] [7] [8] [9] [10] ÏÂÒ»Ò³ βҳ