#include <stdio.h>
main()
{
int a,b,c;
scanf("%d","%d","%c",&a,&b,&c);
printf("The input is: %c",c);
}
ÕûÐÎת×Ö·ûÐÍ£¬Äã²»ÅÂÒç³ö£¿
¸ÄÁËһϣ¬»¹Êdzö´í£º
¸Ä³ÉÂ¥ÉϵÄ
ÒªÓöà¸öË«ÒýºÅ£¬°ÑÖмäµÄ¶ººÅÈ¥µô
scanf("%d" "%d" "%c",&a,&b,&c);
Âé·³¸÷룬ÎÒÊÇÔÚµ÷Õâ¸ö³ÌÐòʱ³öÏÖµÄscanfº¯Êý³ö´í;£¨ÏÂÃæµÄºìÉ«´úÂ룩
#include <stdio.h>
#define INFINITY 1000
#define MAX_VERTEX_NUM 20
#define ERROR 0
#define OK 1
typedef enum{DG,DN,UDG,UDN} GraphKind;
typedef int VRType;
typedef int InfoType;
typedef char VertexTpye;
typedef int Status;
typedef struct ArcCell
{
VRType adj;
InfoType *info;//¸Ã»¡Ïà¹ØÐÅÏ¢µÄÖ¸Õë
} ArcCell,AdjMatrix[MAX_VERTEX_NUM][MAX_VERTEX_NUM];
typedef struct
{
char vexs[MAX_VERTEX_NUM];
AdjMatrix arcs;
int vexnum,arcnum;
GraphKind kind;
}MGraph;
main()
{
MGraph G;
int i,j,k,w,IncInfo;
char v1,v2;
char d;
int LocateVertex(MGraph,VertexTpye);
printf("please Enter into the number of Vertex Arc and Arc_information:\n");
scanf("%d,%d,%d",&G.vexnum ,&G.arcnum,&IncInfo);
printf("The Number of Vertex is %d,The Number of Arc is %d\n",G.vexnum ,G.arcnum );
//ffl
´ó¼ÒºÃ£¬ÕâÊÇÒ»¸öÖ÷ÒªÃæÏòc/c++/mfcµÄȺ£¬×î½ü½øÐÐÁËÒ»´Î´óÇåÀí£¬»¶Ó¸÷λ¸ßÊÖ¼ÓÈ룬ºÃѧ°®ÎʵÄÐÂÊÖ£¬Ò²¿ÉÒÔÉêÇëµÄ£¬ÉêÇë¸ñʽ Ö°Òµ£¨c/c++/mfc ÈÎѡһ»òÕ߶ࣩ ¹¤×÷ÄêÏÞ£¨Ñ§ÉúÖ±½Óд´ó¼¸£©¾ÍÐÐÁË£¬ÈëȺµÄÒªÇó¾ÍÊÇÒª» ......
ÓÐÒ»10*10¾ØÕ󣬳ýÈ¥µÚÒ»¸öµã£¨0£¬0£©ºÍ×îºóÒ»µã£¨9£¬9£©£¬»¹Óа˸öµãΪ1£¬ÆäËû¶¼Îª0£¬ÒªÇóÓöþάÊý×é±íʾ¡£°Ë¸öµãÊÇËæ»úÉú³ÉµÄ£¬±àдÏà¹Ø³ÌÐò±íʾ¾ØÕóËùÓпÉÄÜÇé¿ö¡£
ÕæÐÄÇó½Ì¸÷λ¸ßÊÖ£¬°¥£¡±¾ÈËÌ«²ËÁË£¡ºÇºÇ£¡
......