c C++СÎÊÌâ - C/C++ / C++ ÓïÑÔ
#include<stdio.h>
#include<malloc.h>
#include<iostream.h>
#define MAX 4
#define null 0
typedef struct ArcNode{
int adjvex;
struct ArcNode *nextarc;
}ArcNode;
typedef struct VNode{
char data;
ArcNode *firstarc;
}VNode,AdjList[MAX];
typedef struct{
AdjList vertices;
int vexnum,arcnum;
}ALGraph;
void insertv(ALGraph &Alg)
{
for(int i=0;i<Alg.vexnum;i++)
{
cout<<"ÊäÈë:";//¸ÄΪprintf("ÊäÈë\n");Ôõô²»¶ÔÄØ£¿
cin>>Alg.vertices[i].data;//¸ÄΪÕâ¸öscanf("%c",&Alg.vertices[i].data);Ôõô²»¶ÔÄØ
Alg.vertices[i].firstarc=null;
}
}
void main()
{
ALGraph alg;
printf("ÊäÈë½ÚµãÊýÓë±ßÊý\n");
scanf("%d%d",&alg.vexnum,&alg.arcnum);
insertv(alg);
}
²»Ó¦¸Ã°¡£¬Ê²Ã´´íÎó£¿
ÊäÈë´ÎÊý²»Ò»Ñù£¬Èç¹ûÊÇcinÔòΪAlg.vexnum´ÎÊäÈ룬Èç¹ûÊÇscanf Ôò²»ÊÇ
ÒòΪscanf¶ÁÈ¡×Ö·ûµÄʱºò»á³å»º³åÇø¶ÁÈ¡'\n'×Ö·û£¬ËùÒԲŻá³öÏÖÂ¥Ö÷Ëù˵µÄÎÊÌ⣬
¶øcinÔò²»»á¶ÁÈ¡'\n'×Ö·û¡£
ÎÊÌâµÄ½â¾öÊÇ£ºÔÚ¶ÁÈ¡×Ö·ûµÄʱºò×ö'\n'Åжϣ¬Èç¹ûÈ¡µ½ÁË'\n'×Ö·û£¬ÔòÉáÈ¥£¬ÖØжÁÈ¡
¡£¡£¡£¡£
Õý½â
Ïà¹ØÎÊ´ð£º
ÇëÎÊVFPÖÐÈçºÎµ÷ÓÃC/C++º¯Êý£¿
ÄãÒªµ÷ÓÃʲô¹¦Äܵĺ¯Êý£¿Òª¿´¿´VFPÖÐÓÐûÓжÔÓ¦µÄº¯Êý£¬Èç¹ûÓоÍÊ¡×ÅÔÙµ÷ÓÃÁË¡£Èç¹ûûÓУ¬¿ÉÒÔ½«C/C++º¯Êýд¸öDLL»òFLL£¬È»ºóÔÚVFPµ÷Óü´¿É¡£
Ê®¶¹Èý ÀÏʦ£¬Ôõô²ÅÄÜÐÞ¸Ä×Ô¼ºµÄ ......
ÓÐÒ»10*10¾ØÕ󣬳ýÈ¥µÚÒ»¸öµã£¨0£¬0£©ºÍ×îºóÒ»µã£¨9£¬9£©£¬»¹Óа˸öµãΪ1£¬ÆäËû¶¼Îª0£¬ÒªÇóÓöþάÊý×é±íʾ¡£°Ë¸öµãÊÇËæ»úÉú³ÉµÄ£¬±àдÏà¹Ø³ÌÐò±íʾ¾ØÕóËùÓпÉÄÜÇé¿ö¡£
ÕæÐÄÇó½Ì¸÷λ¸ßÊÖ£¬°¥£¡±¾ÈËÌ«²ËÁË£¡ºÇºÇ£¡
......
´ó¼ÒºÃ£º
ÎÒÏëʵÏÖ¼ì²âµ½²åÈëSD¿¨ºó×Ô¶¯½«SD¿¨¸ñʽ»¯µÄ¹¦ÄÜ£¬²»ÖªC/C++ÖÐÓÐûÓиñʽ»¯UÅ̵ĺ¯Êý£¿
ÁíÍ⣬ÎÒ²»ÏëʹÓÃSHFormatDrive£¬ÒòΪÕâ¸öº¯Êý»áµ¯³öÊÇ·ñÒª¸ñʽ»¯µÄÌáʾ¿ò£¬ÎÒÐèÒªµÄÊÇϵͳ×Ô¶¯¸ñʽ»¯£¬¶ø²Ù×÷Õß² ......
ΪʲôÎҵijÌÐòµ÷ÓÃXMLÅäÖÃÎļþÖеİ¢À²®ÎÄÏÔʾ²»³öÀ´£¿ÆäËûµÄÓïÖÖ¶¼¿ÉÒÔ£¬ÈçÖÐÎÄ£¬Ó¢ÎÄ£¬µÂÎĶ¼¿É¡£
ÎÒ½«XMLµÄ±àÂë¸ÄΪutf-8ºÍunicodeµÄµ½µÃ½á¹û¶¼Ò»Ñù.
°¢À²®ÎĵÄ×Ö¿âÄãÓÐô£¿
ÓÐ,ÎÒµÄEXEÊÇ·ÅÔÚpc»úÉÏÖ´Ðе ......
ËÄÜ°ïÎÒ°ÑÏÂÃæÕâЩ´úÂë¸Ä³ÉVBÐÎʽµÄ£¬¶àлÁË£¬¼±ÓÃ~~
#include "stdlib.h"
#include "math.h"
#include "stdio.h"
float objfx(float x[]);
void constraint(float x[],float g ......