c语言翻译工具,求C语言编译软件要中文版的容易上手的

1,求C语言编译软件要中文版的容易上手的对于初学者来说 C语言编辑器容易上手的DEV-C++ 5 还有个VC6.0 感觉不错
2,如何用C语言来制作翻译器写了一个简单的翻译器,只提供单词翻译,中文到英文 , 英文到中文都行,你需要首先进行字典录入 。录入以后会自动在目录下生成一个dic.txt文件 。#include"stdio.h"#include"stdlib.h"#include"string.h"#definefilename"dic.txt"structword//字典结构体charchinese[20];//中文charenglish[20];//英文};/////////////////////////////////////////////////////////////file*fp;//全局文件指针file*fileopen(charfilename[])//文件打开函数file*fp;if((fp=fopen(filename,"r"))==null)fp=fopen(filename,"w");cout<<"文件打开失败重新创建记录文件";returnfp;}fp=fopen(filename,"a+");returnfp;}voidfileclose(file*fp)//文件关闭函数if(fclose(fp)==0)cout<<"安全关闭"<<endl;elsecout<<"文件关闭失败"<<endl;}////////////////////////////////////////////////////////////////voidtra1()//中文翻译成英文模块file*fp;if((fp=fopen(filename,"r"))==null)printf("文件打开失败!");}chartempchinese[20];wordtemp;printf("请输入中文单词:");scanf("%s",tempchinese);while(fread(&temp,sizeof(word),1,fp)==1)if(strcmp(temp.chinese,tempchinese)==0)printf("中文:%s英文:%s\n",temp.chinese,temp.english);}}printf("查找完毕!");fileclose(fp);}//////////////////////////////////////////////voidtra2()//英文翻译成中文模块file*fp;if((fp=fopen(filename,"r"))==null)printf("文件打开失败!");}chartempenglish[20];wordtemp;printf("请输入英文单词:");scanf("%s",tempenglish);while(fread(&temp,sizeof(word),1,fp)==1)if(strcmp(temp.english,tempenglish)==0)printf("中文:%s英文:%s\n",temp.chinese,temp.english);}}printf("查找完毕!");fileclose(fp);}////////////////////////////////////////////////voidinp()//字典录入模块fp=fileopen(filename);wordtemp;printf("请输入英文:");scanf("%s",temp.english);printf("请输入对应中文:");scanf("%s",temp.chinese);fwrite(&temp,sizeof(temp),1,fp);printf("信息添加完成");fileclose(fp);}////////////////////////////////////////////////intmenu()//主目录模块intchoose;while(choose!=0)printf("\n");printf("简易中英翻译系统\n");printf("1、中->英翻译\n");printf("2、英-中翻译\n");printf("3、字典录入\n");printf("输入0退出系统\n");printf("请输入:");scanf("%d",&choose);switch(choose)case0:return0;break;case1:tra1();break;case2:tra2();break;case3:inp();break;}}}///////////////////////////////////////////////////////voidmain()menu();}
3 , C语言用什么编译软件好C语言的编译软件有好几种,C语言和C++是可以用同一种编译软件编译的,如Turbo C软件就有的可以用来编译C和C++语言,在网上是很容易找到下载的【c语言翻译工具,求C语言编译软件要中文版的容易上手的】
4 , 如何用C语言来制作翻译器#include <stdio.h>#include <string.h>#include <malloc.h>#include <locale.h>#include <windows.h>#define MAX_LEN 30#define DICTIONARY "C://Dictionary.dat"typedef struct mymay mapping;struct mymay wchar_t ch[MAX_LEN]; wchar_t en[MAX_LEN]; mapping * next;};int addNew(wchar_t* en, wchar_t* ch, mapping* head)mapping *tmp = head; if (!head)return 0; } while(tmp->next)if (wcscmp(tmp->ch, ch) == 0 && wcscmp(tmp->en, en) == 0)return 1;}tmp = tmp->next; } tmp->next = (mapping *)malloc(sizeof(mapping)); if (!tmp->next)return 1; } wcscpy(tmp->next->ch, ch); wcscpy(tmp->next->en, en); tmp->next->next = NULL; return 0;}int createHead(wchar_t* en, wchar_t* ch, mapping **head) *head = (mapping *)malloc(sizeof(struct mymay)); if (!(*head))printf("aaa1\n");return 1; } wcscpy((*head)->ch, ch); wcscpy((*head)->en, en); (*head)->next = NULL; return 0;}int destroyList(mapping *head)mapping *tmp = NULL; while(head)tmp = head;head = head->next;free(tmp); } return 0;}wchar_t* searchList(wchar_t target[], mapping *head) mapping *tmp = head; if (head != NULL)while(tmp)if (wcscmp(tmp->ch, target) == 0)return tmp->en;else if (wcscmp(tmp->en, target) == 0)return tmp->ch;tmp = tmp->next;} } return NULL;}int saveDictionary(mapping *head) FILE* fp; mapping *tmp = head; if ((fp = fopen(DICTIONARY, "w")) == NULL)printf("Can not open dictionary file.\n");return 1; } while (tmp)fwrite(tmp,sizeof(mapping),1,fp);tmp = tmp->next; } fclose(fp); return 0;}int loadDictionary(mapping **head) FILE* fp; mapping tmp; if ((fp = fopen(DICTIONARY, "r")) == NULL)return 1; } while(fread(&tmp,sizeof(mapping),1,fp)==1)if(!*head)createHead(tmp.en, tmp.ch, head);} elseaddNew(tmp.en, tmp.ch, *head);} } fclose(fp); return 0;}int main() mapping *head = NULL; wchar_t s1[MAX_LEN]; wchar_t s2[MAX_LEN]; wchar_t* ret = NULL; int select; setlocale(LC_ALL, "Chinese");loadDictionary(&head); for(;;)printf("**************MENU**************\n");printf("1.Search words.\n");printf("2.Insert words.\n");printf("3.bye.\n");printf("**************MENU**************\n");scanf("%d",&select);switch(select)case 1:system("CLS");printf("************1.Search words**********\n");printf("Input the word:\n");scanf("%ls",&s1);if (ret = searchList(s1, head))wprintf(L"The Translation is [%s].\nany key to continue\n", ret);} elseprintf("Can not find the Translation.\nany key to continue\n");}getch();break;case 2:system("CLS");printf("************2.Insert words.**********\n");printf("Input the English:\n");scanf("%ls",s1);printf("Input the Chinese:\n");scanf("%ls",s2);if (!head)createHead(s1, s2, &head);} else if (!addNew(s1, s2, head))printf("Insert success!\nany key to continue\n");} elseprintf("Insert failed!\nany key to continue\n");}getch();break;case 3:goto END;}system("CLS"); }END: saveDictionary(head); return 0;}5,有木有翻译C语言的软件C/C++编译器有很多 , 常用的有VC++,Borland C++,g++等 。不过很少人知道Windows自带的命令提示符也可作编译器使用,它能编译C/C++、Java…等多种语言的源文件 , 不过需要一些命令行知识才建议用,使用最多的是VC++#include<stdio.h>int main()printf("Hello word!\n"); return 0;}慢慢去研究吧!首先你要先下载一个C++编辑器,即VC++6.0,然后就要学习C语言,一般的书都会有关于VC++6.0的使用方法的6,c语言翻译器你的意思是说翻译成汉语?恐怕至今没有这种翻译器,就算有,也是翻译的很晕.百度翻译 。。visual c++ ,安卓有c4droid是要翻译C语言代码,以方便阅读的翻译器 ,还是用c写个某种用途的翻译器不知道你这样问的意思 。不过看到分值挺诱人的,我也来说两句 。C语言翻译器 。翻译器是早前的叫法 , 现在大都叫编译器 。以前条件比较艰苦,开发的时候,程序的编辑工具、编译工具、链接工具、调试环境等等这些统称为“工具链”的东东都是分开的(意思是说它们是不同的几个软件),说得通俗一点 , 就是写代码需要一个编辑软件,编译写好的代码 , 又需要用到别的软件,这样极其的不方便 。发展到现代,很多开发过程都集成到一个软件去了,就是说上面介绍的那些编写、编译、链接甚至是执行等等这些开发环节在一个集成开发软件当中都能完成 。所以,现在通常所说的编译,已经隐含地表示一个程序从预编译、编译、汇编、链接等等这么些过程了 。什么是编译(也就是你所问的翻译)?编译就是将人认识的高级一点的C语言翻译成机器认识的低级一点的机器码(就是二进制码,全是0和1) 。翻译器呢 , 就是完成这个过程的一个软件啦 。这么说,你能不能理解?速度采纳给分 。7,现在C语言一般都用的什么编译软件一般编写小的c语言程序建议使用tc2.0方便,小巧使用简单,如果你要做大的过程建议使用vc++6.0在windows 操作系统中编写图形用户界面,一般都用 visual c++(包括 visual studio 中的 visual c++) 。如果像楼主所说的,要用c语言,那只能用 windows api 函数了 。如果还允许c++语言,那么还可以用mfc(当然也可以用 windows api 函数) 。当然,也可以不用微软的库,比如说用qt之类的库 。==========================================================在linux操作系统中编写图形用户界面,就用gcc编译器加上xlib库或者gtk库或者qt库 。如果允许使用c++语言,那可以用g++编译器 , 上面三个库都可以用,另外还可以用wxwidgets库 。0如果你在windows上做开发,可以选择的有1)Turbo C , 小巧但是已经在软件开发领域里淘汰的软件;2)Visual C++ 6,也可以编写C程序,比较流行的软件 , 无论大小工程都很适用,缺点是不稳定,微软开发的东西出现严重的bug属于其产品的正常功能 , 没办法;如果你在Unix或是Unix-like的操作系统上,比如各种版本的Linux,那毫无疑问就是gcc,超强大的C编译器

    推荐阅读