C语言问题 急啊 帮忙啊

来源:百度知道 编辑:UC知道 时间:2024/06/17 07:15:36
#include "stdafx.h "
#include <windows.h>
#include <stdio.h>
#include <malloc.h>
#include <winbase.h>
#include <process.h>

void Search()
{
char temp[100];
char buffer[2];
char result[100];
printf( "Please input the word you want:\n ");
scanf( "%s ",&temp);
buffer[0]=temp[0];
buffer[1]= '\0 ';
int ret=GetPrivateProfileString(buffer,temp,0,result,100, "./date.ini ");
if(ret> 0)
printf( "%s\n\n\n\n\n ",result);
else
printf( "Sorry there is not what you want.\n\n\n\n\n ");
}

void InsertItem()
{
char temp[100];
char buffer[2];
char result[100];
printf( "Inser the word:

很显然你的这个stdafx.h头文件没有找到,或者你根本都没有定义这个头文件.这个头文件中包括许多数据内型说明,而且你的主程序像这样;
ret的数据声名显然是和stdafx.h头文件是相关的.

你的问题是?

恩,头文件呢?